Ignore:
Timestamp:
2022-02-02T11:26:41+13:00 (2 years ago)
Author:
cstephen
Message:

WMTB Interface: Implemented a navigation bar on the left side of the content and removed the existing top-bar navigation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/wmtb/styles/gs-wmtb-custom.css

    r35281 r36036  
    77:root {
    88    --height-header: 120px;
    9     --height-header-mobile: 93px;
    109    --bp-small: 1025px;
    1110    --bp-small-max: 1024px; /* 1 less */
     11    --a-link-color: rgb(86, 154, 189);
    1212}
    1313
     
    3232 Need spaces around (arithmetic) operator in calc() equations
    3333*/
     34
    3435.shifted-frame {
    3536    overflow: auto;
    3637    height: calc(100vh - var(--height-header)); /*calc(100vh - 120px);*/
    3738    width: auto;
    38 
    3939} /* Why does height calc(100% -120px) instead of using 100vh not work? */
    4040
     
    4646    /*
    4747      body { overflow: auto; }
    48    */
    49    
    50     div#spacer-for-nav {
    51     height: var(--height-header-mobile); /*93px;*/
    52     }
    53 
    54     .shifted-frame {
    55     height: calc(100vh - var(--height-header-mobile)); 
    56     /*height: 100vh;*/ /*calc(100vh - 93px);*/
    57     /*overflow-y: auto;*//* scroll;*/
     48    */
     49
     50    :root {
     51        --height-header: 93px;
    5852    }
    5953
     
    9690@media screen and (min-width: 1025px) { /* bp-small */
    9791    div.crop-bg {
    98     height: 230px; /* You must set a specified height */
    99     background-position: center -100px; /* OR: center OR: center 20% */
    100     /*display: block;*/ /* div with bg image needs to change from display: table-cell
    101                to display: block when cropping bg image, as table-cell setting
    102                overrides height customisation */
    103     }
     92        height: 230px; /* You must set a specified height */
     93        background-position: center -100px; /* OR: center OR: center 20% */
     94        /*display: block;*/ /* div with bg image needs to change from display: table-cell
     95                to display: block when cropping bg image, as table-cell setting
     96                overrides height customisation */
     97    }
     98
    10499    /* Restyle .container *descendant* of .crop-bg:
    105100       Padding can not be 100px as it is when .full-bg is in effect,
    106101       and should be no greater than 95px for .crop-bg, else there
    107102       appears a bottom border of sorts under the cropped image. */
    108     .crop-bg div.container {
    109     /* padding: 50px 0; */
    110     }
     103    /* .crop-bg div.container {
     104        padding: 50px 0;
     105    } */
    111106
    112107    /* Override: padding had made the login/search/browse nav buttons unavailable */
    113108    .banner-wrap .crop-bg .container {
    114     padding: 0px;
     109        padding: 0px;
    115110    }
    116111
    117112    #gs_content {
    118     max-width: 70vw;
     113        max-width: 70vw;
    119114    }
    120115}
     
    123118    text-decoration: none;
    124119    font-weight: normal;
    125     color: rgb(86, 154, 189); /* a light blue */
     120    color: var(--a-link-color); /* a light blue */
    126121}
    127122
     
    132127}
    133128
    134 div.outer {
    135     line-height:1rem;
    136     padding-top:2rem; /*5vh;*/
    137 }
    138 
     129/* Selecting the children ensures that there is space between them */
     130div.outer > * {
     131    padding: 2rem;
     132}
     133
     134/*
     135Acts as a gridded container for the side nav-bar and the main content
     136*/
     137div.outer.collectionDisplay {
     138    display: grid;
     139    grid-template-columns: 1fr 3fr 1fr;
     140}
     141
     142.side-navbar {
     143    display: flex;
     144    flex-direction: column;
     145   
     146    border-right: 1px solid #eaecef;
     147}
     148
     149.side-navbar ul {
     150    padding-left: 1em;
     151}
     152
     153/* The active class is added to nav elements when their content is displayed */
     154.side-navbar a.active {
     155    font-weight: bold;
     156}
     157
     158/* Intended to be applied to an <hr /> element. */
     159.side-navbar-separator {
     160    appearance: none;
     161    width: 100%;
     162    border: 1px solid #eaecef;
     163}
    139164
    140165div.img-and-desc {
Note: See TracChangeset for help on using the changeset viewer.