You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/css/core/utilities.css
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@
132
132
*/
133
133
/* HTML Example...
134
134
135
-
<div class="absolute right-0 mask-bg"> <-- needs to be position:absolute or position:relative
135
+
<div class="absolute right-0 mask-bg"> <-- needs to be position:absolute or position:relative. Use a modifier class to change the amount/direction, e.g. <div class="sticky left-0 mask-bg mask-bg--left mask-bg--left-small">
136
136
137
137
</div>
138
138
@@ -148,15 +148,24 @@
148
148
z-index:var(--z-index-below);
149
149
width:calc(150%+var(--cover));
150
150
height:calc(100%+var(--height-offset) *2);
151
-
left:calc(0.5rem-var(--cover));
152
151
top:calc(0%-var(--height-offset));
153
-
background:radial-gradient(circle at center,hsl(0deg0%100%)0%,transparent 80%);
152
+
background:radial-gradient(circle at center,white0%,transparent 80%);
154
153
border-radius:1.5rem001.5rem;
155
154
}
156
155
.dark&::before {
157
156
background:radial-gradient(circle at center,hsl(240deg6%10%) 0%, transparent 80%);
158
157
}
159
158
}
159
+
@utility mask-bg--left {
160
+
&::before {
161
+
left:calc(0.5rem-var(--cover));
162
+
}
163
+
}
164
+
@utility mask-bg--left-small {
165
+
&::before {
166
+
left:calc(-0.75rem-var(--cover));
167
+
}
168
+
}
160
169
161
170
/* UTILITIES / STATES / DECORATION / ARCHIECTURAL LINES
0 commit comments