Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit cb4dc60

Browse files
author
Je
committed
refactor: update styles
1 parent 5219355 commit cb4dc60

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

examples/hello-world/style/index.less

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ main {
5656
}
5757
a {
5858
margin: 0 9px;
59-
color: #0090f0;
59+
color: #766;
6060
text-decoration: none;
61+
border-bottom: 1px dashed #cbb;
6162

6263
&:hover {
63-
text-decoration: underline;
64+
border-bottom-color: transparent;
6465
}
6566
}
6667
}
@@ -69,14 +70,15 @@ main {
6970
display: flex;
7071
justify-content: center;
7172
align-items: center;
72-
width: 260px;
73-
height: 48px;
74-
margin: 24px auto 0;
75-
border: 1px dashed #ddd;
73+
width: 270px;
74+
height: 50px;
75+
margin: 30px auto 0;
76+
border: 1px solid #eee;
7677
border-radius: 6px;
77-
transition: border-color 0.15s ease-in;
78+
transition: all 0.15s ease-in;
7879

7980
&:hover {
81+
background-color: #faf9f9;
8082
border-color: #ccc;
8183
}
8284

@@ -91,20 +93,21 @@ main {
9193
display: line-flex;
9294
align-items: center;
9395
justify-content: center;
94-
width: 22px;
95-
height: 22px;
96-
border-radius: 5px;
97-
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
96+
width: 20px;
97+
height: 20px;
98+
border-radius: 4px;
99+
box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
98100
line-height: 1;
99101
font-size: 12px;
100102
font-family: Courier, monospace;
101103
font-weight: 600;
102104
color: #666;
105+
transition: all 0.15s ease-in;
103106
cursor: pointer;
104107

105108
&:hover {
106109
color: #111;
107-
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
110+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
108111
}
109112
}
110113
button + button {
@@ -113,7 +116,7 @@ main {
113116
}
114117

115118
.copyinfo {
116-
margin-top: 24px;
119+
margin-top: 30px;
117120
font-size: 14px;
118121
color: #999;
119122
}

0 commit comments

Comments
 (0)