AdminLTE/build/scss/_miscellaneous.scss

407 lines
5.6 KiB
SCSS
Raw Normal View History

2015-10-31 22:00:16 +01:00
/*
* General: Miscellaneous
* ----------------------
*/
2018-03-17 18:07:55 +01:00
a.text-muted:hover {
color: theme-color(primary) !important;
2015-10-31 22:00:16 +01:00
}
2018-03-17 18:07:55 +01:00
.border-transparent {
border-color: transparent !important;
2015-10-31 22:00:16 +01:00
}
// 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 (theme colors)
2018-03-17 18:07:55 +01:00
@each $name, $color in $theme-colors {
.bg-#{$name} {
&,
a {
2018-04-23 02:08:03 +02:00
color: color-yiq($color) !important;
2018-03-17 18:07:55 +01:00
}
}
2015-10-31 22:00:16 +01:00
}
// Background colors (colors)
@each $name, $color in $colors {
.bg-#{$name} {
background-color: #{$color};
&,
a {
color: color-yiq($color) !important;
}
}
}
2015-10-31 22:00:16 +01:00
.bg-gray {
color: #000;
2018-02-04 00:45:19 +01:00
background-color: $gray-500;
2015-10-31 22:00:16 +01:00
}
.bg-gray-light {
2018-03-17 18:07:55 +01:00
background-color: lighten($gray-200, 3%);
2018-04-23 02:08:03 +02:00
color: color-yiq(lighten($gray-200, 3%)) !important;
2015-10-31 22:00:16 +01:00
}
.bg-black {
2016-01-16 17:27:23 +01:00
background-color: $black;
2018-04-23 02:08:03 +02:00
color: color-yiq($black) !important;
2016-01-16 17:27:23 +01:00
}
.bg-white {
2018-03-17 18:07:55 +01:00
background-color: $white;
2018-04-23 02:08:03 +02:00
color: color-yiq($white) !important;
2015-10-31 22:00:16 +01:00
}
// Gradient Background colors
@each $name, $color in $theme-colors {
.bg-#{$name}-gradient {
@include gradient($color, $color, lighten($color, 10%));
color: color-yiq($color);
}
}
2016-10-26 15:30:32 +02:00
// Disabled!
2015-10-31 22:00:16 +01:00
[class^="bg-"].disabled {
opacity: .65;
}
.link-muted {
2018-02-04 00:45:19 +01:00
color: darken($gray-500, 30%);
2015-10-31 22:00:16 +01:00
&:hover,
&:focus {
2018-02-04 00:45:19 +01:00
color: darken($gray-500, 40%);
2015-10-31 22:00:16 +01:00
}
}
.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 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);
}
// _fix for sparkline tooltip
.jqstooltip {
padding: 5px !important;
width: auto !important;
height: auto !important;
}
2016-10-26 15:30:32 +02:00
// Description Block Extension
2015-10-31 22:00:16 +01:00
.description-block {
.description-icon {
font-size: 16px;
}
}
2016-10-26 15:30:32 +02:00
// List utility classes
2015-10-31 22:00:16 +01:00
.list-header {
font-size: 15px;
padding: 10px 4px;
font-weight: bold;
color: #666;
}
.list-seperator {
height: 1px;
2018-03-17 18:07:55 +01:00
background: $card-border-color;
2015-10-31 22:00:16 +01:00
margin: 15px 0 9px 0;
}
.list-link {
> a {
padding: 4px;
color: #777;
&:hover {
color: #222;
}
}
}
2016-10-26 15:30:32 +02:00
// User block
2015-10-31 22:00:16 +01:00
.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;
}
}
}
2016-10-26 15:30:32 +02:00
// Image sizes
2015-10-31 22:00:16 +01:00
.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 {
2018-02-04 00:45:19 +01:00
border: 3px solid $gray-500;
2015-10-31 22:00:16 +01:00
padding: 3px;
}
.img-bordered-sm {
2018-02-04 00:45:19 +01:00
border: 2px solid $gray-500;
2015-10-31 22:00:16 +01:00
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%);
}
// Image sizes
.img-size-64,
.img-size-50,
.img-size-32 {
height: auto;
}
.img-size-64 {
width: 64px;
}
.img-size-50 {
width: 50px;
}
.img-size-32 {
width: 32px;
}
// Block sizes
.size-32,
.size-40,
.size-50 {
display: block;
text-align: center;
}
.size-32 {
width: 32px;
height: 32px;
line-height: 32px;
}
.size-40 {
width: 40px;
height: 40px;
line-height: 40px;
}
.size-50 {
width: 50px;
height: 50px;
line-height: 50px;
}
2016-10-26 15:30:32 +02:00
// General attachemnt block
2015-10-31 22:00:16 +01:00
.attachment-block {
2018-03-17 18:07:55 +01:00
border: 1px solid $card-border-color;
2015-10-31 22:00:16 +01:00
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;
}
// Charts
.chart {
position: relative;
overflow: hidden;
}
2018-03-17 18:07:55 +01:00
.flex-1 {
flex: 1;
}
// Modals
.modal-dialog {
.overlay {
display: block;
position: absolute;
z-index: ($zindex-modal + 2);
background: rgba(255, 255, 255, 0.7);
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
.modal-content {
&.bg-warning {
.modal-header,
.modal-footer {
border-color: $gray-800;
}
}
}
.modal-content {
&.bg-primary,
&.bg-secondary,
&.bg-info,
&.bg-danger,
&.bg-success, {
.close{
color: $white;
}
}
}
// Background colors (colors)
@each $name, $color in $colors {
##{$name}.slider {
.slider-selection {
background: $color;
}
}
}