_masonstrap.scss 5.44 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
  font-size: $font-size-sm;
  font-weight: $headings-font-weight;
13
14
15
16
17

  .dropdown-menu {
    // Hack to fix the menu from sitting on top of the .navbar
    top: 112%;
  }
David Haynes's avatar
David Haynes committed
18
}
19

20
// Default Mason Green #006633
David Haynes's avatar
David Haynes committed
21
.bg-primary {
22

David Haynes's avatar
David Haynes committed
23
24
  .dropdown-menu {
    background-color: $brand-primary;
25
    
David Haynes's avatar
David Haynes committed
26
27
28
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
29
30
    }

David Haynes's avatar
David Haynes committed
31
32
33
34
35
36
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus {
      background-color: darken($brand-primary, 5%);
      color: #fff;
    }
37
  }
David Haynes's avatar
David Haynes committed
38
}
39

40
// Some default color
David Haynes's avatar
David Haynes committed
41
42
.bg-inverse {
  background-color: $gray !important;
43

David Haynes's avatar
David Haynes committed
44
45
  .dropdown-menu {
    background-color: $gray;
46

David Haynes's avatar
David Haynes committed
47
48
49
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
50
51
    }

David Haynes's avatar
David Haynes committed
52
53
54
55
56
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: darken($gray, 5%);
      color: #fff;
57
58
    }
  }
David Haynes's avatar
David Haynes committed
59
}
60

David Haynes's avatar
David Haynes committed
61
// Buttons =====================================================================
62
63
64
65
66
67
68
69
70

.btn-group {

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

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
71
72
73
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
74

David Haynes's avatar
David Haynes committed
75
76
      .dropdown-item {
        color: $btn-primary-color;
77
78
      }

David Haynes's avatar
David Haynes committed
79
80
81
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-primary-bg, 8%);
82
83
84
      }
    }

David Haynes's avatar
David Haynes committed
85
86
87
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
88

David Haynes's avatar
David Haynes committed
89
90
      .dropdown-item {
        color: $btn-secondary-color;
91
92
      }

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

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

David Haynes's avatar
David Haynes committed
103
      .dropdown-item {
104
105
106
        color: $btn-success-color;
      }

David Haynes's avatar
David Haynes committed
107
108
      .dropdown-item:hover,
      .dropdown-item:focus {
109
110
111
112
113
114
115
116
        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
117
      .dropdown-item {
118
119
120
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
121
122
      .dropdown-item:hover,
      .dropdown-item:focus {
123
124
125
126
127
128
129
130
        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
131
      .dropdown-item {
132
133
134
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
135
136
      .dropdown-item:hover,
      .dropdown-item:focus {
137
138
139
140
141
142
143
144
        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
145
      .dropdown-item {
146
147
148
        color: $btn-danger-color;
      }

David Haynes's avatar
David Haynes committed
149
150
      .dropdown-item:hover,
      .dropdown-item:focus {
151
152
153
154
155
156
        background-color: darken($btn-danger-bg, 8%);
      }
    }
  }
}

David Haynes's avatar
David Haynes committed
157
// Typography ==================================================================
158

David Haynes's avatar
David Haynes committed
159
160
.blockquote-footer {
  color: $gray-light;
161
162
}

David Haynes's avatar
David Haynes committed
163
// Tables ======================================================================
164

David Haynes's avatar
David Haynes committed
165
166
table {
  font-size: $font-size-sm;
167
168
}

David Haynes's avatar
David Haynes committed
169
.table {
Corey Sewell's avatar
Corey Sewell committed
170

David Haynes's avatar
David Haynes committed
171
172
173
174
175
176
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
177
178
}

David Haynes's avatar
David Haynes committed
179
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
180

181
182
183
184
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
185
186
187
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
188
189
}

David Haynes's avatar
David Haynes committed
190
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
191

David Haynes's avatar
David Haynes committed
192
193
194
195
196
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
197
198
199
}

.nav-tabs {
David Haynes's avatar
David Haynes committed
200
201
202
203
204
205
  .nav-link,
  .nav-link.disabled,
  .nav-link.disabled:hover,
  .nav-link.disabled:focus {
    border-color: $nav-tabs-border-color;
    background-color: $gray-lightest;
206
207
  }

David Haynes's avatar
David Haynes committed
208
209
210
  .nav-link:hover,
  .nav-link:focus {
    background-color: lighten($gray-lightest, 5%);
211
212
213
214
  }
}

.nav-pills {
David Haynes's avatar
David Haynes committed
215
216
217
  .active {
    border: 1px solid $btn-primary-border;
  }
218
219
220
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
221
222
223
  border: 1px solid $dropdown-border-color;
  border-radius: 3px;
  font-size: $font-size-sm;
224
225
226
227
228
229
230
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-weight: 300;

David Haynes's avatar
David Haynes committed
231
232
233
234
235
  .page-link {
    border-color: transparent;
    border-radius: 3px;
    margin-left: 0.1em;
    margin-right: 0.1em;
236

David Haynes's avatar
David Haynes committed
237
238
239
    &:hover,
    &:focus {
      text-decoration: none;
240
241
242
    }
  }

David Haynes's avatar
David Haynes committed
243
244
245
  .page-item.disabled {
    .page-link {
      border-color: transparent;
246
247
248
249
250
    }
  }
}

.list-group {
David Haynes's avatar
David Haynes committed
251
  font-size: $font-size-sm;
252
253
254
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
255
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
256

257
.close {
David Haynes's avatar
David Haynes committed
258
  opacity: 0.6;
259
260
261
262
263
264
265
266
267
  text-shadow: none;

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

.alert {
David Haynes's avatar
David Haynes committed
268
  font-size: $font-size-sm;
269
270
271
272
273
274
275
276
277
  font-weight: 300;

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

David Haynes's avatar
David Haynes committed
278
279
.tag {
  padding-bottom: .6em;
280
281
}

David Haynes's avatar
David Haynes committed
282
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
283

David Haynes's avatar
David Haynes committed
284
285
286
.progress[value] {
  height: 22px;
  padding: 2px;
287
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
288
  border: 1px solid #ccc;
289
290
291
  @include box-shadow(none);
}

David Haynes's avatar
David Haynes committed
292
// Containers ==================================================================