File tree Expand file tree Collapse file tree 1 file changed +28
-17
lines changed
packages/site-kit/src/lib/components Expand file tree Collapse file tree 1 file changed +28
-17
lines changed Original file line number Diff line number Diff line change 50
50
.code-block {
51
51
position : relative ;
52
52
box-shadow : 1px 2px 1rem hsla (0 0 0 / 0.08 );
53
+ border-radius : var (--sk-border-radius );
54
+ overflow : hidden ;
53
55
margin : 2rem 0 ;
54
56
55
57
.controls {
56
- position : relative ;
58
+ --height : 3.6rem ;
59
+ display : flex ;
60
+ align-items : center ;
61
+ position : absolute ;
62
+ top : 0 ;
63
+ height : var (--height );
57
64
58
- .ts-toggle {
59
- position : absolute ;
65
+ &:has(.filename) {
66
+ position : relative ;
67
+ background : var (--sk-back-4 );
68
+ }
69
+
70
+ .filename {
71
+ content : attr (data-file );
72
+ display : block ;
73
+ flex : 1 ;
74
+ font-family : var (--sk-font-mono );
75
+ font-size : 1.2rem ;
76
+ font-weight : 400 ;
77
+ padding : 0 1rem ;
78
+ color : var (--sk-text-2 );
79
+ }
80
+
81
+ .copy-to-clipboard {
82
+ height : var (--height );
83
+ aspect-ratio : 1 ;
84
+ background : url (../icons/copy-to-clipboard-empty-light.svg ) no-repeat 50% 50% / 2rem 2rem ;
60
85
}
61
86
}
62
87
68
93
display : none ;
69
94
}
70
95
71
- .filename {
72
- content : attr (data-file );
73
- display : block ;
74
- width : 100% ;
75
- font-family : var (--sk-font-mono );
76
- font-size : 1.2rem ;
77
- font-weight : 400 ;
78
- padding : 1rem 1rem 0.8rem 1rem ;
79
- color : var (--sk-text-2 );
80
- background : var (--sk-back-4 );
81
- border-radius : var (--sk-border-radius ) var (--sk-border-radius ) 0 0 ;
82
- box-sizing : border-box ;
83
- }
84
-
85
96
pre {
86
97
position : relative ;
87
98
margin : 0 ;
You can’t perform that action at this time.
0 commit comments