diff options
author | Allan Wang <me@allanwang.ca> | 2021-01-13 00:29:41 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-01-13 00:29:41 -0800 |
commit | a99ce272195c132c23379f28278339c88b356da1 (patch) | |
tree | bbfe5ca8b73a92e4e6b9cac2e1e69758dc426f7a /app/src/web/scss/core | |
parent | 31dc27d568d40d37cccb09e31c8a8c8b9cf8f897 (diff) | |
download | frost-a99ce272195c132c23379f28278339c88b356da1.tar.gz frost-a99ce272195c132c23379f28278339c88b356da1.tar.bz2 frost-a99ce272195c132c23379f28278339c88b356da1.zip |
Update theme
Diffstat (limited to 'app/src/web/scss/core')
-rw-r--r-- | app/src/web/scss/core/_base.scss | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/src/web/scss/core/_base.scss b/app/src/web/scss/core/_base.scss index 472319fe..6fa9c3fd 100644 --- a/app/src/web/scss/core/_base.scss +++ b/app/src/web/scss/core/_base.scss @@ -16,6 +16,13 @@ } } +@mixin fill-available { + width: 100%; + max-width: -webkit-fill-available; + max-width: -moz-available; + max-width: fill-available; +} + @mixin keyframes($name) { @-webkit-keyframes #{$name} { @content; @@ -38,7 +45,12 @@ @function str-replace($string, $search, $replace: "") { $index: str-index($string, $search); - @return if($index, str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace), $string); + @return if( + $index, + str-slice($string, 1, $index - 1) + $replace + + str-replace(str-slice($string, $index + str-length($search)), $search, $replace), + $string + ); } // https://css-tricks.com/probably-dont-base64-svg/ |