aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FontIconBox
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
committerbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
commit515707c4561eb526426b8fa07dd50bd499fb91cc (patch)
treef4cbc69387da19add6dbc88acecbcdbdca575039 /src/client/views/nodes/FontIconBox
parent30b07ed24fbe5e6d49741bc63031807408cd4a0c (diff)
added a hideUI option to hide buttons. fixed a mess of runtime warnings mostly related to how scss files can be included in each other
Diffstat (limited to 'src/client/views/nodes/FontIconBox')
-rw-r--r--src/client/views/nodes/FontIconBox/FontIconBox.scss36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.scss b/src/client/views/nodes/FontIconBox/FontIconBox.scss
index 2405889cf..186d24e92 100644
--- a/src/client/views/nodes/FontIconBox/FontIconBox.scss
+++ b/src/client/views/nodes/FontIconBox/FontIconBox.scss
@@ -1,4 +1,4 @@
-@import '../../global/globalCssVariables.module.scss';
+@use '../../global/globalCssVariables.module.scss' as global;
// bcz: something's messed up with the IconButton css. this mostly fixes the fit-all button, the color buttons, the undo +/- expander and the dropdown doc type list (eg 'text')
.iconButton-container {
@@ -23,7 +23,7 @@
justify-content: center;
align-items: center;
font-size: 80%;
- border-radius: $standard-border-radius;
+ border-radius: global.$standard-border-radius;
transition: 0.15s;
.menuButton-wrap {
@@ -34,7 +34,7 @@
}
.fontIconBox-label {
- color: $white;
+ color: global.$white;
bottom: -1;
position: absolute;
text-align: center;
@@ -124,17 +124,17 @@
width: 21px;
left: 2px;
bottom: 2px;
- background-color: $white;
+ background-color: global.$white;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
- background-color: $medium-blue;
+ background-color: global.$medium-blue;
}
input:focus + .slider {
- box-shadow: 0 0 1px $medium-blue;
+ box-shadow: 0 0 1px global.$medium-blue;
}
input:checked + .slider:before {
@@ -145,11 +145,11 @@
/* Rounded sliders */
.slider.round {
- border-radius: $standard-border-radius;
+ border-radius: global.$standard-border-radius;
}
.slider.round:before {
- border-radius: $standard-border-radius;
+ border-radius: global.$standard-border-radius;
}
}
@@ -259,12 +259,12 @@
height: fit-content;
top: 100%;
z-index: 21;
- background-color: $white;
+ background-color: global.$white;
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
padding: 1px;
.list-item {
- color: $black;
+ color: global.$black;
width: 100%;
height: 25px;
font-weight: 400;
@@ -285,7 +285,7 @@
background: transparent;
&.slider {
- color: $white;
+ color: global.$white;
cursor: pointer;
flex-direction: column;
background: transparent;
@@ -302,7 +302,7 @@
z-index: 21;
background-color: #e3e3e3;
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
- border-radius: $standard-border-radius;
+ border-radius: global.$standard-border-radius;
.menu-slider {
height: 10px;
@@ -340,7 +340,7 @@
border: none;
text-align: right;
width: 100%;
- color: $white;
+ color: global.$white;
height: 100%;
text-align: center;
}
@@ -354,7 +354,7 @@
&.list {
width: 100%;
justify-content: space-around;
- border: $standard-border;
+ border: global.$standard-border;
.menuButton-dropdownList {
position: absolute;
@@ -365,12 +365,12 @@
overflow-y: scroll;
top: 100%;
z-index: 21;
- background-color: $white;
+ background-color: global.$white;
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
padding: 1px;
.list-item {
- color: $black;
+ color: global.$black;
width: 100%;
height: 25px;
font-weight: 400;
@@ -394,7 +394,7 @@
padding-left: 10px;
justify-content: flex-start;
color: black;
- background-color: $light-gray;
+ background-color: global.$light-gray;
padding: 5px;
padding-left: 10px;
width: 100%;
@@ -417,7 +417,7 @@
top: 100%;
background-color: #e3e3e3;
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.3);
- border-radius: $standard-border-radius;
+ border-radius: global.$standard-border-radius;
}
}