bootswatch.less 3.08 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
2
// Bootswatch.less
// Swatch: Spacelab
Thomas Park's avatar
Thomas Park committed
3
// Version: 2.0.2
Thomas Park's avatar
Thomas Park committed
4
5
6
7
8
9
10
11
12
13
// -----------------------------------------------------

// NAVBAR
// -----------------------------------------------------

// navbar style
.navbar {
	border-bottom: 1px solid #CACACA;
	
	.brand {
Thomas Park's avatar
Thomas Park committed
14
		font-size: 20px;
Thomas Park's avatar
Thomas Park committed
15
		font-weight: bold;
Thomas Park's avatar
Thomas Park committed
16
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
17
18
19
20
21
	
		&:hover {
			color: @linkColor;
		}
	}
Thomas Park's avatar
Thomas Park committed
22
}
Thomas Park's avatar
Thomas Park committed
23

Thomas Park's avatar
Thomas Park committed
24
25
26
27
28
29
30
31
32
33
34
35
36
.navbar .navbar-inner {
	.box-shadow(0 1px 0 rgba(255,255,255,0.4));
	.box-shadow(0 0 10px rgba(0,0,0,0.1));
}

.navbar .nav > li > a {
	font-weight: bold;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.navbar .nav .active > a {
	background-color: transparent;
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
37
	
Thomas Park's avatar
Thomas Park committed
38
39
	&:hover {
		background-color: transparent;
Thomas Park's avatar
Thomas Park committed
40
41
		color: @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
}

.navbar .nav > li > a:hover,
.navbar .nav .open.dropdown .dropdown-toggle {
	color: @linkColor !important;
}

.navbar .nav .dropdown-toggle .caret {
	border-top-color: @textColor;
	opacity: 1;
}

.nav .open.dropdown .caret,
.nav .dropdown-toggle:hover .caret {
	border-top-color: @linkColor !important;
}

div.subnav .nav > li > a {
	font-weight: bold;
	color: #777;
Thomas Park's avatar
Thomas Park committed
62
	
Thomas Park's avatar
Thomas Park committed
63
64
	&:hover {
		color: @linkColor;
Thomas Park's avatar
Thomas Park committed
65
	}
Thomas Park's avatar
Thomas Park committed
66
}
Thomas Park's avatar
Thomas Park committed
67

Thomas Park's avatar
Thomas Park committed
68
69
div.subnav .nav > li.active > a {
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
70
	
Thomas Park's avatar
Thomas Park committed
71
72
	&:hover {
		color: @grayDark;
Thomas Park's avatar
Thomas Park committed
73
	}
Thomas Park's avatar
Thomas Park committed
74
}
Thomas Park's avatar
Thomas Park committed
75

Thomas Park's avatar
Thomas Park committed
76
77
78
79
div.subnav .nav > li > .dropdown-toggle {
	background-color: transparent;
	color: @linkColor;
}
Thomas Park's avatar
Thomas Park committed
80

Thomas Park's avatar
Thomas Park committed
81
82
83
84
85
86
87
88
89
90
.navbar-search .search-query,
.navbar-search .search-query:hover {
	border: none;
	color: @grayLight;
	.placeholder(@grayLight);
	.box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.5));
	
    &:focus,
    &.focused {
		.box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.5));
Thomas Park's avatar
Thomas Park committed
91
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
92
	}
93
94
}

Thomas Park's avatar
Thomas Park committed
95
96
97
.navbar .nav-collapse.in .navbar-search {
	border-top: none;
	border-bottom: none;
Thomas Park's avatar
Thomas Park committed
98
}
99

Thomas Park's avatar
Thomas Park committed
100
.navbar .nav-collapse.in > .nav li > a {
101

Thomas Park's avatar
Thomas Park committed
102
	color: @textColor;
103

Thomas Park's avatar
Thomas Park committed
104
105
	.caret {
		border-top-color: @grayLight;
Thomas Park's avatar
Thomas Park committed
106
	}
Thomas Park's avatar
Thomas Park committed
107
108
109
110
111
112
113
}


.navbar .nav-collapse.in > .nav li > a:hover {
	text-shadow: none;
	color: @linkColor;
	background-color: transparent;
114
	
Thomas Park's avatar
Thomas Park committed
115
116
	.caret {
		border-top-color: @white;
117
118
119
	}
}

Thomas Park's avatar
Thomas Park committed
120
121
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
// BUTTON
// -----------------------------------------------------

.btn {
	.buttonBackground(#F4F4F4, #ECECEC);
}

.btn-primary {
	.buttonBackground(#909090, #3F3F3F);
}

.btn-warning {
  .buttonBackground(lighten(@yellow, 15%), @yellow);
}

.btn-danger {
  .buttonBackground(lighten(#DA2D2D, 15%), #DA2D2D);
}

.btn-success {
  .buttonBackground(#8ADD6D, #60B044);
}

.btn-info {
  .buttonBackground(lighten(#4488BB, 15%), #4488BB);
}

Thomas Park's avatar
Thomas Park committed
147
148
149
150
.btn-inverse {
  .buttonBackground(lighten(@purple, 5%), @purple);
}

Thomas Park's avatar
Thomas Park committed
151
152
153
154
155
156
// FORMS
// -----------------------------------------------------

.control-group.warning {
  .formFieldState(#E29235, #E29235, @warningBackground);
}
Thomas Park's avatar
Thomas Park committed
157

Thomas Park's avatar
Thomas Park committed
158
159
160
.control-group.error {
  .formFieldState(#C00, #C00, @errorBackground);
}
Thomas Park's avatar
Thomas Park committed
161

Thomas Park's avatar
Thomas Park committed
162
163
164
165
166
.control-group.success {
  .formFieldState(#2BA949, #2BA949, @successBackground);
}


Thomas Park's avatar
Thomas Park committed
167
// MISC
Thomas Park's avatar
Thomas Park committed
168
169
170
171
172
173
// -----------------------------------------------------

.label-important { background-color: #BD2C00; }
.label-warning   { background-color: #E3E84D; }
.label-success   { background-color: #6CC644; }
.label-info      { background-color: #4183C4; }
Thomas Park's avatar
Thomas Park committed
174
175
176
177
178

.hero-unit {
    .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
    border: 1px solid rgba(0,0,0,.05);
}