You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.3 KiB
65 lines
1.3 KiB
7 months ago
|
// config
|
||
|
$debug: false;
|
||
|
|
||
|
// declare breakpoints
|
||
|
$usn-x-small: 0px;
|
||
|
$usn-small: 544px;
|
||
|
$usn-medium: 768px;
|
||
|
$usn-large: 992px;
|
||
|
$usn-x-large: 1200px;
|
||
|
|
||
|
// create sass list to pass media query data
|
||
|
// if a breakpoint name changes, remember to
|
||
|
// update it in the list below as well
|
||
|
$mq-sync: xs $usn-x-small, sm $usn-small, md $usn-medium, lg $usn-large, xl $usn-x-large;
|
||
|
|
||
|
// build each media query for js ingestion
|
||
|
@each $mq in $mq-sync {
|
||
|
@media screen and (min-width: nth($mq, 2)) {
|
||
|
head {
|
||
|
font-family: '#{nth($mq, 1)} #{nth($mq, 2)}';
|
||
|
}
|
||
|
body:after {
|
||
|
content: '#{nth($mq, 1)} - min-width: #{nth($mq, 2)}';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
head {
|
||
|
// set clear on head to show Unison is set up correctly
|
||
|
clear: both;
|
||
|
// store hash of all breakpoints
|
||
|
title {
|
||
|
font-family: '#{$mq-sync}';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// debug styles to see breakpoint info
|
||
|
body:after {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
@if $debug == true {
|
||
|
body:after {
|
||
|
display: block;
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
background-color: #000;
|
||
|
background-color: rgba($black, 0.8);
|
||
|
text-align: center;
|
||
|
color: #fff;
|
||
|
padding: 10px;
|
||
|
z-index: 1000;
|
||
|
font-size: 12px;
|
||
|
font-family: sans-serif;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// hide elements for conditional loading
|
||
|
// only used for responsive comments plugin
|
||
|
*[data-usn-if] {
|
||
|
display: none;
|
||
|
}
|