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

David Haynes's avatar
David Haynes committed
4
// Navbar ======================================================================
Corey Sewell's avatar
Corey Sewell committed
5

6
.navbar {
David Haynes's avatar
David Haynes committed
7 8 9
  font-size: $font-size-sm;
  font-weight: $headings-font-weight;
}
10

11
// Default Mason Green #006633
David Haynes's avatar
David Haynes committed
12
.bg-primary {
13

David Haynes's avatar
David Haynes committed
14 15
  .dropdown-menu {
    background-color: $brand-primary;
16
    
David Haynes's avatar
David Haynes committed
17 18 19
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
20 21
    }

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

31
// Some default color
David Haynes's avatar
David Haynes committed
32
.bg-inverse {
David Haynes's avatar
David Haynes committed
33
  background-color: $brand-secondary !important;
34

David Haynes's avatar
David Haynes committed
35 36
  .dropdown-menu {
    background-color: $gray;
37

David Haynes's avatar
David Haynes committed
38 39 40
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
41 42
    }

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

David Haynes's avatar
David Haynes committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
.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
72
// Buttons =====================================================================
73

David Haynes's avatar
David Haynes committed
74 75 76 77
.btn-secondary {
  color: $bg-classic !important;
}

78 79 80 81 82 83 84 85
.btn-group {

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

  .dropdown-toggle {

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

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

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

David Haynes's avatar
David Haynes committed
100 101 102
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
103

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

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

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

David Haynes's avatar
David Haynes committed
118
      .dropdown-item {
119 120 121
        color: $btn-success-color;
      }

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

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

David Haynes's avatar
David Haynes committed
150 151
      .dropdown-item:hover,
      .dropdown-item:focus {
152 153 154 155 156 157 158 159
        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
160
      .dropdown-item {
161 162 163
        color: $btn-danger-color;
      }

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

David Haynes's avatar
David Haynes committed
172
// Typography ==================================================================
173

David Haynes's avatar
David Haynes committed
174 175
.blockquote-footer {
  color: $gray-light;
176 177
}

David Haynes's avatar
David Haynes committed
178
// Tables ======================================================================
179

David Haynes's avatar
David Haynes committed
180 181
table {
  font-size: $font-size-sm;
182 183
}

David Haynes's avatar
David Haynes committed
184
.table {
Corey Sewell's avatar
Corey Sewell committed
185

David Haynes's avatar
David Haynes committed
186 187 188 189 190 191
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
192 193
}

David Haynes's avatar
David Haynes committed
194
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
195

196 197 198 199
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
200 201 202
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
203 204
}

David Haynes's avatar
David Haynes committed
205
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
206

David Haynes's avatar
David Haynes committed
207 208 209 210 211
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
212 213 214
}

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

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

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

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

.pagination {
  font-weight: 300;

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

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

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

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

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

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

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

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

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

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

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

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

312 313
// Containers ==================================================================

David Haynes's avatar
David Haynes committed
314 315 316
.card-footer {
  color: $bg-classic;
}
317 318 319 320 321

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