| 1 |
//==================================== |
| 2 |
// Additional theme classes |
| 3 |
//==================================== |
| 4 |
|
| 5 |
// General |
| 6 |
.tofront { |
| 7 |
position:relative; |
| 8 |
z-index:1; |
| 9 |
} |
| 10 |
.full-width { |
| 11 |
width: 100vw; |
| 12 |
position: relative; |
| 13 |
margin-left: -50vw; |
| 14 |
left: 50%; |
| 15 |
} |
| 16 |
.c-pointer:hover { |
| 17 |
cursor:pointer; |
| 18 |
} |
| 19 |
.c-move:hover { |
| 20 |
cursor:move; |
| 21 |
} |
| 22 |
.z-index-1 { |
| 23 |
z-index:1; |
| 24 |
} |
| 25 |
// Typography |
| 26 |
|
| 27 |
.display-3 { |
| 28 |
@include media-breakpoint-down(md) { |
| 29 |
font-size: 3.5rem; |
| 30 |
} |
| 31 |
@include media-breakpoint-down(sm) { |
| 32 |
font-size: 2rem; |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
// Margins |
| 38 |
.row.gap-y>.col, .row.gap-y>[class*="col-"]*="col-""] { |
| 39 |
padding-top: 15px; |
| 40 |
padding-bottom: 15px; |
| 41 |
} |
| 42 |
.mt-neg5 { |
| 43 |
margin-top: -5rem; |
| 44 |
} |
| 45 |
.ml-neg5 { |
| 46 |
margin-left: -5rem; |
| 47 |
} |
| 48 |
|
| 49 |
// Heights |
| 50 |
@include media-breakpoint-up(md) { |
| 51 |
.h-md-100-v { |
| 52 |
height: 100vh; |
| 53 |
} |
| 54 |
.h-md-100 { |
| 55 |
height: 100vh; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
@include media-breakpoint-only(xl) { |
| 60 |
.h-xl-300 { |
| 61 |
height: 300px; |
| 62 |
} |
| 63 |
.h-max-380 { |
| 64 |
max-height:380px; |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
// Mixins |
| 69 |
@mixin button-variant-link($color){ |
| 70 |
color: $color; |
| 71 |
} |
| 72 |
|
| 73 |
// Buttons |
| 74 |
.btn-round { |
| 75 |
border-radius: $round-radius !important; |
| 76 |
} |
| 77 |
.btn { |
| 78 |
@include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-line-height, $btn-border-radius); |
| 79 |
&:hover, |
| 80 |
&:focus { |
| 81 |
box-shadow: $box-shadow; |
| 82 |
outline: 0 !important; |
| 83 |
} |
| 84 |
//.badge { |
| 85 |
// position: absolute; |
| 86 |
// top: -.625rem; |
| 87 |
// right: -.3125rem; |
| 88 |
//} |
| 89 |
position:relative; |
| 90 |
} |
| 91 |
|
| 92 |
.btn-lg { |
| 93 |
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $font-size-lg, $btn-line-height-lg, $btn-border-radius-lg); |
| 94 |
} |
| 95 |
|
| 96 |
.btn-sm { |
| 97 |
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-line-height-sm, $btn-border-radius-sm); |
| 98 |
} |
| 99 |
|
| 100 |
.btn-link { |
| 101 |
&:hover, |
| 102 |
&:focus { |
| 103 |
box-shadow:none; |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
@each $color, $value in $theme-colors { |
| 108 |
.btn-link.btn-#{$color} { |
| 109 |
@include button-variant-link($value); |
| 110 |
border-color: transparent; |
| 111 |
} |
| 112 |
} |
| 113 |
.btn-white {background-color:#fff;} |
| 114 |
// Inputs |
| 115 |
.input-round { |
| 116 |
border-radius: $round-radius !important; |
| 117 |
} |
| 118 |
.input-group.input-round { |
| 119 |
input:first-child {border-radius:30px 0 0 30px} |
| 120 |
input:last-child {border-radius:0px 30px 30px 0px} |
| 121 |
} |
| 122 |
|
| 123 |
|
| 124 |
// Nav |
| 125 |
.navbar { |
| 126 |
font-weight: $font-weight-normal; |
| 127 |
} |
| 128 |
.navbar-brand { |
| 129 |
margin-right:2rem; |
| 130 |
font-size:1.25rem; |
| 131 |
} |
| 132 |
.dropdown-item { |
| 133 |
font-weight: $font-weight-base; |
| 134 |
} |
| 135 |
.dropdown-menu { |
| 136 |
border:0; |
| 137 |
text-transform:none; |
| 138 |
box-shadow: $box-shadow-lg; |
| 139 |
&:before { |
| 140 |
@include media-breakpoint-up(md) { |
| 141 |
content: ''; |
| 142 |
top: -8px; |
| 143 |
position: absolute; |
| 144 |
left: 50px; |
| 145 |
border-top: 16px solid #fff; |
| 146 |
border-left: 16px solid #fff; |
| 147 |
transform: rotate(45deg); |
| 148 |
z-index: -1; |
| 149 |
} |
| 150 |
} |
| 151 |
&.dropdown-menu-right{ |
| 152 |
&:before { |
| 153 |
@include media-breakpoint-up(md) { |
| 154 |
left:unset; |
| 155 |
right: 50px; |
| 156 |
|
| 157 |
} |
| 158 |
} |
| 159 |
} |
| 160 |
|
| 161 |
&.dropdown-caret-0{ |
| 162 |
&:before{ |
| 163 |
content: none; |
| 164 |
} |
| 165 |
} |
| 166 |
|
| 167 |
} |
| 168 |
|
| 169 |
// Dark links against a light background |
| 170 |
.navbar-light { |
| 171 |
.navbar-brand { |
| 172 |
color: $navbar-light-active-color; |
| 173 |
|
| 174 |
@include hover-focus { |
| 175 |
color: $navbar-light-active-color; |
| 176 |
} |
| 177 |
} |
| 178 |
|
| 179 |
.navbar-nav { |
| 180 |
.nav-link { |
| 181 |
color: $navbar-light-color; |
| 182 |
@include hover-focus { |
| 183 |
color: $navbar-light-hover-color; |
| 184 |
} |
| 185 |
|
| 186 |
&.disabled { |
| 187 |
color: $navbar-light-disabled-color; |
| 188 |
} |
| 189 |
} |
| 190 |
|
| 191 |
.show > .nav-link, |
| 192 |
.active > .nav-link, |
| 193 |
.nav-link.show, |
| 194 |
.nav-link.active { |
| 195 |
color: $navbar-light-active-color; |
| 196 |
} |
| 197 |
} |
| 198 |
|
| 199 |
.navbar-toggler { |
| 200 |
color: $navbar-light-color; |
| 201 |
border-color: $navbar-light-toggler-border-color; |
| 202 |
} |
| 203 |
|
| 204 |
.navbar-toggler-icon { |
| 205 |
background-image: $navbar-light-toggler-icon-bg; |
| 206 |
} |
| 207 |
|
| 208 |
.navbar-text { |
| 209 |
color: $navbar-light-color; |
| 210 |
a { |
| 211 |
color: $navbar-light-active-color; |
| 212 |
|
| 213 |
@include hover-focus { |
| 214 |
color: $navbar-light-active-color; |
| 215 |
} |
| 216 |
} |
| 217 |
} |
| 218 |
} |
| 219 |
|
| 220 |
|
| 221 |
// Jumbotron |
| 222 |
.jumbotron { |
| 223 |
background-size:cover; |
| 224 |
padding: 7rem 1rem; |
| 225 |
} |
| 226 |
@include media-breakpoint-up(lg) { |
| 227 |
.jumbotron-lg-withnav {padding-bottom: calc(10rem - 70px);} |
| 228 |
.jumbotron-lg { padding:10rem 0;} |
| 229 |
.jumbotron-xl { padding:15rem 0;} |
| 230 |
.jumbotron-xl {min-height:100vh;} |
| 231 |
.bottom-align-text-absolute { |
| 232 |
position: absolute; |
| 233 |
bottom: 30px; |
| 234 |
margin:auto; |
| 235 |
left: 0; |
| 236 |
right:0; |
| 237 |
} |
| 238 |
} |
| 239 |
|
| 240 |
// Backgrounds |
| 241 |
.bg-black { background-color: $black; } |
| 242 |
.overlay { |
| 243 |
position: relative; |
| 244 |
.container { |
| 245 |
position: relative; |
| 246 |
} |
| 247 |
&:before { |
| 248 |
content: ""; |
| 249 |
display: block; |
| 250 |
height: 100%; |
| 251 |
left: 0; |
| 252 |
top: 0; |
| 253 |
position: absolute; |
| 254 |
width: 100%; |
| 255 |
} |
| 256 |
} |
| 257 |
.overlay-black { |
| 258 |
&:before { |
| 259 |
background-color: rgba(0, 0, 0, 0.5); |
| 260 |
} |
| 261 |
} |
| 262 |
.overlay-blue { |
| 263 |
&:before { |
| 264 |
background-color: rgba(23, 29, 90, 0.5); |
| 265 |
} |
| 266 |
} |
| 267 |
.overlay-red { |
| 268 |
&:before { |
| 269 |
background:linear-gradient(0deg,rgba(44,44,44,.2),rgba(224,23,3,.6)); |
| 270 |
} |
| 271 |
} |
| 272 |
.overlay-blue { |
| 273 |
&:before { |
| 274 |
background-color: rgba(23, 29, 90, 0.5); |
| 275 |
} |
| 276 |
} |
| 277 |
|
| 278 |
// SVG fills |
| 279 |
|
| 280 |
@mixin fill-variant($parent, $color) { |
| 281 |
#{$parent} { |
| 282 |
fill: $color !important; |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
@each $color, $value in $theme-colors { |
| 287 |
@include fill-variant(".bg-#{$color}", $value); |
| 288 |
} |
| 289 |
|
| 290 |
// Icons |
| 291 |
.iconbox { |
| 292 |
border:1px solid; |
| 293 |
text-align:center; |
| 294 |
display:inline-block; |
| 295 |
} |
| 296 |
.iconbox.iconsmall { |
| 297 |
width:40px; |
| 298 |
height:40px; |
| 299 |
line-height:40px; |
| 300 |
font-size:1rem; |
| 301 |
} |
| 302 |
.iconbox.iconmedium { |
| 303 |
width:60px; |
| 304 |
height:60px; |
| 305 |
line-height:60px; |
| 306 |
font-size:1.8rem; |
| 307 |
} |
| 308 |
.iconbox.iconlarge { |
| 309 |
width:80px; |
| 310 |
height:80px; |
| 311 |
line-height:80px; |
| 312 |
font-size:2.2rem; |
| 313 |
} |
| 314 |
|
| 315 |
// Alerts |
| 316 |
@each $color, $value in $theme-colors { |
| 317 |
.alert-#{$color} { |
| 318 |
@include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), #fff); |
| 319 |
} |
| 320 |
} |
| 321 |
|
| 322 |
// Lists |
| 323 |
|
| 324 |
ul.list-unstyled li {margin-bottom:1rem;} |
| 325 |
|
| 326 |
// Login |
| 327 |
|
| 328 |
@include media-breakpoint-up(md) { |
| 329 |
.loginarea { |
| 330 |
z-index: 1111; |
| 331 |
} |
| 332 |
} |
| 333 |
|
| 334 |
|
| 335 |
// Uploader in safari button overflowing |
| 336 |
.geodir-add-files .moxie-shim { |
| 337 |
position: initial !important; |
| 338 |
background: transparent; // this is for divi theme that does background position stuff and breaks it. |
| 339 |
} |