Changeset 616 for trunk/css


Ignore:
Timestamp:
Nov 11, 2017 1:12:58 PM (7 years ago)
Author:
anonymous
Message:

Convert font-size percentages to rem. Fix form input widths and padding.

Location:
trunk/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/css/admin2.inc.css

    r587 r616  
    3737.sc-help,
    3838.commandtext,
    39 .commanditem { font-size: 70%; }
     39.commanditem { font-size: 0.7rem; }
    4040
    4141/* For fv err applied to tds. */
     
    8787    margin: 0;
    8888    padding: 0;
    89     font-size: 150%;
     89    font-size: 1.5rem;
    9090    color: #000;
    9191}
     
    113113    margin-left: 0em;
    114114    padding: 1px 0 2px 6px;
    115     font-size: 70%;
     115    font-size: 0.7rem;
    116116    font-weight: bold;
    117117}
     
    125125    color: #999;
    126126    padding-top: 15px;
    127     font-size: 90%;
     127    font-size: 0.9rem;
    128128    font-weight: bold;
    129129}
     
    159159    margin: 0 0 .5em 0;
    160160}
    161 #content h1 { font-size: 130%; }
    162 #content h2 { font-size: 110%; }
    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; }
    165165
    166166#content p {
    167167    margin: 0 0 .5em 0;
    168     font-size: 70%;
     168    font-size: 0.7rem;
    169169    line-height: 130%;
    170170}
     
    172172#content li {
    173173    margin: 0 0 0 0;
    174     font-size: 70%;
     174    font-size: 0.7rem;
    175175    line-height: 100%;
    176176}
     
    204204table.list th {
    205205    padding: 0 6px 1px 2px;
    206     font-size: 70%;
     206    font-size: 0.7rem;
    207207    border-top: 2px solid #eee;
    208208    border-bottom: 2px solid #eee;
     
    212212
    213213table.list td, #commandbox table td, .commandbox table td {
    214     font-size: 70%;
     214    font-size: 0.7rem;
    215215    padding: 2px 6px 2px 2px;
    216216    border-bottom: 1px dotted #ccc;
     
    273273    background-color: #DDD;
    274274    border-top: 1px solid gray;
    275     font-size: 70%;
     275    font-size: 0.7rem;
    276276    line-height: 100%;
    277277}
     
    326326select {
    327327    border: 1px solid #ccc;
    328     padding: 2px;
     328    margin: 0 0.5rem 0 0;
     329    padding: 2px 0.25rem;
     330    box-sizing: border-box;
    329331}
    330332label.sc-full {
     
    337339
    338340.sc-form-row label {
    339     font-size: 70%;
     341    font-size: 0.7rem;
    340342    padding-top: 0.25em;
    341343}
     
    363365}
    364366
    365 .sc-form input {
    366     padding: 2px;
    367 }
    368 
    369367/*.sc-form-row input + input {
    370368    margin-top: .5rem;
     
    387385}
    388386
    389 input.sc-medium,
    390 textarea.sc-medium,
    391 select.sc-medium,
    392 label.sc-medium {
    393 /* WFT? */
    394 /*    width: 21.25rem;*/
    395 }
    396 
    397387label.sc-radio-label {
    398388    width: auto;
  • trunk/css/utilities.inc.css

    r559 r616  
    1010/*_____________________ FORMS ____________________*/
    1111
     12input.sc-micro, textarea.sc-micro, select.sc-micro,
    1213input.sc-tiny, textarea.sc-tiny, select.sc-tiny,
    1314input.sc-small, textarea.sc-small, select.sc-small,
     
    1617input.sc-full, textarea.sc-full, select.sc-full {
    1718    margin: 0 0.5rem 0 0;
    18     padding: 3px 0.25rem;
     19    padding: 2px 0.25rem;
    1920    border-width: 1px;
     21    box-sizing: border-box;
    2022}
    2123
    2224/*
    23 The following widths are calculated using `width = (maxwidth - (1.2 * multiple)) / multiple`
     25The following widths are calculated to include a small right-margin and be equally divisible so the right edges align.
     26The formula is `width = (maxwidth - (rightmargin * multiple)) / multiple`
    2427where 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).
     28of times an element fits within maxwidth (i.e. sc-micro has a multiple of 16).
    2629The 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
     35Note: avoid adding whitespace between input elements, or add `display: flex;` to the inputs' parent.
    2736*/
    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: 44rem; }
     37input.sc-micro, textarea.sc-micro, select.sc-micro, label.sc-micro      { width: 2.5rem; }
     38input.sc-tiny, textarea.sc-tiny, select.sc-tiny, label.sc-tiny          { width: 5rem; }
     39input.sc-small, textarea.sc-small, select.sc-small, label.sc-small      { width: 10.5rem; }
     40input.sc-medium, textarea.sc-medium, select.sc-medium, label.sc-medium  { width: 21.5rem; }
     41input.sc-large, textarea.sc-large, select.sc-large, label.sc-large      { width: 43.5rem; }
    3342input.sc-full, textarea.sc-full, select.sc-full, label.sc-full          { width: 100%; }
    3443
Note: See TracChangeset for help on using the changeset viewer.