mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-15 07:32:23 -06:00
Revert "sass: remove all uses of /
as SASS division" (#1076)
This commit is contained in:
parent
8f972e59fa
commit
fff8fef18a
@ -73,19 +73,19 @@
|
|||||||
|
|
||||||
width: $nav-list-item-height-sm;
|
width: $nav-list-item-height-sm;
|
||||||
height: $nav-list-item-height-sm;
|
height: $nav-list-item-height-sm;
|
||||||
padding-top: #{$nav-list-item-height-sm * 0.25};
|
padding-top: #{$nav-list-item-height-sm / 4};
|
||||||
padding-right: #{$nav-list-item-height-sm * 0.25};
|
padding-right: #{$nav-list-item-height-sm / 4};
|
||||||
padding-bottom: #{$nav-list-item-height-sm * 0.25};
|
padding-bottom: #{$nav-list-item-height-sm / 4};
|
||||||
padding-left: #{$nav-list-item-height-sm * 0.25};
|
padding-left: #{$nav-list-item-height-sm / 4};
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
width: $nav-list-item-height;
|
width: $nav-list-item-height;
|
||||||
height: $nav-list-item-height;
|
height: $nav-list-item-height;
|
||||||
padding-top: #{$nav-list-item-height * 0.25};
|
padding-top: #{$nav-list-item-height / 4};
|
||||||
padding-right: #{$nav-list-item-height * 0.25};
|
padding-right: #{$nav-list-item-height / 4};
|
||||||
padding-bottom: #{$nav-list-item-height * 0.25};
|
padding-bottom: #{$nav-list-item-height / 4};
|
||||||
padding-left: #{$nav-list-item-height * 0.25};
|
padding-left: #{$nav-list-item-height / 4};
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
height: $sp-10;
|
height: $sp-10;
|
||||||
padding: $sp-2;
|
padding: $sp-2;
|
||||||
transition: padding linear #{$transition-duration * 0.5};
|
transition: padding linear #{$transition-duration / 2};
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
@ -24,7 +24,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||||
transition: height linear #{$transition-duration * 0.5};
|
transition: height linear #{$transition-duration / 2};
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -60,7 +60,7 @@
|
|||||||
padding-left: #{$gutter-spacing + $sp-5};
|
padding-left: #{$gutter-spacing + $sp-5};
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: $body-background-color;
|
background-color: $body-background-color;
|
||||||
transition: padding-left linear #{$transition-duration * 0.5};
|
transition: padding-left linear #{$transition-duration / 2};
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
padding-left: $gutter-spacing;
|
padding-left: $gutter-spacing;
|
||||||
transition: padding-left linear #{$transition-duration * 0.5};
|
transition: padding-left linear #{$transition-duration / 2};
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
@ -240,7 +240,7 @@
|
|||||||
height: $sp-9;
|
height: $sp-9;
|
||||||
background-color: $search-background-color;
|
background-color: $search-background-color;
|
||||||
border: 1px solid rgba($link-color, 0.3);
|
border: 1px solid rgba($link-color, 0.3);
|
||||||
border-radius: #{$sp-9 * 0.5};
|
border-radius: #{$sp-9 / 2};
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
@use "sass:math";
|
|
||||||
|
|
||||||
@function rem($size, $unit: "") {
|
@function rem($size, $unit: "") {
|
||||||
$rem-size: math.div($size, $root-font-size);
|
$rem-size: $size / $root-font-size;
|
||||||
|
|
||||||
@if $unit == false {
|
@if $unit == false {
|
||||||
@return #{$rem-size};
|
@return #{$rem-size};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user