67 lines
1.2 KiB
SCSS
67 lines
1.2 KiB
SCSS
// mixins - font sizing
|
|
@mixin font-size($sizeValue: 16){
|
|
font-size: $sizeValue + px;
|
|
font-size: ($sizeValue/10) + rem;
|
|
}
|
|
|
|
// mixins - line height
|
|
@mixin line-height($fontSize: auto){
|
|
line-height: ($fontSize*1.48) + px;
|
|
line-height: (($fontSize/10)*1.48) + rem;
|
|
}
|
|
|
|
// image-replacement hidden text
|
|
@mixin text-hide() {
|
|
text-indent: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@mixin vertically-and-horizontally-centered ( $height, $width ) {
|
|
left: 50%;
|
|
margin-left: -$width / 2;
|
|
//margin-top: -$height / 2;
|
|
min-height: $height;
|
|
min-width: $width;
|
|
position: absolute;
|
|
top: 150px;
|
|
}
|
|
|
|
// sunsetted, but still used mixins
|
|
@mixin hide-text(){
|
|
text-indent: -9999px;
|
|
overflow: hidden;
|
|
display: block;
|
|
}
|
|
|
|
@function em($pxval, $base: 16) {
|
|
@return #{$pxval / $base}em;
|
|
}
|
|
|
|
// Line-height
|
|
@function lh($amount: 1) {
|
|
@return $body-line-height * $amount;
|
|
}
|
|
|
|
|
|
//-----------------
|
|
// Theme Mixin Styles
|
|
//-----------------
|
|
@mixin login_register_h1_style {}
|
|
|
|
@mixin footer_references_style {}
|
|
|
|
// ====================
|
|
|
|
// extends -hidden elems - screenreaders
|
|
.text-sr {
|
|
border: 0;
|
|
clip: rect(1px 1px 1px 1px);
|
|
height: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
width: 1px;
|
|
}
|