Skip to content

Commit aba4d7b

Browse files
committed
nimor ui update
1 parent 82a2efb commit aba4d7b

4 files changed

Lines changed: 48 additions & 23 deletions

File tree

‎styles/_main-containers.scss‎

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
.main {
2+
$dark-theme: 'body.dark &';
23
position: relative;
34
display: flex;
45
align-items: center;
56
flex-direction: column;
67
padding-bottom: 3rem;
78
.title {
89
text-align: center;
9-
padding-top: 3rem;
10-
padding-bottom: 1rem;
10+
margin-top: 6rem;
11+
margin-bottom: 2rem;
12+
transition: all $anim-default-time $anim-cubic-bezier;
1113
@media screen and (min-width: 50rem) {
12-
padding-top: 8rem;
13-
padding-bottom: 2rem;
14+
margin-top: 10rem;
15+
margin-bottom: 3rem;
1416
}
1517

1618
a {
@@ -72,6 +74,17 @@
7274
}
7375
}
7476

77+
#{$dark-theme} {
78+
.title {
79+
margin-top: 3rem;
80+
margin-bottom: 1rem;
81+
@media screen and (min-width: 50rem) {
82+
margin-top: 8rem;
83+
margin-bottom: 2rem;
84+
}
85+
}
86+
}
87+
7588
.search-bar {
7689
padding: 1rem 0;
7790
width: 100%;
@@ -103,12 +116,6 @@
103116
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
104117
}
105118

106-
&--dark {
107-
&:focus, &:active, &:hover {
108-
box-shadow: $box-shadow;
109-
}
110-
}
111-
112119
input {
113120
border-radius: 5rem;
114121
border: 0 !important;
@@ -124,10 +131,13 @@
124131

125132
i {
126133
opacity: 0.5;
127-
font-size: 1.2rem;
134+
font-size: 1rem;
128135
&:hover {
129136
opacity: 1;
130137
}
138+
@media screen and (min-width: 50rem) {
139+
font-size: 1.2rem;
140+
}
131141
}
132142
}
133143

@@ -143,11 +153,22 @@
143153
text-decoration: underline;
144154
}
145155
@media screen and (min-width: 50rem) {
156+
padding-left: 1.4rem;
146157
font-size: 1rem;
147158
}
148159
}
149160
}
150161

162+
#{$dark-theme} {
163+
.search-bar {
164+
&__input {
165+
&:focus, &:active, &:hover {
166+
box-shadow: $box-shadow;
167+
}
168+
}
169+
}
170+
}
171+
151172
.suggestion {
152173
padding-bottom: 2rem;
153174
max-width: 100%;
@@ -197,3 +218,4 @@
197218
}
198219
}
199220
}
221+

‎styles/_notice-links.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.notice-links {
2+
$dark-theme: 'body.dark &';
23
position: fixed;
34
bottom: 0;
45
left: 0;
56
width: 100%;
6-
padding-bottom: 1.5rem;
7+
padding-bottom: 1rem;
78
padding-top: 0.5rem;
89
text-align: center;
910
transition: background-color $anim-default-time ease-in-out;
1011
@at-root {
11-
body.dark .notice-links {
12+
#{$dark-theme} {
1213
background: $dark;
1314
}
1415
}

‎styles/_source-code.scss‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@at-root {
22
.source-code {
3-
> .header {
4-
padding: 0.8rem 1rem !important;
3+
&#{&}> .header {
4+
padding: 0.8rem 1rem;
55
}
66
> .content {
77
pre {
@@ -13,7 +13,7 @@
1313
color: #000;
1414
}
1515
}
16-
.ui.dropdown .menu>.item {
16+
&#{&} .ui.dropdown .menu>.item {
1717
padding: 0.4rem 0 0 0.4rem !important;
1818
&:last-child {
1919
padding-bottom: 0.4rem !important;

‎styles/_utils.scss‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
}
2929

3030
.hidden-link {
31-
color: #000 !important;
32-
&:hover {
33-
color: #1e70bf !important;
31+
&#{&} {
32+
color: #000;
33+
}
34+
&#{&}:hover {
35+
color: #1e70bf;
3436
}
3537
}
3638

@@ -45,9 +47,9 @@
4547
height: 94%;
4648
overflow: hidden;
4749
transform: translate3d(0, 0, 0);
48-
.content {
49-
padding: 0.4rem !important;
50-
margin: 0 !important;
50+
&#{&} > .content {
51+
padding: 0.4rem;
52+
margin: 0;
5153
height: 90%;
5254
overflow: scroll;
5355
-webkit-overflow-scrolling: touch;
@@ -61,7 +63,7 @@
6163
top: -2rem;
6264
right: -2rem;
6365
}
64-
.content {
66+
&#{&} > .content {
6567
height: auto;
6668
overflow-y: visible;
6769
}

0 commit comments

Comments
 (0)