Skip to content

Commit 902fcf2

Browse files
committed
fix: wrap and tidy the layers panel gate message
1 parent b868475 commit 902fcf2

1 file changed

Lines changed: 43 additions & 10 deletions

File tree

‎src/styles/Extn-LayersPanel.less‎

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,53 +54,86 @@
5454
}
5555

5656
.layers-message {
57+
box-sizing: border-box;
5758
display: flex;
5859
flex-direction: column;
5960
align-items: center;
6061
justify-content: center;
62+
justify-content: safe center;
6163
-webkit-box-flex: 1;
6264
flex: 1;
65+
width: 100%;
66+
min-width: 0;
6367
min-height: 0;
64-
padding: 2rem 1.5rem;
68+
padding: 24px 14px;
69+
overflow-y: auto;
70+
overflow-x: hidden;
6571
text-align: center;
72+
white-space: normal;
73+
overflow-wrap: break-word;
74+
word-break: break-word;
6675
}
6776

6877
.layers-message-icon {
69-
margin-bottom: 0.9rem;
70-
font-size: 2.1rem;
71-
color: @project-panel-text-2;
72-
opacity: 0.55;
78+
display: flex;
79+
align-items: center;
80+
justify-content: center;
81+
flex: none;
82+
width: 44px;
83+
height: 44px;
84+
margin-bottom: 14px;
85+
border: 1px solid @layers-border;
86+
border-radius: 50%;
87+
background: @layers-accent-soft;
88+
color: @layers-accent;
89+
font-size: 17px;
7390
}
7491

7592
.layers-message-title {
76-
margin-bottom: 0.4rem;
93+
max-width: 100%;
94+
margin-bottom: 5px;
7795
font-size: @sidebar-content-font-size;
7896
font-weight: 600;
97+
line-height: 1.35;
7998
color: @project-panel-text-1;
8099
}
81100

82101
.layers-message-text {
83-
max-width: 260px;
102+
max-width: 240px;
84103
color: @project-panel-text-2;
85-
line-height: 1.45;
104+
line-height: 1.5;
86105
}
87106

88107
.layers-message-btn {
89-
margin-top: 1.1rem;
90-
padding: 6px 14px;
108+
box-sizing: border-box;
109+
max-width: 100%;
110+
margin-top: 16px;
111+
padding: 7px 16px;
91112
border: 1px solid @layers-accent;
92113
border-radius: 6px;
93114
background: @layers-accent-soft;
94115
color: @project-panel-text-1;
95116
font-family: inherit;
96117
font-size: @sidebar-small-font-size;
97118
font-weight: 500;
119+
line-height: 1.35;
120+
white-space: normal;
98121
cursor: pointer;
99122
outline: none;
123+
transition: background-color 120ms ease, border-color 120ms ease;
100124

101125
&:hover {
102126
background: @layers-accent-strong;
103127
}
128+
129+
&:active {
130+
background: @layers-accent-strong;
131+
transform: translateY(1px);
132+
}
133+
134+
&:focus-visible {
135+
box-shadow: 0 0 0 2px @layers-accent-soft;
136+
}
104137
}
105138

106139
.layers-panel {

0 commit comments

Comments
 (0)