variables.less 2.93 KB
Newer Older
1
2
3
// Variables.less
// Variables to customize the look and feel of Bootstrap
// -----------------------------------------------------
4
5
6



Mark Otto's avatar
Mark Otto committed
7
8
9
10
11
// GLOBAL VALUES
// --------------------------------------------------

// Links
@linkColor:             #08c;
12
@linkColorHover:        darken(@linkColor, 15%);
Mark Otto's avatar
Mark Otto committed
13
14
15

// Grays
@black:                 #000;
Jon Stevens's avatar
Jon Stevens committed
16
@grayDarker:            #222;
Mark Otto's avatar
Mark Otto committed
17
18
19
20
21
22
23
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #999;
@grayLighter:           #eee;
@white:                 #fff;

// Accent colors
24
25
@blue:                  #049cdb;
@blueDark:              #0064cd;
Mark Otto's avatar
Mark Otto committed
26
27
28
29
30
31
32
33
34
35
36
@green:                 #46a546;
@red:                   #9d261d;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;

// Typography
@baseFontSize:          13px;
@baseFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
@baseLineHeight:        18px;
Mark Otto's avatar
Mark Otto committed
37
@textColor:             @grayDark;
38

Mark Otto's avatar
Mark Otto committed
39
// Buttons
40
@primaryButtonBackground:    @linkColor;
41

42
43


Mark Otto's avatar
Mark Otto committed
44
45
// COMPONENT VARIABLES
// --------------------------------------------------
46

Mark Otto's avatar
Mark Otto committed
47
48
// Z-index master list
// Used for a bird's eye view of components dependent on the z-axis
49
// Try to avoid customizing these :)
50
51
52
53
54
55
56
57
58
59
@zindexDropdown:          1000;
@zindexPopover:           1010;
@zindexTooltip:           1020;
@zindexFixedNavbar:       1030;
@zindexModalBackdrop:     1040;
@zindexModal:             1050;

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

61
// Input placeholder text color
62
@placeholderText:         @grayLight;
63

Mark Otto's avatar
Mark Otto committed
64
65
66
// Hr border color
@hrBorder:                @grayLighter;

67
// Navbar
68
@navbarHeight:                    40px;
69
70
@navbarBackground:                @grayDarker;
@navbarBackgroundHighlight:       @grayDark;
71
@navbarLinkBackgroundHover:       transparent;
72

73
74
75
76
@navbarText:                      @grayLight;
@navbarLinkColor:                 @grayLight;
@navbarLinkColorHover:            @white;

77
78
79
// Form states and alerts
@warningText:             #c09853;
@warningBackground:       #fcf8e3;
80
@warningBorder:           darken(spin(@warningBackground, -10), 3%);
81
82
83

@errorText:               #b94a48;
@errorBackground:         #f2dede;
84
@errorBorder:             darken(spin(@errorBackground, -10), 3%);
85
86
87

@successText:             #468847;
@successBackground:       #dff0d8;
88
@successBorder:           darken(spin(@successBackground, -10), 5%);
89
90
91

@infoText:                #3a87ad;
@infoBackground:          #d9edf7;
92
@infoBorder:              darken(spin(@infoBackground, -10), 7%);
93

94

95
96
97
98
99
100
101
102
103
104
105
106
107

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

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

// Fluid grid
@fluidGridColumnWidth:    6.382978723%;
@fluidGridGutterWidth:    2.127659574%;