bootswatch.less 3.71 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.1.0
Thomas Park's avatar
Thomas Park committed
4
5
6
7
8
9
// -----------------------------------------------------

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

.navbar {
Thomas Park's avatar
Thomas Park committed
10

11
	.navbar-inner {
12
		border-bottom: 1px solid #CACACA;
13
14
		.box-shadow(0 1px 0 rgba(255,255,255,0.4)~", "0 0 10px rgba(0,0,0,0.1));
	}
Thomas Park's avatar
Thomas Park committed
15

Thomas Park's avatar
Thomas Park committed
16
17
	.brand {
		font-weight: bold;
Thomas Park's avatar
Thomas Park committed
18

Thomas Park's avatar
Thomas Park committed
19
20
21
22
		&:hover {
			color: @linkColor;
		}
	}
Thomas Park's avatar
Thomas Park committed
23

Thomas Park's avatar
Thomas Park committed
24
25
26
27
	.nav > li > a {
		padding: 11px 10px 9px;
		font-weight: bold;
		text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
28
	}
Thomas Park's avatar
Thomas Park committed
29

30
31
32
33
	.navbar-text {
		margin-top: 2px;
		padding: 0 10px;
		line-height: 38px;
Thomas Park's avatar
Thomas Park committed
34
	}
Thomas Park's avatar
Thomas Park committed
35

36
37
	.navbar-search .search-query,
	.navbar-search .search-query:hover {
38
		margin-bottom: 0;
39
40
41
		color: @grayLight;
		.placeholder(@grayLight);
		.box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.5));
Thomas Park's avatar
Thomas Park committed
42

43
44
45
46
47
48
	    &:focus,
	    &.focused {
			.box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.5));
			color: @textColor;
		}
	}
Thomas Park's avatar
Thomas Park committed
49

Thomas Park's avatar
Thomas Park committed
50
	.nav-collapse.collapse {
Thomas Park's avatar
Thomas Park committed
51

Thomas Park's avatar
Thomas Park committed
52
53
54
55
		.navbar-search {
			border-top: none;
			border-bottom: none;
		}
Thomas Park's avatar
Thomas Park committed
56

Thomas Park's avatar
Thomas Park committed
57
58
59
60
61
		& > .nav li > a:hover {
			background-color: @linkColor;
			color: @white;
			text-shadow: none;
		}
62

Thomas Park's avatar
Thomas Park committed
63
	}
64

Thomas Park's avatar
Thomas Park committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
	&-inverse {
		.brand {
			text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);

			&:hover {
				color: @white;
			}
		}

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

		.nav li.dropdown.open > .dropdown-toggle .caret,
		.nav li.dropdown:hover > .dropdown-toggle .caret,
		.nav li.dropdown.open:hover > .dropdown-toggle .caret {
			border-top-color: @white;
		}

		.nav-collapse.collapse {
			.nav li > a,
			.nav-header {
				color: @grayLighter;
			}
		}
90
	}
Thomas Park's avatar
Thomas Park committed
91
}
92

93
div.subnav {
Thomas Park's avatar
Thomas Park committed
94

95
96
	.nav > li > a {
		font-weight: bold;
Thomas Park's avatar
Thomas Park committed
97
		color: @textColor;
98

99
100
101
		&:hover {
			color: @linkColor;
		}
Thomas Park's avatar
Thomas Park committed
102
	}
Thomas Park's avatar
Thomas Park committed
103

104
105
	.nav > li.active > a {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
106

107
		&:hover {
108
			color: @textColor;
109
110
		}
	}
Thomas Park's avatar
Thomas Park committed
111

112
	.nav > li.dropdown > .dropdown-toggle {
113
114
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
115

116
117
118
	.nav > li.dropdown.open > .dropdown-toggle {
		border-left: 1px solid whiteSmoke;
		border-right: 1px solid #E5E5E5;
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
		color: @textColor;

		&:hover {
			color: @linkColor;
		}
	}
}

.nav > li.dropdown > .dropdown-toggle,
.nav > li.dropdown.active > .dropdown-toggle,
.nav > li.dropdown.open > .dropdown-toggle,
.nav > li.dropdown.open.active > .dropdown-toggle  {

	.caret {
		border-top: 4px solid @textColor;
		border-top-color: @textColor;
		opacity: 1;
136
	}
Thomas Park's avatar
Thomas Park committed
137

138
139
140
	&:hover .caret {
		border-top: 4px solid @linkColorHover;
		border-top-color: @linkColorHover;
141
142
143
	}
}

Thomas Park's avatar
Thomas Park committed
144
145
146
147
148
// BUTTON
// -----------------------------------------------------

.btn {
	.buttonBackground(#F4F4F4, #ECECEC);
Thomas Park's avatar
Thomas Park committed
149
150
151
152
153
154
155
156
157
158
159
	color: @textColor;
	text-shadow: none;


	&:hover,
	&:active,
	&.active,
	&.disabled,
	&[disabled] {
		color: @grayDark;
	}
Thomas Park's avatar
Thomas Park committed
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
}

.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
182
183
184
185
.btn-inverse {
  .buttonBackground(lighten(@purple, 5%), @purple);
}

Thomas Park's avatar
Thomas Park committed
186

Thomas Park's avatar
Thomas Park committed
187
188
189
190
191
192
// FORMS
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
194
195
196
.control-group.error {
  .formFieldState(#C00, #C00, @errorBackground);
}
Thomas Park's avatar
Thomas Park committed
197

Thomas Park's avatar
Thomas Park committed
198
199
200
201
202
.control-group.success {
  .formFieldState(#2BA949, #2BA949, @successBackground);
}


Thomas Park's avatar
Thomas Park committed
203
// MISC
Thomas Park's avatar
Thomas Park committed
204
205
// -----------------------------------------------------

206
207
208
209
.label-important, .badge-important { background-color: #BD2C00; }
.label-warning, .badge-warning   { background-color: #E3E84D; }
.label-success, .badge-success   { background-color: #6CC644; }
.label-info, .badge-info      { background-color: #4183C4; }
Thomas Park's avatar
Thomas Park committed
210
211
212
213
214

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