aboutsummaryrefslogtreecommitdiff
path: root/app/src/web/scss/core/_base.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/web/scss/core/_base.scss')
-rw-r--r--app/src/web/scss/core/_base.scss22
1 files changed, 21 insertions, 1 deletions
diff --git a/app/src/web/scss/core/_base.scss b/app/src/web/scss/core/_base.scss
index 472319fe..f6b5c903 100644
--- a/app/src/web/scss/core/_base.scss
+++ b/app/src/web/scss/core/_base.scss
@@ -1,4 +1,8 @@
@mixin placeholder {
+ ::placeholder {
+ @content;
+ }
+
::-webkit-input-placeholder {
@content;
}
@@ -14,6 +18,17 @@
:-ms-input-placeholder {
@content;
}
+
+ ::-ms-input-placeholder {
+ @content;
+ }
+}
+
+@mixin fill-available {
+ width: 100%;
+ max-width: -webkit-fill-available;
+ max-width: -moz-available;
+ max-width: fill-available;
}
@mixin keyframes($name) {
@@ -38,7 +53,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/