_masonstrap.scss 5.46 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
// Buttons =====================================================================
57
58
59
60
61
62
63
64
65

.btn-group {

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

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
66
67
68
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
69

David Haynes's avatar
David Haynes committed
70
71
      .dropdown-item {
        color: $btn-primary-color;
72
73
      }

David Haynes's avatar
David Haynes committed
74
75
76
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-primary-bg, 8%);
77
78
79
      }
    }

David Haynes's avatar
David Haynes committed
80
81
82
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
83

David Haynes's avatar
David Haynes committed
84
85
      .dropdown-item {
        color: $btn-secondary-color;
86
87
      }

David Haynes's avatar
David Haynes committed
88
89
90
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-secondary-bg, 8%);
91
92
93
94
95
96
97
      }
    }

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

David Haynes's avatar
David Haynes committed
98
      .dropdown-item {
99
100
101
        color: $btn-success-color;
      }

David Haynes's avatar
David Haynes committed
102
103
      .dropdown-item:hover,
      .dropdown-item:focus {
104
105
106
107
108
109
110
111
        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
112
      .dropdown-item {
113
114
115
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
116
117
      .dropdown-item:hover,
      .dropdown-item:focus {
118
119
120
121
122
123
124
125
        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
126
      .dropdown-item {
127
128
129
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
130
131
      .dropdown-item:hover,
      .dropdown-item:focus {
132
133
134
135
136
137
138
139
        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
140
      .dropdown-item {
141
142
143
        color: $btn-danger-color;
      }

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

David Haynes's avatar
David Haynes committed
152
// Typography ==================================================================
153

David Haynes's avatar
David Haynes committed
154
155
.blockquote-footer {
  color: $gray-light;
156
157
}

David Haynes's avatar
David Haynes committed
158
// Tables ======================================================================
159

David Haynes's avatar
David Haynes committed
160
161
table {
  font-size: $font-size-sm;
162
163
}

David Haynes's avatar
David Haynes committed
164
.table {
Corey Sewell's avatar
Corey Sewell committed
165

David Haynes's avatar
David Haynes committed
166
167
168
169
170
171
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
172
173
}

David Haynes's avatar
David Haynes committed
174
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
175

176
177
178
179
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
180
181
182
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
183
184
}

David Haynes's avatar
David Haynes committed
185
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
186

David Haynes's avatar
David Haynes committed
187
188
189
190
191
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
192
193
194
}

.nav-tabs {
David Haynes's avatar
David Haynes committed
195
196
197
198
199
200
  .nav-link,
  .nav-link.disabled,
  .nav-link.disabled:hover,
  .nav-link.disabled:focus {
    border-color: $nav-tabs-border-color;
    background-color: $gray-lightest;
201
202
  }

David Haynes's avatar
David Haynes committed
203
204
205
  .nav-link:hover,
  .nav-link:focus {
    background-color: lighten($gray-lightest, 5%);
206
207
208
209
  }
}

.nav-pills {
David Haynes's avatar
David Haynes committed
210
211
212
  .active {
    border: 1px solid $btn-primary-border;
  }
213
214
215
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
216
217
218
  border: 1px solid $dropdown-border-color;
  border-radius: 3px;
  font-size: $font-size-sm;
219
220
221
222
223
224
225
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-weight: 300;

David Haynes's avatar
David Haynes committed
226
227
228
229
230
  .page-link {
    border-color: transparent;
    border-radius: 3px;
    margin-left: 0.1em;
    margin-right: 0.1em;
231

David Haynes's avatar
David Haynes committed
232
233
234
    &:hover,
    &:focus {
      text-decoration: none;
235
236
237
    }
  }

David Haynes's avatar
David Haynes committed
238
239
240
  .page-item.disabled {
    .page-link {
      border-color: transparent;
241
242
243
244
245
    }
  }
}

.list-group {
David Haynes's avatar
David Haynes committed
246
  font-size: $font-size-sm;
247
248
249
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
250
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
251

252
.close {
David Haynes's avatar
David Haynes committed
253
  opacity: 0.6;
254
255
256
257
258
259
260
261
262
  text-shadow: none;

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

.alert {
David Haynes's avatar
David Haynes committed
263
  font-size: $font-size-sm;
264
265
266
267
268
269
270
271
272
  font-weight: 300;

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

David Haynes's avatar
David Haynes committed
273
274
.tag {
  padding-bottom: .6em;
275
276
}

David Haynes's avatar
David Haynes committed
277
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
278

David Haynes's avatar
David Haynes committed
279
280
281
.progress[value] {
  height: 22px;
  padding: 2px;
282
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
283
  border: 1px solid #ccc;
284
285
286
  @include box-shadow(none);
}

287
288
289
290
291
292
293
294
// Containers ==================================================================



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