Skip to content

Commit baed7d3

Browse files
committed
www: Improve Copy Button
1 parent 5225e87 commit baed7d3

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

www/rustup.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ hr {
124124
color: white;
125125
padding: 1rem 1rem 1rem 0;
126126
width: 45rem;
127+
height: auto;
127128
text-align: center;
128-
border-radius: 3px;
129+
border-radius: 3px 0 0 3px;
129130
box-shadow: inset 0px 0px 20px 0px #333333;
130-
overflow: auto;
131+
overflow: hidden;
131132
font-size: 0.6em;
132133
white-space: nowrap;
133134
height: 26px;
@@ -149,17 +150,24 @@ hr {
149150
#platform-instructions-default button.copy-button,
150151
#platform-instructions-unknown button.copy-button {
151152
height: 58px;
152-
margin: 1px;
153-
padding-right: 5px;
154-
border-radius: 3px;
153+
margin: 0;
154+
padding: 0 5px 0 5px;
155+
border-radius: 0 3px 3px 0;
156+
border-left-width: 0px;
157+
border-left-style: solid;
155158
}
156159

157160
#platform-instructions-unix div.copy-icon,
158161
#platform-instructions-win32 div.copy-icon,
159162
#platform-instructions-win64 div.copy-icon,
160163
#platform-instructions-default div.copy-icon,
161164
#platform-instructions-unknown div.copy-icon {
162-
margin-top: 12px;
165+
position: relative;
166+
width: fit-content;
167+
height: fit-content;
168+
top: 50%;
169+
left: 50%;
170+
transform: translate(-50%, -50%);
163171
}
164172

165173
#platform-instructions-unix div.copy-button-text,
@@ -171,6 +179,8 @@ hr {
171179
color: green;
172180
width: 41px;
173181
height: 15px;
182+
position: relative;
183+
top: 5px;
174184
}
175185

176186
#platform-instructions-win32 a.windows-download,

0 commit comments

Comments
 (0)