grafana/public/sass/utils/_utils.scss

117 lines
1.7 KiB
SCSS
Raw Normal View History

.clearfix {
@include clearfix();
}
2016-02-15 08:27:41 -06:00
.highlight-word {
color: $brand-primary;
2016-02-15 08:27:41 -06:00
}
.emphasis-word {
font-weight: $font-weight-semi-bold;
color: $text-color-emphasis;
}
2016-02-15 08:27:41 -06:00
// Close icons
// --------------------------------------------------
.close {
@include opacity(20);
2016-02-15 08:27:41 -06:00
float: right;
font-size: 20px;
font-weight: bold;
2016-02-16 03:42:06 -06:00
line-height: $line-height-base;
2016-02-15 08:27:41 -06:00
color: $black;
2017-12-19 09:22:41 -06:00
text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
2016-02-15 08:27:41 -06:00
&:hover,
&:focus {
color: $black;
text-decoration: none;
cursor: pointer;
@include opacity(40);
}
}
// Additional properties for button version
// iOS requires the button element instead of an anchor tag.
// If you want the anchor version, it requires `href="#"`.
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
//
// Utility classes
// --------------------------------------------------
// Quick floats
.pull-right {
float: right !important;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.pull-left {
float: left !important;
2016-02-15 08:27:41 -06:00
}
// Toggling content
.hide {
display: none;
2016-02-15 08:27:41 -06:00
}
2016-02-15 08:27:41 -06:00
.show {
display: block;
}
// Visibility
.invisible {
visibility: hidden !important;
2016-02-15 08:27:41 -06:00
}
// For Affix plugin
.affix {
position: fixed;
}
.d-inline-block {
display: inline-block;
}
.absolute {
position: absolute;
}
.flex-grow-1 {
2018-12-13 00:44:58 -06:00
flex-grow: 1;
}
.flex-shrink-1 {
flex-shrink: 1;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.flex-flow-column-nowrap {
display: flex;
flex-flow: column nowrap;
}
.center-vh {
2019-02-26 12:37:17 -06:00
height: 100%;
display: flex;
2019-02-26 12:37:17 -06:00
flex-direction: column;
align-items: center;
justify-content: center;
justify-items: center;
}
.align-items-center {
display: flex;
flex-direction: row nowrap;
align-items: center;
}