_masonstrap.scss 5.86 KB
Newer Older
David Haynes's avatar
David Haynes committed
1
// Masonstrap 4.0
Corey Sewell's avatar
Corey Sewell committed
2
3
4
// Bootswatch
// -----------------------------------------------------

5
6
$web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700" !default;
@import url($web-font-path);
Corey Sewell's avatar
Corey Sewell committed
7

David Haynes's avatar
David Haynes committed
8
// Navbar ======================================================================
Corey Sewell's avatar
Corey Sewell committed
9

10
.navbar {
David Haynes's avatar
David Haynes committed
11
12
13
  font-size: $font-size-sm;
  font-weight: $headings-font-weight;
}
14

15
// Default Mason Green #006633
David Haynes's avatar
David Haynes committed
16
.bg-primary {
17

David Haynes's avatar
David Haynes committed
18
19
  .dropdown-menu {
    background-color: $brand-primary;
20
    
David Haynes's avatar
David Haynes committed
21
22
23
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
24
25
    }

David Haynes's avatar
David Haynes committed
26
27
28
29
30
31
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus {
      background-color: darken($brand-primary, 5%);
      color: #fff;
    }
32
  }
David Haynes's avatar
David Haynes committed
33
}
34

35
// Some default color
David Haynes's avatar
David Haynes committed
36
.bg-inverse {
David Haynes's avatar
David Haynes committed
37
  background-color: $brand-secondary !important;
38

David Haynes's avatar
David Haynes committed
39
40
  .dropdown-menu {
    background-color: $gray;
41

David Haynes's avatar
David Haynes committed
42
43
44
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
45
46
    }

David Haynes's avatar
David Haynes committed
47
48
49
50
51
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: darken($gray, 5%);
      color: #fff;
52
53
    }
  }
David Haynes's avatar
David Haynes committed
54
}
55

David Haynes's avatar
David Haynes committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.bg-classic {
  background-color: $bg-classic !important;

  .dropdown-menu {
    background-color: $gray;

    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
    }

    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: darken($gray, 5%);
      color: #fff;
    }
  }
}

David Haynes's avatar
David Haynes committed
76
// Buttons =====================================================================
77

David Haynes's avatar
David Haynes committed
78
79
80
81
.btn-secondary {
  color: $bg-classic !important;
}

82
83
84
85
86
87
88
89
.btn-group {

  .dropdown-menu {
    border-top-width: 0;
  }

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
90
91
92
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
93

David Haynes's avatar
David Haynes committed
94
95
      .dropdown-item {
        color: $btn-primary-color;
96
97
      }

David Haynes's avatar
David Haynes committed
98
99
100
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-primary-bg, 8%);
101
102
103
      }
    }

David Haynes's avatar
David Haynes committed
104
105
106
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
107

David Haynes's avatar
David Haynes committed
108
109
      .dropdown-item {
        color: $btn-secondary-color;
110
111
      }

David Haynes's avatar
David Haynes committed
112
113
114
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-secondary-bg, 8%);
115
116
117
118
119
120
121
      }
    }

    &.btn-success ~ .dropdown-menu {
      background-color: $btn-success-bg;
      border-color: $btn-success-border;

David Haynes's avatar
David Haynes committed
122
      .dropdown-item {
123
124
125
        color: $btn-success-color;
      }

David Haynes's avatar
David Haynes committed
126
127
      .dropdown-item:hover,
      .dropdown-item:focus {
128
129
130
131
132
133
134
135
        background-color: darken($btn-success-bg, 8%);
      }
    }

    &.btn-info ~ .dropdown-menu {
      background-color: $btn-info-bg;
      border-color: $btn-info-border;

David Haynes's avatar
David Haynes committed
136
      .dropdown-item {
137
138
139
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
140
141
      .dropdown-item:hover,
      .dropdown-item:focus {
142
143
144
145
146
147
148
149
        background-color: darken($btn-info-bg, 8%);
      }
    }

    &.btn-warning ~ .dropdown-menu {
      background-color: $btn-warning-bg;
      border-color: $btn-warning-border;

David Haynes's avatar
David Haynes committed
150
      .dropdown-item {
151
152
153
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
154
155
      .dropdown-item:hover,
      .dropdown-item:focus {
156
157
158
159
160
161
162
163
        background-color: darken($btn-warning-bg, 8%);
      }
    }

    &.btn-danger ~ .dropdown-menu {
      background-color: $btn-danger-bg;
      border-color: $btn-danger-border;

David Haynes's avatar
David Haynes committed
164
      .dropdown-item {
165
166
167
        color: $btn-danger-color;
      }

David Haynes's avatar
David Haynes committed
168
169
      .dropdown-item:hover,
      .dropdown-item:focus {
170
171
172
173
174
175
        background-color: darken($btn-danger-bg, 8%);
      }
    }
  }
}

David Haynes's avatar
David Haynes committed
176
// Typography ==================================================================
177

David Haynes's avatar
David Haynes committed
178
179
.blockquote-footer {
  color: $gray-light;
180
181
}

David Haynes's avatar
David Haynes committed
182
// Tables ======================================================================
183

David Haynes's avatar
David Haynes committed
184
185
table {
  font-size: $font-size-sm;
186
187
}

David Haynes's avatar
David Haynes committed
188
.table {
Corey Sewell's avatar
Corey Sewell committed
189

David Haynes's avatar
David Haynes committed
190
191
192
193
194
195
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
196
197
}

David Haynes's avatar
David Haynes committed
198
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
199

200
201
202
203
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
204
205
206
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
207
208
}

David Haynes's avatar
David Haynes committed
209
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
210

David Haynes's avatar
David Haynes committed
211
212
213
214
215
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
216
217
218
}

.nav-tabs {
David Haynes's avatar
David Haynes committed
219
220
221
222
223
224
  .nav-link,
  .nav-link.disabled,
  .nav-link.disabled:hover,
  .nav-link.disabled:focus {
    border-color: $nav-tabs-border-color;
    background-color: $gray-lightest;
225
226
  }

David Haynes's avatar
David Haynes committed
227
228
229
  .nav-link:hover,
  .nav-link:focus {
    background-color: lighten($gray-lightest, 5%);
230
231
232
233
  }
}

.nav-pills {
David Haynes's avatar
David Haynes committed
234
235
236
  .active {
    border: 1px solid $btn-primary-border;
  }
237
238
239
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
240
241
242
  border: 1px solid $dropdown-border-color;
  border-radius: 3px;
  font-size: $font-size-sm;
243
244
245
246
247
248
249
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-weight: 300;

David Haynes's avatar
David Haynes committed
250
251
252
253
254
  .page-link {
    border-color: transparent;
    border-radius: 3px;
    margin-left: 0.1em;
    margin-right: 0.1em;
255

David Haynes's avatar
David Haynes committed
256
257
258
    &:hover,
    &:focus {
      text-decoration: none;
259
260
261
    }
  }

David Haynes's avatar
David Haynes committed
262
263
264
  .page-item.disabled {
    .page-link {
      border-color: transparent;
265
266
267
268
269
    }
  }
}

.list-group {
David Haynes's avatar
David Haynes committed
270
  font-size: $font-size-sm;
271
272
273
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
274
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
275

276
.close {
David Haynes's avatar
David Haynes committed
277
  opacity: 0.6;
278
279
280
281
282
283
284
285
286
  text-shadow: none;

  &:hover,
  &:focus {
    opacity: 1;
  }
}

.alert {
David Haynes's avatar
David Haynes committed
287
  font-size: $font-size-sm;
288
289
290
291
292
293
294
295
296
  font-weight: 300;

  .alert-link {
    font-weight: normal;
    color: #fff;
    text-decoration: underline;
  }
}

David Haynes's avatar
David Haynes committed
297
298
.tag {
  padding-bottom: .6em;
299
300
}

David Haynes's avatar
David Haynes committed
301
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
302

David Haynes's avatar
David Haynes committed
303
304
305
.progress[value] {
  height: 22px;
  padding: 2px;
306
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
307
  border: 1px solid #ccc;
308
309
310
  @include box-shadow(none);
}

311
312
313
314
315
316
317
318
// Containers ==================================================================



// Custom ==================================================================
.rounded {
    border-radius: .25rem;
}