File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
components/backgroundlayers Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,16 @@ governing permissions and limitations under the License.
12
12
13
13
.spectrum-BackgroundLayers {
14
14
--spectum-backgroundlayers-background-color : var (--spectrum-gray-25 );
15
+ --spectrum-backgroundlayers-drop-shadow :
15
16
}
16
17
17
18
.spectrum-BackgroundLayers--elevated {
18
19
--spectum-backgroundlayers-background-color : var (--spectrum-gray-25 );
20
+ --spectrum-backgroundlayers-shadow-horizontal : 0 ;
21
+ --spectrum-backgroundlayers-shadow-vertical : 0 ;
22
+ --spectrum-backgroundlayers-shadow-blur : 5px ;
23
+ --spectrum-backgroundlayers-shadow-color : var (--spectrum-gray-200 );
24
+
19
25
}
20
26
.spectrum-BackgroundLayers--layer2 {
21
27
--spectum-backgroundlayers-background-color : var (--spectrum-gray-25 );
@@ -28,9 +34,10 @@ governing permissions and limitations under the License.
28
34
}
29
35
.spectrum-BackgroundLayers--base {
30
36
--spectum-backgroundlayers-background-color : var (--spectrum-gray-25 );
31
- border : 2px solid gray ;
37
+ border : 2px solid rgba ( 180 , 180 , 180 , 0.25 ) ;
32
38
}
33
39
34
40
.spectrum-BackgroundLayers {
35
41
background-color : var (--spectum-backgroundlayers-background-color );
42
+ filter : drop-shadow (var (--spectrum-backgroundlayers-shadow-horizontal ) var (--spectrum-backgroundlayers-shadow-vertical ) var (--spectrum-backgroundlayers-shadow-blur ) var (--spectrum-backgroundlayers-shadow-color ));
36
43
}
Original file line number Diff line number Diff line change @@ -5,14 +5,24 @@ examples:
5
5
- id : backgroundlayers-browsing
6
6
name : Browsing Contexts
7
7
markup : |
8
- <div class="spectrum-Examples">
9
- <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--pasteboard" style="inline-size: 100px; block-size: 100px; border-radius: 10px;">
10
- </div>
8
+ <div class="spectrum-Examples" style="justify-content: flex-start; position: relative; height: 150px;">
9
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--elevated" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; z-index: 4;">
10
+ </div>
11
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--layer2" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; left: 15px; top: 15px; z-index: 3;">
12
+ </div>
13
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--layer1" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; left: 30px; top: 30px; z-index: 2;">
14
+ </div>
15
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--pasteboard" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; left: 40px; top: 40px; z-index: 1;">
16
+ </div>
11
17
</div>
12
18
- id : backgroundlayers-editting
13
19
name : Editting Contexts
14
20
markup : |
15
- <div class="spectrum-Examples">
16
- <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--base" style="inline-size: 100px; block-size: 100px; border-radius: 10px;">
17
- </div>
21
+ <div class="spectrum-Examples" style="justify-content: flex-start; position: relative; height: 150px;">
22
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--elevated" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; z-index: 3;">
23
+ </div>
24
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--layer1" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; left: 15px; top: 15px; z-index: 2;">
25
+ </div>
26
+ <div class="spectrum-BackgroundLayers spectrum-BackgroundLayers--base" style="inline-size: 100px; block-size: 100px; border-radius: 10px; position: absolute; left: 20px; top: 20px; z-index: 1;">
27
+ </div>
18
28
</div>
You can’t perform that action at this time.
0 commit comments