variables.less 9.99 KB
Newer Older
Pierre's avatar
Pierre committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Variables
// Swatch: United
// Version: 2.1.1
// --------------------------------------------------


// Global values
// --------------------------------------------------


// Grays
// -------------------------
@black:                 #000;
@grayDarker:            #222;
@grayDark:              #333;
Pierre's avatar
Pierre committed
16
@grayDarky:              #212121;
Pierre's avatar
Pierre committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
@gray:                #3C4240;
// @gray:                  #555;
@graySmall:             #777;
@grayLight:             #999;
@grayLighter:           #ebebeb;
@white:                 #fff;


// Accent colors
// -------------------------
@blue:                  #19B6EE;
@blueDark:              #0064cd;
@green:                 #8BB549; /* 7FB82F */
@greenDark:             darken(@green, 5%);
@greenDarkDark:         darken(@green, 15%);
// @red:                   #CC071E;
//@red:                   #5CA138; //vert
@redLight:              #CC071E; 
@yellow:                #DABD5E;
@yellowAdmin:           #FFEC00;
@yellowDarker:          #82AD51;
@yellowLighter:         #F8F779;
@orange:                #DD4814;
Pierre's avatar
Pierre committed
40
@orangeDark:         darken(@orange, 5%);
Pierre's avatar
Pierre committed
41 42
@pink:                  #c3325f;
@purple:                #CC5795;
43 44
@red: 					#990000;

Pierre's avatar
Pierre committed
45 46 47
// Scaffolding
// -------------------------
@bodyBackground:        @white;
Pierre's avatar
Pierre committed
48
@textColor:             @grayDark;
Pierre's avatar
Pierre committed
49 50 51 52


// Links
// -------------------------
53
@linkColor:            darken(@grayDark, 5%);
Pierre's avatar
Pierre committed
54
@linkColorHover:        darken(@grayDarker, 10%);
Pierre's avatar
Pierre committed
55 56 57 58


// Typography
// -------------------------
59 60 61
@sansFontFamily:        sans-serif;
@serifFontFamily:       serif;
@monoFontFamily:        monospace;
Pierre's avatar
Pierre committed
62

63
@baseFontSize:          15px;
Pierre's avatar
Pierre committed
64
@baseFontFamily:        @sansFontFamily;
Pierre's avatar
Pierre committed
65 66
@baseLineHeight:        23px;
@menuLineHeight:        20px;
Pierre's avatar
Pierre committed
67
@altFontFamily:         @serifFontFamily;
Pierre's avatar
Pierre committed
68 69 70 71 72

@headingsFontFamily:    @sansFontFamily; // empty to use BS default, @baseFontFamily
@headingsFontWeight:    normal;    // instead of browser default, bold
@headingsColor:         inherit; // empty to use BS default, @textColor

Pierre's avatar
Pierre committed
73 74
@topContent:         1em;

Pierre's avatar
Pierre committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
// Component sizing
// -------------------------
// Based on 14px font-size and 20px line-height

@fontSizeLarge:         @baseFontSize * 1.25; // ~18px
@fontSizeSmall:         @baseFontSize * 0.85; // ~12px
@fontSizeMini:          @baseFontSize * 0.75; // ~11px

@paddingLarge:          11px 19px; // 44px
@paddingSmall:          2px 10px;  // 26px
@paddingMini:           1px 6px;   // 24px

@baseBorderRadius:      4px;
@borderRadiusLarge:     5px;
@borderRadiusSmall:     3px;


// Tables
// -------------------------
@tableBackground:                   transparent; // overall background-color
@tableBackgroundAccent:             #f9f9f9; // for striping
@tableBackgroundHover:              #eeeeee; // for hover
@tableBorder:                       #ddd; // table and cell border

// Buttons
// -------------------------
Pierre's avatar
Pierre committed
101 102 103
@btnBackground:                     @green;
@btnBackgroundHighlight:            darken(@btnBackground, 10%);
@btnBorder:                         darken(@btnBackground, 20%);
Pierre's avatar
Pierre committed
104

Pierre's avatar
Pierre committed
105
@btnPrimaryBackground:              darken(@green, 10%);
Pierre's avatar
Pierre committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119
@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 15%);

@btnInfoBackground:                 lighten(@purple, 15%);
@btnInfoBackgroundHighlight:        @purple;

@btnSuccessBackground:              #62c462;
@btnSuccessBackgroundHighlight:     #51a351;

@btnWarningBackground:              lighten(@orange, 15%);
@btnWarningBackgroundHighlight:     @orange;

@btnDangerBackground:               #ee5f5b;
@btnDangerBackgroundHighlight:      #bd362f;

Pierre's avatar
Pierre committed
120 121
@btnInverseBackground:              @btnBackground;
@btnInverseBackgroundHighlight:     @btnBackgroundHighlight;
Pierre's avatar
Pierre committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219


// Forms
// -------------------------
@inputBackground:               @white;
@inputBorder:                   @yellow;
@inputBorderRadius:             3px;
@inputDisabledBackground:       @grayLighter;
@formActionsBackground:         transparent;
@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border


// Dropdowns
// -------------------------
@dropdownBackground:            @white;
@dropdownBorder:                rgba(0,0,0,.2);
@dropdownDividerTop:            #e5e5e5;
@dropdownDividerBottom:         @white;

@dropdownLinkColor:             @linkColor;
@dropdownLinkColorHover:        @white;
@dropdownLinkColorActive:       @dropdownLinkColor;

@dropdownLinkBackgroundActive:  @linkColor;
@dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;



// COMPONENT VARIABLES
// --------------------------------------------------


// Z-index master list
// -------------------------
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1030;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;


// Sprite icons path
// -------------------------
@iconSpritePath:          "../img/glyphicons-halflings.png";
@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";


// Input placeholder text color
// -------------------------
@placeholderText:         @grayLight;


// Hr border color
// -------------------------
@hrBorder:                @grayLighter;


// Horizontal forms & lists
// -------------------------
@horizontalComponentOffset:       180px;


// Wells
// -------------------------
@wellBackground:                  #F8F8F8;

// Comments
@commentBackgroundTexte:          #FFFCE6;
@commentBackground:               #FFEF89;
@commentBorder:                   #FFD639;


// Navbar
// -------------------------
@navbarCollapseWidth:             767px; /* 979 avant */
@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;

@navbarHeight:                    40px;
@navbarBackgroundHighlight:       #CE4213;
@navbarBackground:                @orange;
@navbarBorder:                    darken(@navbarBackground, 5%);

@navbarText:                      @white;
@navbarLinkColor:                 @white;
@navbarLinkColorHover:            lighten(@yellow, 15%);
@navbarLinkColorActive:           @navbarLinkColorHover;
@navbarLinkBackgroundHover:       rgba(0,0,0,.2);
@navbarLinkBackgroundActive:      rgba(0,0,0,.2);

@navbarBrandColor:                @navbarLinkColor;

@navbarBackground:                @gray;
@navbarBackgroundHighlight:       lighten(@gray, 10%);

// Inverted navbar
Pierre's avatar
Pierre committed
220 221
@navbarInverseBackground:                darken(@red, 2%);
@navbarInverseBackgroundHighlight:       darken(@red, 2%);
Pierre's avatar
Pierre committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
@navbarInverseBorder:                    darken(@navbarInverseBackground, 5%);

@navbarInverseText:                      @white;
@navbarInverseLinkColor:                 @white;
@navbarInverseLinkColorHover:            lighten(@yellow, 5%);
@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover:       rgba(0,0,0,.2);
@navbarInverseLinkBackgroundActive:      @navbarInverseBackground;

@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor:    #eee;

@navbarInverseBrandColor:                @navbarInverseLinkColor;

Pierre's avatar
Pierre committed
238
@footerBackground:            darken(@green, 25%);
239
@footerBackgroundTextColor:           @grayLighter;
Pierre's avatar
Pierre committed
240

Pierre's avatar
Pierre committed
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327

// Pagination
// -------------------------
@paginationBackground:                #fff;
@paginationBorder:                    #ddd;
@paginationActiveBackground:          #eeeeee;


// Hero unit
// -------------------------
@heroUnitBorder:                  @green; /* @grayLighter */
@heroUnitBackground:              @white; /* FAF6DC #FFFAEE @grayLighter */
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;


// Form states and alerts
// -------------------------
@warningText:             #ECA918;
@warningBackground:       lighten(@warningText, 40%);
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

@errorText:               #DF382C;
@errorBackground:         lighten(@errorText, 40%);
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

@successText:             #38B44A;
@successBackground:       lighten(@successText, 40%);
@successBorder:           darken(spin(@successBackground, -10), 5%);

@infoText:                @purple;
@infoBackground:          lighten(@purple, 50%);
@infoBorder:              darken(spin(@infoBackground, -10), 7%);


// Tooltips and popovers
// -------------------------
@tooltipColor:            #fff;
@tooltipBackground:       #000;
@tooltipArrowWidth:       5px;
@tooltipArrowColor:       @tooltipBackground;

@popoverBackground:       #fff;
@popoverArrowWidth:       10px;
@popoverArrowColor:       #fff;
@popoverTitleBackground:  darken(@popoverBackground, 3%);

// Special enhancement for popovers
@popoverArrowOuterWidth:  @popoverArrowWidth + 1;
@popoverArrowOuterColor:  rgba(0,0,0,.25);



// GRID
// --------------------------------------------------


// Default 940px grid
// -------------------------
@gridColumns:             12;
@gridColumnWidth:         55px;
@gridGutterWidth:         20px;
@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

// 1200px min
@gridColumnWidth1200:     65px;
@gridGutterWidth1200:     30px;
@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));

// 768px-979px
@gridColumnWidth768:      42px;
@gridGutterWidth768:      20px;
@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));


// Fluid grid
// -------------------------
@fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
@fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);

// 1200px min
@fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
@fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);

// 768px-979px
@fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
@fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);