Skip to content

Commit 45208c7

Browse files
committed
Merge pull request electron#113 from electron/rainbow-button
rainbow border instead of background
2 parents 2a6144c + f40d79a commit 45208c7

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

assets/css/about.css

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,17 @@ footer.about-section {
8888
}
8989

9090
:root {
91-
--rainbow-button-width: 180px;
92-
--rainbow-button-height: 60px;
91+
--rainbow-button-width: 170px;
92+
--rainbow-button-height: 50px;
93+
--rainbow-button-width-inner: 164px;
94+
--rainbow-button-height-inner: 44px;
9395
--rainbow-color-1: hsl(116, 30%, 36%);
9496
--rainbow-color-2: hsl(194, 60%, 36%);
9597
--rainbow-color-3: hsl(222, 53%, 50%);
9698
--rainbow-color-4: hsl(285, 47%, 46%);
9799
--rainbow-color-5: hsl(330, 65%, 48%);
98-
--rainbow-color-6: hsl( 36, 77%, 34%);
100+
--rainbow-color-6: hsl(32, 79%, 49%);
101+
--rainbow-color-7: hsl(53, 84%, 50%);
99102
}
100103

101104
.rainbow-button-wrapper {
@@ -104,7 +107,7 @@ footer.about-section {
104107
height: var(--rainbow-button-height);
105108
position: relative;
106109
overflow: hidden;
107-
border-radius: 4px;
110+
border-radius: 5px;
108111
}
109112

110113
.rainbow-button-wrapper:before {
@@ -113,30 +116,31 @@ footer.about-section {
113116
z-index: 2;
114117
top: 0;
115118
left: 0;
116-
width: 1000px;
119+
width: 600px;
117120
height: var(--rainbow-button-height);
118121
background: #CCC;
119-
background: linear-gradient(to right, var(--rainbow-color-1) 0%, var(--rainbow-color-2) 17%, var(--rainbow-color-3) 33%, var(--rainbow-color-4) 50%, var(--rainbow-color-5) 67%, var(--rainbow-color-6) 83%, var(--rainbow-color-1) 100%);
120-
background-position: 600px 0;
122+
background: linear-gradient(to right, var(--rainbow-color-1) 0%, var(--rainbow-color-2) 14%, var(--rainbow-color-3) 28%, var(--rainbow-color-4) 42%, var(--rainbow-color-5) 56%, var(--rainbow-color-6) 70%, var(--rainbow-color-7) 84%, var(--rainbow-color-1) 100%);
123+
background-position: -200px 0;
121124
transition: all 0.5s;
122125
content: "";
123126
}
124127

125128
.rainbow-button-wrapper button {
126129
display: block;
127-
width: var(--rainbow-button-width);
128-
height: var(--rainbow-button-height);
130+
width: var(--rainbow-button-width-inner);
131+
height: var(--rainbow-button-height-inner);
129132
position: absolute;
130133
z-index: 3;
131-
top: 0;
132-
left: 0;
133-
color: white;
134+
top: 3px;
135+
left: 3px;
134136
border: none;
135-
cursor: pointer;
137+
background: white;
138+
color: black;
139+
font-size: 1.3rem;
136140
}
137141

138142
.rainbow-button-wrapper:hover:before {
139-
background-position: 1400px 0;
143+
background-position: 200px 0;
140144
}
141145

142146
@media (min-width: 940px) {

0 commit comments

Comments
 (0)