-
Notifications
You must be signed in to change notification settings - Fork 862
Expand file tree
/
Copy pathstyles.module.scss
More file actions
90 lines (79 loc) · 1.88 KB
/
styles.module.scss
File metadata and controls
90 lines (79 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.heading {
margin-bottom: 0;
}
.notice {
margin: 0;
padding: calc( var( --spacing-base ) * 2 ) calc( var( --spacing-base ) * 3 ) calc( var( --spacing-base ) * 2 ) calc( var( --spacing-base ) * 3 ); // 16px | 24px | 16px | 24px
font-size: 16px;
line-height: 22px;
color: var( --jp-gray-80 );
border: 1px solid var( --jp-gray );
border-left: 6px solid var( --jp-red-50 );
border-radius: var( --jp-border-radius );
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
// notice itself on error status
&:global(.is-error) {
background-color: var( --jp-white );
}
// notice content
& :global(.components-notice__content) {
display: flex;
margin: 0;
padding: 12px 4px;
flex-direction: column;
align-items: start;
}
// action button
& :global(.is-link) {
color: var( --jp-black );
font-size: 16px;
font-weight: 600;
}
// X close button
& :global(.components-notice__dismiss) {
align-self: center;
}
& :global(.components-notice__action) {
color: var( --jp-white );
font-weight: 600;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.01em;
text-decoration: none;
cursor: pointer;
justify-content: center;
align-items: center;
padding: 8px 24px;
margin-left: calc( var( --spacing-base ) * 2 + 24px ); // 40px
margin-top: 24px;
background: #000000;
border-radius: var( --jp-border-radius );
height: auto;
}
&.bigger-than-medium {
& :global(.components-notice__action) {
margin-left: 0;
margin-top: 0;
white-space: nowrap;
}
& :global(.components-notice__content) {
flex-direction: row;
align-items: center;
}
}
}
.message {
margin-right: var( --spacing-base ); // 8px
flex-grow: 1;
display: flex;
// left icon
& > svg {
fill: var( --jp-red-60 );
flex-shrink: 0;
align-self: flex-start;
margin-right: calc( var( --spacing-base ) * 2 ); // 16px
&.nofill {
fill: none;
}
}
}