AdminLTE/build/scss/_miscellaneous.scss

620 lines
8.3 KiB
SCSS
Raw Normal View History

2015-10-31 22:00:16 +01:00
/*
* General: Miscellaneous
* ----------------------
*/
// 10px padding and margins
.pad {
padding: 10px;
}
.margin {
margin: 10px;
}
.margin-bottom {
margin-bottom: 20px;
}
.margin-bottom-none {
margin-bottom: 0;
}
.margin-r-5 {
margin-right: 5px;
}
// Display inline
.inline {
display: inline;
}
// Description Blocks
.description-block {
display: block;
margin: 10px 0;
text-align: center;
&.margin-bottom {
margin-bottom: 25px;
}
> .description-header {
margin: 0;
padding: 0;
font-weight: 600;
font-size: 16px;
}
> .description-text {
text-transform: uppercase;
}
}
// Background colors
.bg-red,
.bg-yellow,
.bg-aqua,
.bg-blue,
.bg-light-blue,
.bg-green,
.bg-navy,
.bg-teal,
.bg-olive,
.bg-lime,
.bg-orange,
.bg-fuchsia,
.bg-purple,
.bg-maroon,
.bg-black,
.bg-red-active,
.bg-yellow-active,
.bg-aqua-active,
.bg-blue-active,
.bg-light-blue-active,
.bg-green-active,
.bg-navy-active,
.bg-teal-active,
.bg-olive-active,
.bg-lime-active,
.bg-orange-active,
.bg-fuchsia-active,
.bg-purple-active,
.bg-maroon-active,
.bg-black-active {
2016-01-16 17:27:23 +01:00
color: #fff;
2015-10-31 22:00:16 +01:00
}
.bg-gray {
color: #000;
2016-01-16 17:27:23 +01:00
background-color: $gray;
2015-10-31 22:00:16 +01:00
}
.bg-gray-light {
background-color: #f7f7f7;
}
.bg-black {
2016-01-16 17:27:23 +01:00
background-color: $black;
2015-10-31 22:00:16 +01:00
}
.bg-red {
2016-01-16 17:27:23 +01:00
background-color: $brand-danger;
2015-10-31 22:00:16 +01:00
}
.bg-yellow {
2016-01-16 17:27:23 +01:00
background-color: $brand-warning;
2015-10-31 22:00:16 +01:00
}
.bg-aqua {
2016-01-16 17:27:23 +01:00
background-color: $brand-info;
2015-10-31 22:00:16 +01:00
}
.bg-blue {
2016-01-16 17:27:23 +01:00
background-color: $blue;
2015-10-31 22:00:16 +01:00
}
.bg-light-blue {
2016-01-16 17:27:23 +01:00
background-color: $brand-primary;
2015-10-31 22:00:16 +01:00
}
.bg-green {
2016-01-16 17:27:23 +01:00
background-color: $brand-success;
2015-10-31 22:00:16 +01:00
}
.bg-navy {
2016-01-16 17:27:23 +01:00
background-color: $navy;
2015-10-31 22:00:16 +01:00
}
.bg-teal {
2016-01-16 17:27:23 +01:00
background-color: $teal;
2015-10-31 22:00:16 +01:00
}
.bg-olive {
2016-01-16 17:27:23 +01:00
background-color: $olive;
2015-10-31 22:00:16 +01:00
}
.bg-lime {
2016-01-16 17:27:23 +01:00
background-color: $lime;
2015-10-31 22:00:16 +01:00
}
.bg-orange {
2016-01-16 17:27:23 +01:00
background-color: $orange;
2015-10-31 22:00:16 +01:00
}
.bg-fuchsia {
2016-01-16 17:27:23 +01:00
background-color: $fuchsia;
2015-10-31 22:00:16 +01:00
}
.bg-purple {
2016-01-16 17:27:23 +01:00
background-color: $purple;
2015-10-31 22:00:16 +01:00
}
.bg-maroon {
2016-01-16 17:27:23 +01:00
background-color: $maroon;
2015-10-31 22:00:16 +01:00
}
//Set of Active Background Colors
.bg-gray-active {
color: #000;
2016-01-16 17:27:23 +01:00
background-color: darken($gray, 10%);
2015-10-31 22:00:16 +01:00
}
.bg-black-active {
2016-01-16 17:27:23 +01:00
background-color: darken($black, 10%);
2015-10-31 22:00:16 +01:00
}
.bg-red-active {
2016-01-16 17:27:23 +01:00
background-color: darken($brand-danger, 6%);
2015-10-31 22:00:16 +01:00
}
.bg-yellow-active {
2016-01-16 17:27:23 +01:00
background-color: darken($brand-warning, 6%);
2015-10-31 22:00:16 +01:00
}
.bg-aqua-active {
2016-01-16 17:27:23 +01:00
background-color: darken($brand-info, 6%);
2015-10-31 22:00:16 +01:00
}
.bg-blue-active {
2016-01-16 17:27:23 +01:00
background-color: darken($blue, 10%);
2015-10-31 22:00:16 +01:00
}
.bg-light-blue-active {
2016-01-16 17:27:23 +01:00
background-color: darken($brand-primary, 6%);
2015-10-31 22:00:16 +01:00
}
.bg-green-active {
2016-01-16 17:27:23 +01:00
background-color: darken($brand-success, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-navy-active {
2016-01-16 17:27:23 +01:00
background-color: darken($navy, 2%);
2015-10-31 22:00:16 +01:00
}
.bg-teal-active {
2016-01-16 17:27:23 +01:00
background-color: darken($teal, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-olive-active {
2016-01-16 17:27:23 +01:00
background-color: darken($olive, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-lime-active {
2016-01-16 17:27:23 +01:00
background-color: darken($lime, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-orange-active {
2016-01-16 17:27:23 +01:00
background-color: darken($orange, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-fuchsia-active {
2016-01-16 17:27:23 +01:00
background-color: darken($fuchsia, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-purple-active {
2016-01-16 17:27:23 +01:00
background-color: darken($purple, 5%);
2015-10-31 22:00:16 +01:00
}
.bg-maroon-active {
2016-01-16 17:27:23 +01:00
background-color: darken($maroon, 3%);
}
.bg-white {
background-color: #fff;
2015-10-31 22:00:16 +01:00
}
//Disabled!
[class^="bg-"].disabled {
opacity: .65;
}
// Text colors
.text-red {
2016-01-16 17:27:23 +01:00
color: $brand-danger;
2015-10-31 22:00:16 +01:00
}
.text-yellow {
2016-01-16 17:27:23 +01:00
color: $brand-warning;
2015-10-31 22:00:16 +01:00
}
.text-aqua {
2016-01-16 17:27:23 +01:00
color: $brand-info;
2015-10-31 22:00:16 +01:00
}
.text-blue {
2016-01-16 17:27:23 +01:00
color: $blue;
2015-10-31 22:00:16 +01:00
}
.text-black {
2016-01-16 17:27:23 +01:00
color: $black;
2015-10-31 22:00:16 +01:00
}
.text-light-blue {
2016-01-16 17:27:23 +01:00
color: $brand-primary;
2015-10-31 22:00:16 +01:00
}
.text-green {
2016-01-16 17:27:23 +01:00
color: $brand-success;
2015-10-31 22:00:16 +01:00
}
.text-gray {
2016-01-16 17:27:23 +01:00
color: $gray;
2015-10-31 22:00:16 +01:00
}
.text-navy {
2016-01-16 17:27:23 +01:00
color: $navy;
2015-10-31 22:00:16 +01:00
}
.text-teal {
2016-01-16 17:27:23 +01:00
color: $teal;
2015-10-31 22:00:16 +01:00
}
.text-olive {
2016-01-16 17:27:23 +01:00
color: $olive;
2015-10-31 22:00:16 +01:00
}
.text-lime {
2016-01-16 17:27:23 +01:00
color: $lime;
2015-10-31 22:00:16 +01:00
}
.text-orange {
2016-01-16 17:27:23 +01:00
color: $orange;
2015-10-31 22:00:16 +01:00
}
.text-fuchsia {
2016-01-16 17:27:23 +01:00
color: $fuchsia;
2015-10-31 22:00:16 +01:00
}
.text-purple {
2016-01-16 17:27:23 +01:00
color: $purple;
2015-10-31 22:00:16 +01:00
}
.text-maroon {
2016-01-16 17:27:23 +01:00
color: $maroon;
2015-10-31 22:00:16 +01:00
}
.link-muted {
color: darken($gray, 30%);
&:hover,
&:focus {
color: darken($gray, 40%);
}
}
.link-black {
color: #666;
&:hover,
&:focus {
color: #999;
}
}
// Hide elements by display none only
.hide {
display: none !important;
}
// Remove borders
.no-border {
border: 0 !important;
}
// Remove padding
.no-padding {
padding: 0 !important;
}
// Remove margins
.no-margin {
margin: 0 !important;
}
// Remove box shadow
.no-shadow {
box-shadow: none !important;
}
// Unstyled List
.list-unstyled {
list-style: none;
margin: 0;
padding: 0;
}
.list-group-unbordered {
> .list-group-item {
border-left: 0;
border-right: 0;
border-radius: 0;
padding-left: 0;
padding-right: 0;
}
}
// Remove border radius
.flat {
@include border-radius(0 !important);
}
.text-bold {
&, &.table td, &.table th {
font-weight: 700;
}
}
.text-sm {
font-size: 12px;
}
// _fix for sparkline tooltip
.jqstooltip {
padding: 5px !important;
width: auto !important;
height: auto !important;
}
// Gradient Background colors
.bg-teal-gradient {
@include gradient($teal, $teal, lighten($teal, 16%));
color: #fff;
}
.bg-light-blue-gradient {
2016-01-16 17:27:23 +01:00
@include gradient($brand-primary, $brand-primary, lighten($brand-primary, 12%));
2015-10-31 22:00:16 +01:00
color: #fff;
}
.bg-blue-gradient {
@include gradient($blue, $blue, lighten($blue, 7%));
color: #fff;
}
.bg-aqua-gradient {
2016-01-16 17:27:23 +01:00
@include gradient($brand-info, $brand-info, lighten($brand-info, 7%));
2015-10-31 22:00:16 +01:00
color: #fff;
}
.bg-yellow-gradient {
2016-01-16 17:27:23 +01:00
@include gradient($brand-warning, $brand-warning, lighten($brand-warning, 16%));
2015-10-31 22:00:16 +01:00
color: #fff;
}
.bg-purple-gradient {
@include gradient($purple, $purple, lighten($purple, 16%));
color: #fff;
}
.bg-green-gradient {
2016-01-16 17:27:23 +01:00
@include gradient($brand-success, $brand-success, lighten($brand-success, 7%));
2015-10-31 22:00:16 +01:00
color: #fff;
}
.bg-red-gradient {
2016-01-16 17:27:23 +01:00
@include gradient($brand-danger, $brand-danger, lighten($brand-danger, 10%));
2015-10-31 22:00:16 +01:00
color: #fff;
}
.bg-black-gradient {
@include gradient($black, $black, lighten($black, 10%));
color: #fff;
}
.bg-maroon-gradient {
@include gradient($maroon, $maroon, lighten($maroon, 10%));
color: #fff;
}
//Description Block Extension
.description-block {
.description-icon {
font-size: 16px;
}
}
//Remove top padding
.no-pad-top {
padding-top: 0;
}
//Make position static
.position-static {
position: static !important;
}
//List utility classes
.list-header {
font-size: 15px;
padding: 10px 4px;
font-weight: bold;
color: #666;
}
.list-seperator {
height: 1px;
background: $box-border-color;
margin: 15px 0 9px 0;
}
.list-link {
> a {
padding: 4px;
color: #777;
&:hover {
color: #222;
}
}
}
//Light font weight
.font-light {
font-weight: 300;
}
//User block
.user-block {
@include clearfix();
img {
width: 40px;
height: 40px;
float: left;
}
.username,
.description,
.comment {
display: block;
margin-left: 50px;
}
.username {
font-size: 16px;
font-weight: 600;
}
.description {
color: #999;
font-size: 13px;
}
&.user-block-sm {
img {
@extend .img-sm;
}
.username,
.description,
.comment {
margin-left: 40px;
}
.username {
font-size: 14px;
}
}
}
//Image sizes
.img-sm,
.img-md,
.img-lg {
float: left;
}
.img-sm {
width: 30px !important;
height: 30px !important;
+ .img-push {
margin-left: 40px;
}
}
.img-md {
width: 60px;
height: 60px;
+ .img-push {
margin-left: 70px;
}
}
.img-lg {
width: 100px;
height: 100px;
+ .img-push {
margin-left: 110px;
}
}
// Image bordered
.img-bordered {
border: 3px solid $gray;
padding: 3px;
}
.img-bordered-sm {
border: 2px solid $gray;
padding: 2px;
}
2016-10-15 19:20:09 +02:00
// Rounded and Circle Images
.img-rounded {
@include border-radius($border-radius)
}
.img-circle {
@include border-radius(50%);
}
2015-10-31 22:00:16 +01:00
//General attachemnt block
.attachment-block {
border: 1px solid $box-border-color;
padding: 5px;
margin-bottom: 10px;
background: #f7f7f7;
.attachment-img {
max-width: 100px;
max-height: 100px;
height: auto;
float: left;
}
.attachment-pushed {
margin-left: 110px;
}
.attachment-heading {
margin: 0;
}
.attachment-text {
color: #555;
}
}
.connectedSortable {
min-height: 100px;
}
.ui-helper-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.sort-highlight {
background: #f4f4f4;
border: 1px dashed #ddd;
margin-bottom: 10px;
}
.full-opacity-hover {
opacity: .65;
&:hover {
opacity: 1;
}
}
// Charts
.chart {
position: relative;
overflow: hidden;
width: 100%;
svg,
canvas {
width: 100% !important;
}
}