- Timestamp:
- Nov 11, 2017 1:12:58 PM (7 years ago)
- Location:
- trunk/css
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/css/admin2.inc.css
r587 r616 37 37 .sc-help, 38 38 .commandtext, 39 .commanditem { font-size: 70%; }39 .commanditem { font-size: 0.7rem; } 40 40 41 41 /* For fv err applied to tds. */ … … 87 87 margin: 0; 88 88 padding: 0; 89 font-size: 1 50%;89 font-size: 1.5rem; 90 90 color: #000; 91 91 } … … 113 113 margin-left: 0em; 114 114 padding: 1px 0 2px 6px; 115 font-size: 70%;115 font-size: 0.7rem; 116 116 font-weight: bold; 117 117 } … … 125 125 color: #999; 126 126 padding-top: 15px; 127 font-size: 90%;127 font-size: 0.9rem; 128 128 font-weight: bold; 129 129 } … … 159 159 margin: 0 0 .5em 0; 160 160 } 161 #content h1 { font-size: 1 30%; }162 #content h2 { font-size: 1 10%; }163 #content h3 { font-size: 90%; }164 #content h4 { font-size: 75%; }161 #content h1 { font-size: 1.3rem; } 162 #content h2 { font-size: 1.1rem; } 163 #content h3 { font-size: 0.9rem; } 164 #content h4 { font-size: 0.75rem; } 165 165 166 166 #content p { 167 167 margin: 0 0 .5em 0; 168 font-size: 70%;168 font-size: 0.7rem; 169 169 line-height: 130%; 170 170 } … … 172 172 #content li { 173 173 margin: 0 0 0 0; 174 font-size: 70%;174 font-size: 0.7rem; 175 175 line-height: 100%; 176 176 } … … 204 204 table.list th { 205 205 padding: 0 6px 1px 2px; 206 font-size: 70%;206 font-size: 0.7rem; 207 207 border-top: 2px solid #eee; 208 208 border-bottom: 2px solid #eee; … … 212 212 213 213 table.list td, #commandbox table td, .commandbox table td { 214 font-size: 70%;214 font-size: 0.7rem; 215 215 padding: 2px 6px 2px 2px; 216 216 border-bottom: 1px dotted #ccc; … … 273 273 background-color: #DDD; 274 274 border-top: 1px solid gray; 275 font-size: 70%;275 font-size: 0.7rem; 276 276 line-height: 100%; 277 277 } … … 326 326 select { 327 327 border: 1px solid #ccc; 328 padding: 2px; 328 margin: 0 0.5rem 0 0; 329 padding: 2px 0.25rem; 330 box-sizing: border-box; 329 331 } 330 332 label.sc-full { … … 337 339 338 340 .sc-form-row label { 339 font-size: 70%;341 font-size: 0.7rem; 340 342 padding-top: 0.25em; 341 343 } … … 363 365 } 364 366 365 .sc-form input {366 padding: 2px;367 }368 369 367 /*.sc-form-row input + input { 370 368 margin-top: .5rem; … … 387 385 } 388 386 389 input.sc-medium,390 textarea.sc-medium,391 select.sc-medium,392 label.sc-medium {393 /* WFT? */394 /* width: 21.25rem;*/395 }396 397 387 label.sc-radio-label { 398 388 width: auto; -
trunk/css/utilities.inc.css
r559 r616 10 10 /*_____________________ FORMS ____________________*/ 11 11 12 input.sc-micro, textarea.sc-micro, select.sc-micro, 12 13 input.sc-tiny, textarea.sc-tiny, select.sc-tiny, 13 14 input.sc-small, textarea.sc-small, select.sc-small, … … 16 17 input.sc-full, textarea.sc-full, select.sc-full { 17 18 margin: 0 0.5rem 0 0; 18 padding: 3px 0.25rem;19 padding: 2px 0.25rem; 19 20 border-width: 1px; 21 box-sizing: border-box; 20 22 } 21 23 22 24 /* 23 The following widths are calculated using `width = (maxwidth - (1.2 * multiple)) / multiple` 25 The following widths are calculated to include a small right-margin and be equally divisible so the right edges align. 26 The formula is `width = (maxwidth - (rightmargin * multiple)) / multiple` 24 27 where width is the sought value, maxwidth is the width of a sc-large, and multiple is the number 25 of times an element fits within maxwidth (i.e. sc- tiny has a multiple of 8).28 of times an element fits within maxwidth (i.e. sc-micro has a multiple of 16). 26 29 The values are dependent on the margin, padding, and border set above. 30 (44-(0.5*1))/1 = 43.5 31 (44-(0.5*2))/2 = 21.5 32 (44-(0.5*4))/4 = 10.5 33 (44-(0.5*8))/8 = 5 34 (44-(0.5*8))/16 = 2.5 35 Note: avoid adding whitespace between input elements, or add `display: flex;` to the inputs' parent. 27 36 */ 28 input.sc-micro, textarea.sc-micro, select.sc-micro, label.sc-micro { width: 1.55rem; }29 input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny { width: 4.54rem; }30 input.sc-small, textarea.sc-small, select.sc-small, label.sc-small { width: 10. 15rem; }31 input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium { width: 21. 42rem; }32 input.sc-large, textarea.sc-large, select.sc-large, label.sc-large { width: 4 4rem; }37 input.sc-micro, textarea.sc-micro, select.sc-micro, label.sc-micro { width: 2.5rem; } 38 input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny { width: 5rem; } 39 input.sc-small, textarea.sc-small, select.sc-small, label.sc-small { width: 10.5rem; } 40 input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium { width: 21.5rem; } 41 input.sc-large, textarea.sc-large, select.sc-large, label.sc-large { width: 43.5rem; } 33 42 input.sc-full, textarea.sc-full, select.sc-full, label.sc-full { width: 100%; } 34 43
Note: See TracChangeset
for help on using the changeset viewer.