@ieeesa-npm/shared-styles 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/mixins.scss +33 -0
package/package.json
CHANGED
package/styles/mixins.scss
CHANGED
|
@@ -110,3 +110,36 @@
|
|
|
110
110
|
border-right: $right;
|
|
111
111
|
border-left: $left;
|
|
112
112
|
}
|
|
113
|
+
|
|
114
|
+
@mixin create-form-scroll-shell($offset-variable, $fallback-offset: 320px) {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
max-height: calc(100vh - var(#{$offset-variable}, #{$fallback-offset}));
|
|
118
|
+
min-height: max(0px, min(240px, calc(100vh - var(#{$offset-variable}, #{$fallback-offset}))));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin create-form-scroll-surface() {
|
|
122
|
+
flex: 1 1 auto;
|
|
123
|
+
min-height: 0;
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
overflow-x: hidden;
|
|
126
|
+
padding-right: 8px;
|
|
127
|
+
background:
|
|
128
|
+
linear-gradient($ieeesa-white 30%, rgba($ieeesa-white, 0)) top / 100% 28px
|
|
129
|
+
no-repeat local,
|
|
130
|
+
linear-gradient(rgba($ieeesa-white, 0), $ieeesa-white 70%) bottom / 100%
|
|
131
|
+
28px no-repeat local,
|
|
132
|
+
radial-gradient(
|
|
133
|
+
farthest-side at 50% 0,
|
|
134
|
+
rgba(0, 0, 0, 0.18),
|
|
135
|
+
rgba(0, 0, 0, 0)
|
|
136
|
+
)
|
|
137
|
+
top / 100% 12px no-repeat scroll,
|
|
138
|
+
radial-gradient(
|
|
139
|
+
farthest-side at 50% 100%,
|
|
140
|
+
rgba(0, 0, 0, 0.18),
|
|
141
|
+
rgba(0, 0, 0, 0)
|
|
142
|
+
)
|
|
143
|
+
bottom / 100% 12px no-repeat scroll;
|
|
144
|
+
background-color: $ieeesa-white;
|
|
145
|
+
}
|