- Timestamp:
- 2022-02-02T11:26:41+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/wmtb/styles/gs-wmtb-custom.css
r35281 r36036 7 7 :root { 8 8 --height-header: 120px; 9 --height-header-mobile: 93px;10 9 --bp-small: 1025px; 11 10 --bp-small-max: 1024px; /* 1 less */ 11 --a-link-color: rgb(86, 154, 189); 12 12 } 13 13 … … 32 32 Need spaces around (arithmetic) operator in calc() equations 33 33 */ 34 34 35 .shifted-frame { 35 36 overflow: auto; 36 37 height: calc(100vh - var(--height-header)); /*calc(100vh - 120px);*/ 37 38 width: auto; 38 39 39 } /* Why does height calc(100% -120px) instead of using 100vh not work? */ 40 40 … … 46 46 /* 47 47 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; 58 52 } 59 53 … … 96 90 @media screen and (min-width: 1025px) { /* bp-small */ 97 91 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 104 99 /* Restyle .container *descendant* of .crop-bg: 105 100 Padding can not be 100px as it is when .full-bg is in effect, 106 101 and should be no greater than 95px for .crop-bg, else there 107 102 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 } */ 111 106 112 107 /* Override: padding had made the login/search/browse nav buttons unavailable */ 113 108 .banner-wrap .crop-bg .container { 114 padding: 0px;109 padding: 0px; 115 110 } 116 111 117 112 #gs_content { 118 max-width: 70vw;113 max-width: 70vw; 119 114 } 120 115 } … … 123 118 text-decoration: none; 124 119 font-weight: normal; 125 color: rgb(86, 154, 189); /* a light blue */120 color: var(--a-link-color); /* a light blue */ 126 121 } 127 122 … … 132 127 } 133 128 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 */ 130 div.outer > * { 131 padding: 2rem; 132 } 133 134 /* 135 Acts as a gridded container for the side nav-bar and the main content 136 */ 137 div.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 } 139 164 140 165 div.img-and-desc {
Note:
See TracChangeset
for help on using the changeset viewer.