main.scss 9.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
$colors: (
	orange: #EA7105,
	lightgrey: #F7F7F7,
	lightergrey: #FBFBFB,
	darkgrey: #3C3C3B,
	bordergrey: #E5E5E5,
);

$zindex: (
	header: 2,
	footer: 2,
	main: 1,
Ad Schellevis's avatar
Ad Schellevis committed
13
	sidebar: 3,
14 15 16 17
);

@font-face {
  font-family: 'SourceSansProBold';
18 19
  src: url('/themes/opnsense/build/fonts/SourceSansPro-Bold/SourceSansPro-Bold.woff') format('woff'),
       url('/themes/opnsense/build/fonts/SourceSansPro-Bold/SourceSansPro-Bold.ttf') format('truetype');
20 21 22 23
}

@font-face {
  font-family: 'SourceSansProSemibold';
24 25
  src: url('/themes/opnsense/build/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.woff') format('woff'),
       url('/themes/opnsense/build/fonts/SourceSansPro-Semibold/SourceSansPro-Semibold.ttf') format('truetype');
26 27 28 29
}

@font-face {
  font-family: 'SourceSansProRegular';
30 31
  src: url('/themes/opnsense/build/fonts/SourceSansPro-Regular/SourceSansPro-Regular.woff') format('woff'),
       url('/themes/opnsense/build/fonts/SourceSansPro-Regular/SourceSansPro-Regular.ttf') format('truetype');
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
}

// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";

// Reset and dependencies
@import "bootstrap/normalize";
@import "bootstrap/print";
@import "bootstrap/glyphicons";

// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";

// Components
@import "bootstrap/component-animations";
@import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/jumbotron";
@import "bootstrap/thumbnails";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/panels";
@import "bootstrap/responsive-embed";
@import "bootstrap/wells";
@import "bootstrap/close";

// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
@import "bootstrap/carousel";

// Utility classes
@import "bootstrap/utilities";
@import "bootstrap/responsive-utilities";

Ad Schellevis's avatar
Ad Schellevis committed
85 86 87
*{
    -webkit-font-smoothing: antialiased;
}
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106

html, body{
	height: 100%;
	font-family: 'SourceSansProRegular';
}

body{
	min-width: 320px;
}

.page-head{
	background: map-get($colors, darkgrey);
	top: 0;
	left: 0;
	position: fixed;
	width: 100%;
	z-index: map-get($zindex, header);
}

107
.page-content{
108 109 110 111
	height: calc(100% - 52px);
	padding-top: 52px;
	position: relative;
	z-index: map-get($zindex, main);
112

113 114 115 116 117 118 119 120
	> .row{
		height: 100%;
	}
}

.page-content-head{
	background: map-get($colors, lightergrey);
	border-bottom: 1px solid rgba(#D9D9D9, .50);
121
	padding-bottom: 15px;
122
	padding-top: 20px;
123

124 125 126
	.navbar-nav{
		width: 100%;
	}
127

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
	h1,h2,h3{
		line-height: 1;
		margin: 0;
	}
}

.page-content-main{
	background: map-get($colors, lightgrey);
	min-height: calc(100% - 64px);
	padding: 15px 0 (15px + 58px);
}

.page-side{
	background: #FFF;
	border-right: 1px solid rgba(0,0,0,.15);
	height: 100% !important;
	height: calc(100% - 52px) !important;
	left: 0;
	overflow: auto;
	margin-top: 52px;
	position: fixed;
	top: 0;
	z-index: map-get($zindex, sidebar);
151

152 153 154 155
	@extend .hidden-xs;
}

.page-side-nav {
156

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
	&--active{
		background: map-get($colors, lightgrey);
		border-left: 3px solid map-get($colors, orange);
	}
}

.page-foot{
	background: map-get($colors, lightergrey);
	bottom: 0;
	border-top: 1px solid rgba(#D9D9D9, .50);
	font-size: 12px;
	padding: 20px 0;
	position: fixed;
	width: 100%;
	z-index: map-get($zindex, footer);
}

.content-box{
	background: #FFF;
	border: 1px solid map-get($colors, bordergrey);;
177

178
	@extend .clearfix;
179

180
	&-head{
181
	@extend .page-content-head;
182
	}
183

184
	&-main{
185 186 187
	//background: map-get($colors, lightgrey);
	padding-bottom: 15px;
	padding-top: 15px;
188 189 190 191 192 193 194
	}
}

.tab-content{
	border-top: 0px;
	margin-bottom: 15px;
	padding: 15px 0;
195

196
	> .tab-content{
197 198
	margin-bottom: 0;
	padding: 0 15px;
199
	}
200

201
	.tab-content:last-child{
202
	margin-bottom: 0;
203 204 205 206 207 208 209
	}
}

.page-content-main [class^="col-"] + [class^="col-"]{
	padding-top: ($grid-gutter-width/2);
}

Ad Schellevis's avatar
Ad Schellevis committed
210 211
.brand-logo{
    display: none;
212

Ad Schellevis's avatar
Ad Schellevis committed
213
    @media (min-width: $screen-sm-min) {
214
        display: inline-block;
Ad Schellevis's avatar
Ad Schellevis committed
215 216 217 218 219
    }
}

.brand-icon{
    display: inline-block;
220

Ad Schellevis's avatar
Ad Schellevis committed
221
    @media (min-width: $screen-sm-min) {
222
        display: none;
Ad Schellevis's avatar
Ad Schellevis committed
223 224 225
    }
}

226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
.col-sm-disable-spacer{
    @media (min-width: $screen-sm-min) {
        padding-top: 0 !important;
    }
}

.col-md-disable-spacer{
    @media (min-width: $screen-md-min) {
        padding-top: 0 !important;
    }
}

.col-lg-disable-spacer{
    @media (min-width: $screen-lg-min) {
        padding-top: 0 !important;
    }
}

.page-login{
    background: map-get($colors, lightgrey);
246

247 248
    .container{
        min-height: 100%;
249 250
        margin-bottom: -60px;

251 252 253 254 255 256 257 258 259 260 261 262
        &:after{
            height: 60px;
        }
    }
}

.login-foot{
    background: #FFF;
    border-top: 1px solid map-get($colors, bordergrey);
    color:#9F9F9F;
    font-size: 12px;
    height: 60px;
263

264 265 266 267 268 269
    p{
        padding-top: 21px;
    }
}

.login-modal{
270

271 272 273 274 275 276
    &-container{
        background: #FFF;
        border: 1px solid map-get($colors, bordergrey);
        max-width: 400px;
        margin: 100px auto 15px auto;
    }
277

278 279 280 281 282
    &-head{
        background: map-get($colors, darkgrey);
        height: 75px;
        padding: 0 20px;
    }
283

284 285 286
    &-content{
        padding: 40px 20px 30px 20px;
    }
287

288 289 290 291 292
    &-foot{
        background: map-get($colors, lightgrey);
        border-top: 1px solid map-get($colors, bordergrey);
        height: 60px;
        padding: 20px 20px 0 20px;
293

294 295 296
        a{
            color: #7D7D7D;
            text-decoration: none;
297

298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
            &:hover{
                color: darken(#7D7D7D, 10%);
                text-decoration: underline;
            }
        }
    }
}

.list-inline .btn-group-container{
    @media (min-width:$screen-sm-min){
        float:right;
    }
}

.btn.btn-fixed{
    max-width: 174px;
    width: 100%;
}

.table-sort{
318

319 320 321
    > tbody > tr > th{
        border-top: 0;
        height: 50px;
322

323 324 325 326 327
        &:hover{
            background: #F2F2F2;
            cursor: pointer;
        }
    }
328

329 330 331
    > tbody > tr > td,  > tbody > tr > th{
        vertical-align: middle;
    }
332

333 334 335
    &-icon{
        font-size: 10px;
    }
336

337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
    .btn-group-table{
        padding-right: 15px;
    }
}

.progress-bar-placeholder{
    font-size: 12px;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1;
}

/* BOOTSTRAP EDIT */
.list-group-item{
	border-left: none;
	border-right: none;
354

355 356 357 358 359 360 361 362 363 364
	&.collapsed .caret{
		border-bottom: 4px solid green;
		border-top: 0;
	}
}

#navigation.collapse.in{
    display: block !important;
}

365
.list-group-submenu .list-group-item:last-child,
366 367 368 369 370 371
.collapse .list-group-item:last-child {
	border-bottom: none;
}

.nav-tabs > li.active > a{
	background: #FFF !important;
372
}
373 374 375 376 377 378 379 380

.nav-tabs > li > a{
	border-radius: 0px;
	margin-right: 0px;
}

.nav-tabs.nav-justified{
	border-right:1px solid map-get($colors, bordergrey);
381

382 383 384 385 386 387 388 389
	> li > a{
	    border-bottom:1px solid map-get($colors, bordergrey);
		border-top:1px solid map-get($colors, bordergrey);
		border-left:1px solid map-get($colors, bordergrey);
		border-radius: 0px;
		background: map-get($colors, lightgrey);
		color: map-get($colors, darkgrey);
		font-family: 'SourceSansProSemibold';
390

391
		@media (min-width:$screen-sm-min){
392 393
		border-bottom: 1px solid transparent;
	}
394
	}
395

396
	> li.active a{
397 398
	@media (max-width:$screen-xs-max){
		border-right: 0 !important;
399
	}
400 401
	}

402
	> li.active + li > a{
403 404
	@media (min-width:$screen-sm-min){
		border-left: 1px solid transparent;
405
	}
406 407
	}

408 409
	> li:last-child > a{
		border-right:1px solid transparent !important;
410

411
		@media (max-width:$screen-xs-max){
412 413
		margin-bottom: 0;
	}
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
	}
}

.btn .glyphicon {
    vertical-align: -1px;
}

.btn-default .glyphicon {
    color: #757575;
}

table{
    width: 100%;
}

Ad Schellevis's avatar
Ad Schellevis committed
429
.table th, strong, b{
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
    font-family: 'SourceSansProSemibold';
    font-weight: normal;
}

.table > tbody > tr > td:last-child{
    padding-right: 15px;
}

/* helpers */
.__nowrap{
    white-space: nowrap;
}

.__nomb{
    margin-bottom: 0;
}

.__mb{
    margin-bottom: 15px;
}

.__mt{
    margin-top: 15px;
}

Ad Schellevis's avatar
Ad Schellevis committed
455 456 457 458 459 460 461 462
.__ml{
    margin-left: 15px;
}

.__mr{
    margin-right: 15px;
}

463 464 465 466 467 468 469 470 471 472 473
.__iconspacer{
    padding-right: 10px;
}

#mainmenu .glyphicon{
    vertical-align: -2px;
}

.list-group-item{
    overflow: hidden;
    text-overflow: ellipsis;
474

475 476 477
    + div.collapse{
        margin-bottom: -1px;
    }
478

479 480 481
    + div > a{
        padding-left: 44px;
    }
482

483 484 485 486
    &:before{
        background: #EA7105;
        content: "";
        height: 42px;
Ad Schellevis's avatar
Ad Schellevis committed
487
        min-height: 100%;
488 489 490 491
        left: 0;
        position: absolute;
        top: 0px;
        width: 0;
492

493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
        -webkit-transition: width .2s;
        -moz-transition: width .2s;
        -o-transition: width .2s;
        transition: width .2s;

    }

}

.list-group-submenu a{
    padding-left: 56px;
}

.active-menu-title, .active-menu a{
    text-decoration: none;
    position: relative;
    background-color: #F5F5F5;
510

511 512 513
    &:before{
        width: 3px;
    }
514

Ad Schellevis's avatar
Ad Schellevis committed
515 516 517
    &.active{
        background-color: #E8E8E8;
    }
518 519 520 521 522 523
}

.active-menu a:before{
    background: #ED9A50;
}

Ad Schellevis's avatar
Ad Schellevis committed
524 525 526 527 528 529 530 531 532 533 534
.alert.alert-danger{
    color: #FFF !important;
}

.nav-tabs-justified>li>a, .nav-tabs.nav-justified>li>a{
    border-radius: 0 !important;
}

.navbar-brand{
    padding: 10px 20px;
}
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554

::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-button {
	width: 8px;
	height:5px;
}
::-webkit-scrollbar-track {
	background: #f7f7f7;
	box-shadow: 0px 0px 0px;
	border-radius:0;
}
::-webkit-scrollbar-thumb {
	background: #e5e5e5;
	border: thin solid #e5e5e5;
	border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
	background:#e5e5e5;
555 556 557 558 559
}

.widgetdiv {
    padding-top:0px !important;
    padding-bottom:20px;
560
}