Skip to content

Commit 088519d

Browse files
authored
Merge pull request #257 from ember-learn/redesign/main-links
Scope fancy link styling to site `<main>`
2 parents 37342ce + 85e0489 commit 088519d

File tree

5 files changed

+49
-14
lines changed

5 files changed

+49
-14
lines changed

addon/styles/components/es-button.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
.es-button {
1+
.es-button,
2+
a.es-button,
3+
a.es-button:link,
4+
a.es-button:visited {
25
background-color: var(--color-brand);
36
color: var(--color-white);
47
padding-left: var(--spacing-3);

addon/styles/components/es-footer.css

+19-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33
} */
44

55
.es-footer {
6-
& a {
6+
& a,
7+
&:link,
8+
&:visited {
79
text-decoration: none;
8-
color: var(--color-gray-900);
10+
color: var(--color-gray-600);
911
background-image: none;
1012
}
1113

14+
& a:focus,
15+
& a:hover {
16+
text-decoration: underline;
17+
color: var(--color-brand);
18+
}
19+
1220
& .footer-info {
1321
display: flex;
1422
padding: var(--spacing-2) 0;
@@ -66,3 +74,12 @@
6674
max-width: 4rem;
6775
}
6876
}
77+
78+
footer.es-footer {
79+
& a,
80+
&:link,
81+
&:visited {
82+
color: var(--color-gray-600);
83+
background-image: none;
84+
}
85+
}

addon/styles/components/es-header.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
box-sizing: border-box;
9292
}
9393

94-
.navbar-list-item-link {
94+
.navbar-list-item-link,
95+
.navbar-list-item-link:link,
96+
.navbar-list-item-link:visited {
9597
display: block;
9698
color: inherit;
9799
text-decoration: none;

addon/styles/global.css

+12-7
Original file line numberDiff line numberDiff line change
@@ -115,27 +115,32 @@ body {
115115
line-height: var(--line-height-base);
116116
}
117117

118+
a {
119+
color: var(--color-brand-hc-dark);
120+
text-decoration: underline;
121+
}
122+
118123
main {
119124
background-color: var(--color-gray-100);
120125
}
121126

122-
a,
123-
a:link,
124-
a:visited {
127+
main a,
128+
main a:link,
129+
main a:visited {
125130
color: var(--color-brand-hc-dark);
126131
text-decoration: none;
127132
background: no-repeat left bottom
128133
linear-gradient(var(--color-brand-40), var(--color-brand-40));
129134
background-size: 100% 0.1875rem;
130135
}
131136

132-
a:focus,
133-
a:hover {
137+
main a:focus,
138+
main a:hover {
134139
color: var(--color-brand);
135140
}
136141

137-
a:active,
138-
.active {
142+
main a:active,
143+
main .active {
139144
color: var(--color-brand);
140145
}
141146

addon/styles/well.css

+11-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
display: flex;
33
height: 100%;
44
box-sizing: border-box;
5-
background: var(--color-white);
65
border-radius: var(--radius-lg);
76
border: 2px solid var(--color-gray-200);
87
overflow: hidden;
98
}
109

10+
a.well:link,
11+
a.well:visited,
12+
.well {
13+
background: var(--color-white);
14+
}
15+
1116
a.well:focus {
1217
border-color: var(--color-white);
1318
}
@@ -21,24 +26,27 @@ a.well:hover {
2126
margin: auto;
2227
}
2328

24-
[class*='well-'] {
29+
[class*="well-"] {
2530
position: relative;
2631
height: 0;
2732
}
2833

2934
.well-1\/1 {
35+
height: 0;
3036
padding: 0 0 100%;
3137
}
3238

3339
.well-4\/3 {
40+
height: 0;
3441
padding: 0 0 75%;
3542
}
3643

3744
.well-16\/9 {
45+
height: 0;
3846
padding: 0 0 56.25%;
3947
}
4048

41-
[class*='well-'] img {
49+
[class*="well-"] img {
4250
position: absolute;
4351
top: 50%;
4452
left: 50%;

0 commit comments

Comments
 (0)