Skip to content

Commit 7d807b4

Browse files
committed
Fix text-offset on interactive gradients CTAs
Fix #1
1 parent 5ebdda1 commit 7d807b4

File tree

5 files changed

+46
-32
lines changed

5 files changed

+46
-32
lines changed

docs/assets/css/scss/pages/examples.scss

+25-19
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,42 @@ body.examples {
4545
text-align: center;
4646

4747
.cta-wrapper {
48-
margin-top: 130px;
49-
a {
48+
margin-top: 136px;
49+
50+
span {
5051
position: relative;
5152
display: inline-block;
52-
padding: 3px 7px;
53-
border: solid 1px transparent;
5453
margin-right: 50px;
5554
z-index: 1;
56-
text-decoration: none;
57-
color: #222;
58-
transition: border .3s;
5955
&:last-child {margin-right: 0}
60-
&.active {
61-
font-weight: bold;
62-
border-color: #222;
63-
}
64-
@include desk {
65-
&:hover {border-color: rgba(0,0,0,.25)}
56+
57+
a {
58+
display: inline-block;
59+
padding: 3px 7px;
60+
border: solid 1px transparent;
61+
text-decoration: none;
62+
font-size: 17px;
63+
color: #222;
64+
transition: border .3s;
65+
&.active {
66+
border-color: #222;
67+
}
68+
@include desk {
69+
&:hover {border-color: rgba(0,0,0,.25)}
70+
&.active:hover {border-color: #222}
71+
}
6672
}
6773
}
6874

6975
@include mob {
70-
margin-top: 90px;
71-
a {
76+
margin-top: 91px;
77+
78+
span {
7279
display: block;
73-
border: none;
7480
margin: 0 0 20px;
75-
&:last-child {
76-
margin-bottom: 0;
77-
}
81+
&:last-child {margin-bottom: 0}
82+
83+
a {font-size: 15px}
7884
}
7985
}
8086
}

docs/assets/css/scss/var.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $lg: 1200px;
1010
@media screen and (min-width: #{$sm}) and (max-width: #{$md - 1}) {@content}
1111
}
1212
@mixin desk {
13-
@media screen and (min-width: #{$md}) {@content}
13+
@media screen and (min-width: #{$sm + 1}) {@content}
1414
}
1515
@mixin desk-small {
1616
@media screen and (min-width: #{$md}) and (max-width: #{$lg - 1}) {@content}

0 commit comments

Comments
 (0)