scala-news-reader

rss/atom news reader in scala

git clone https://9o.is/git/scala-news-reader.git

variables.less

(9428B)


      1 //
      2 // Variables
      3 // --------------------------------------------------
      4 
      5 // Global values
      6 // --------------------------------------------------
      7 
      8 
      9 // Grays
     10 // -------------------------
     11 @black:                 #000;
     12 @grayDarker:            #222;
     13 @grayDark:              #333;
     14 @gray:                  #555;
     15 @grayLight:             #999;
     16 @grayLighter:           #eee;
     17 @white:                 #fff;
     18 
     19 
     20 // Accent colors
     21 // -------------------------
     22 @blue:                  #049cdb;
     23 @blueDark:              #0064cd;
     24 @green:                 #46a546;
     25 @red:                   #9d261d;
     26 @yellow:                #ffc40d;
     27 @orange:                #f89406;
     28 @pink:                  #c3325f;
     29 @purple:                #7a43b6;
     30 @gold:                  #ffd700;
     31 
     32 // Scaffolding
     33 // -------------------------
     34 @bodyBackground:        @white;
     35 @textColor:             @grayDark;
     36 
     37 
     38 // Links
     39 // -------------------------
     40 @linkColor:             #08c;
     41 @linkColorHover:        darken(@linkColor, 15%);
     42 
     43 
     44 // Typography
     45 // -------------------------
     46 @fftisaFontFamily:      "ff-tisa-web-pro"; // typekit (or use tk-ff-tisa-web-pro class)
     47 @actaFontFamily:        "acta-poster-swashes"; // typekit (or use tk-acta-poster-swashes class)
     48 @baskFontFamily:        "Open Baskerville 0.0.53"; // openFontDb
     49 @sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
     50 @serifFontFamily:       Georgia, "Times New Roman", Times, serif;
     51 @monoFontFamily:        Monaco, Menlo, Consolas, "Courier New", monospace;
     52 
     53 @baseFontSize:          18px; // 100%
     54 @baseFontFamily:        @baskFontFamily;
     55 @baseLineHeight:        30px;
     56 @altFontFamily:         @serifFontFamily;
     57 
     58 @headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
     59 @headingsFontWeight:    bold;    // instead of browser default, bold
     60 @headingsColor:         inherit; // empty to use BS default, @textColor
     61 
     62 
     63 // Component sizing
     64 // -------------------------
     65 
     66 @fontSizeLarge:         @baseFontSize * 1.25;
     67 @fontSizeSmall:         @baseFontSize * 0.85;
     68 @fontSizeMini:          @baseFontSize * 0.75;
     69 
     70 @paddingLarge:          11px 19px; // 44px
     71 @paddingSmall:          2px 10px;  // 26px
     72 @paddingMini:           0 6px;   // 22px
     73 
     74 @baseBorderRadius:      4px;
     75 @borderRadiusLarge:     6px;
     76 @borderRadiusSmall:     3px;
     77 
     78 
     79 // Tables
     80 // -------------------------
     81 @tableBackground:                   transparent; // overall background-color
     82 @tableBackgroundAccent:             #f9f9f9; // for striping
     83 @tableBackgroundHover:              #f5f5f5; // for hover
     84 @tableBorder:                       #ddd; // table and cell border
     85 
     86 // Buttons
     87 // -------------------------
     88 @btnBackground:                     @white;
     89 @btnBackgroundHighlight:            darken(@white, 10%);
     90 @btnBorder:                         #ccc;
     91 
     92 @btnPrimaryBackground:              @linkColor;
     93 @btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 20%);
     94 
     95 @btnInfoBackground:                 #5bc0de;
     96 @btnInfoBackgroundHighlight:        #2f96b4;
     97 
     98 @btnSuccessBackground:              #62c462;
     99 @btnSuccessBackgroundHighlight:     #51a351;
    100 
    101 @btnWarningBackground:              lighten(@orange, 15%);
    102 @btnWarningBackgroundHighlight:     @orange;
    103 
    104 @btnDangerBackground:               #ee5f5b;
    105 @btnDangerBackgroundHighlight:      #bd362f;
    106 
    107 @btnInverseBackground:              #444;
    108 @btnInverseBackgroundHighlight:     @grayDarker;
    109 
    110 
    111 // Forms
    112 // -------------------------
    113 @inputBackground:               @white;
    114 @inputBorder:                   #ccc;
    115 @inputBorderRadius:             @baseBorderRadius;
    116 @inputDisabledBackground:       @grayLighter;
    117 @formActionsBackground:         #f5f5f5;
    118 @inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
    119 
    120 
    121 // Dropdowns
    122 // -------------------------
    123 @dropdownBackground:            @white;
    124 @dropdownBorder:                rgba(0,0,0,.2);
    125 @dropdownDividerTop:            #e5e5e5;
    126 @dropdownDividerBottom:         @white;
    127 
    128 @dropdownLinkColor:             @grayDark;
    129 @dropdownLinkColorHover:        @white;
    130 @dropdownLinkColorActive:       @white;
    131 
    132 @dropdownLinkBackgroundActive:  @linkColor;
    133 @dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;
    134 
    135 
    136 
    137 // COMPONENT VARIABLES
    138 // --------------------------------------------------
    139 
    140 
    141 // Z-index master list
    142 // -------------------------
    143 // Used for a bird's eye view of components dependent on the z-axis
    144 // Try to avoid customizing these :)
    145 @zindexDropdown:          1000;
    146 @zindexPopover:           1010;
    147 @zindexTooltip:           1030;
    148 @zindexFixedNavbar:       1030;
    149 @zindexModalBackdrop:     1040;
    150 @zindexModal:             1050;
    151 
    152 
    153 // Sprite icons path
    154 // -------------------------
    155 @iconSpritePath:          "../img/glyphicons-halflings.png";
    156 @iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
    157 
    158 
    159 // Input placeholder text color
    160 // -------------------------
    161 @placeholderText:         @grayLight;
    162 
    163 
    164 // Hr border color
    165 // -------------------------
    166 @hrBorder:                @grayLighter;
    167 
    168 
    169 // Horizontal forms & lists
    170 // -------------------------
    171 @horizontalComponentOffset:       180px;
    172 
    173 
    174 // Wells
    175 // -------------------------
    176 @wellBackground:                  #f5f5f5;
    177 
    178 
    179 // Navbar
    180 // -------------------------
    181 @navbarCollapseWidth:             979px;
    182 @navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;
    183 
    184 @navbarHeight:                    50px;
    185 @navbarBackgroundHighlight:       #ffffff;
    186 @navbarBackground:                darken(@navbarBackgroundHighlight, 5%);
    187 @navbarBorder:                    darken(@navbarBackground, 12%);
    188 
    189 @navbarText:                      #777;
    190 @navbarLinkColor:                 #777;
    191 @navbarLinkColorHover:            @grayDark;
    192 @navbarLinkColorActive:           @gray;
    193 @navbarLinkBackgroundHover:       transparent;
    194 @navbarLinkBackgroundActive:      darken(@navbarBackground, 5%);
    195 
    196 @navbarBrandColor:                @navbarLinkColor;
    197 
    198 // Inverted navbar
    199 @navbarInverseBackground:                #111111;
    200 @navbarInverseBackgroundHighlight:       #222222;
    201 @navbarInverseBorder:                    #252525;
    202 
    203 @navbarInverseText:                      @grayLight;
    204 @navbarInverseLinkColor:                 @grayLight;
    205 @navbarInverseLinkColorHover:            @white;
    206 @navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
    207 @navbarInverseLinkBackgroundHover:       transparent;
    208 @navbarInverseLinkBackgroundActive:      @navbarInverseBackground;
    209 
    210 @navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
    211 @navbarInverseSearchBackgroundFocus:     @white;
    212 @navbarInverseSearchBorder:              @navbarInverseBackground;
    213 @navbarInverseSearchPlaceholderColor:    #ccc;
    214 
    215 @navbarInverseBrandColor:                @navbarInverseLinkColor;
    216 
    217 // Email Sign up
    218 // -------------------------
    219 @emailSignupHeight: 80px;
    220 
    221 
    222 // Pagination
    223 // -------------------------
    224 @paginationBackground:                #fff;
    225 @paginationBorder:                    #ddd;
    226 @paginationActiveBackground:          #f5f5f5;
    227 
    228 
    229 // Hero unit
    230 // -------------------------
    231 @heroUnitBackground:              @grayLighter;
    232 @heroUnitHeadingColor:            inherit;
    233 @heroUnitLeadColor:               inherit;
    234 
    235 
    236 // Form states and alerts
    237 // -------------------------
    238 @warningText:             #c09853;
    239 @warningBackground:       #fcf8e3;
    240 @warningBorder:           darken(spin(@warningBackground, -10), 3%);
    241 
    242 @errorText:               #b94a48;
    243 @errorBackground:         #f2dede;
    244 @errorBorder:             darken(spin(@errorBackground, -10), 3%);
    245 
    246 @successText:             #468847;
    247 @successBackground:       #dff0d8;
    248 @successBorder:           darken(spin(@successBackground, -10), 5%);
    249 
    250 @infoText:                #3a87ad;
    251 @infoBackground:          #d9edf7;
    252 @infoBorder:              darken(spin(@infoBackground, -10), 7%);
    253 
    254 
    255 // Tooltips and popovers
    256 // -------------------------
    257 @tooltipColor:            #fff;
    258 @tooltipBackground:       #000;
    259 @tooltipArrowWidth:       5px;
    260 @tooltipArrowColor:       @tooltipBackground;
    261 
    262 @popoverBackground:       #fff;
    263 @popoverArrowWidth:       10px;
    264 @popoverArrowColor:       #fff;
    265 @popoverTitleBackground:  darken(@popoverBackground, 3%);
    266 
    267 // Special enhancement for popovers
    268 @popoverArrowOuterWidth:  @popoverArrowWidth + 1;
    269 @popoverArrowOuterColor:  rgba(0,0,0,.25);
    270 
    271 
    272 
    273 // GRID
    274 // --------------------------------------------------
    275 
    276 
    277 // Default 940px grid
    278 // -------------------------
    279 @gridColumns:             12;
    280 @gridColumnWidth:         60px;
    281 @gridGutterWidth:         20px;
    282 @gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
    283 
    284 // 1200px min
    285 @gridColumnWidth1200:     70px;
    286 @gridGutterWidth1200:     30px;
    287 @gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
    288 
    289 // 768px-979px
    290 @gridColumnWidth768:      42px;
    291 @gridGutterWidth768:      20px;
    292 @gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
    293 
    294 
    295 // Fluid grid
    296 // -------------------------
    297 @fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
    298 @fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);
    299 
    300 // 1200px min
    301 @fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
    302 @fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);
    303 
    304 // 768px-979px
    305 @fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
    306 @fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);