Skip to content

Commit eefe197

Browse files
authored
Merge pull request #156 from ember-learn/remove-addon-docs
Using dummy app for styleguide
2 parents ad5b215 + b476b78 commit eefe197

40 files changed

+3957
-10245
lines changed

addon/styles/addon.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
@import "components/es-header.css";
88
@import "components/es-page-header.css";
99
@import "components/es-button.css";
10+
@import "components/es-tabs.css";
11+
@import "components/es-card.css";

addon/styles/components/es-button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.es-button {
22
background-color: var(--color-ember-orange);
33
color: var(--color-light);
4-
font-size: var(--text-preset-4);
4+
font-size: var(--text-preset-2);
55
padding-left: 4.5rem;
66
padding-right: 4.5rem;
77
padding-top: 1rem;

addon/styles/components/es-card.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.card {
2+
border: 1px solid var(--color-gray);
3+
border-radius: 4px;
4+
margin-bottom: 1em;
5+
}
6+
7+
.card-content {
8+
padding: 1em;
9+
}

addon/styles/components/es-header.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
header.es-header {
2-
height: 6rem;
3-
42
display: flex;
53
justify-content: center;
64
align-items: center;

addon/styles/components/es-tabs.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.tabs {
2+
display: flex;
3+
margin-bottom: 1em;
4+
}
5+
6+
.tabs-item {
7+
flex-grow: 1;
8+
text-align: center;
9+
border-bottom: 2px solid var(--color-gray);
10+
}
11+
12+
.tabs-link {
13+
text-decoration: none;
14+
font-size: var(--text-preset-1);
15+
font-weight: 600;
16+
color: var(--color-muted);
17+
display: block;
18+
padding: 1em;
19+
}
20+
21+
.tabs-item--active {
22+
border-bottom: 2px solid var(--color-ember-orange);
23+
}
24+
25+
.tabs-item--active .tabs-link {
26+
color: var(--color-ember-orange);
27+
}

addon/styles/global.css

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,74 @@
11
:root {
2-
--container-width-large: 64em;
2+
--container-width-large: 64rem;
33
--color-dark: #1C1E23;
4-
--color-light: #FFF;
4+
--color-light: #FFFFFF;
5+
--color-muted: #F4F6F8;
56
--color-ember-orange: #E04E39;
7+
--color-gray: #A2A3A8;
8+
--text-preset-1: 1rem;
9+
--text-preset-2: 1.2rem;
10+
--text-preset-3: 1.8rem;
11+
--text-preset-4: 2.8rem;
12+
--text-preset-5: 3.5rem;
13+
}
614

7-
--text-preset-4: 18pt;
15+
body, html {
16+
margin: 0;
17+
padding: 0;
18+
font-family: "Source Sans Pro", sans-serif;
19+
font-size: 16px;
820
}
921

10-
.container {
11-
max-width: var(--container-width-large);
12-
margin-left: auto;
13-
margin-right: auto;
22+
p {
23+
font-size: 1.2rem;
24+
line-height: 1.6;
25+
margin: 0 0 1rem 0;
26+
font-weight: 300;
27+
}
28+
29+
h1,
30+
h2,
31+
h3,
32+
h4,
33+
h5,
34+
h6 {
35+
font-weight: 300;
36+
margin: 0 0 1.2rem 0;
37+
}
38+
39+
@media (max-width: 1280px) and (min-width: 421px) {
40+
body,
41+
html {
42+
43+
}
44+
}
45+
46+
@media (max-width: 520px) {
47+
body,
48+
html {
49+
50+
}
1451
}
1552

53+
/* move beyond this point */
54+
1655
.dark {
1756
background-color: var(--color-dark);
1857
color: var(--color-light);
1958
}
59+
60+
.muted {
61+
background-color: var(--color-muted);
62+
}
63+
64+
.container {
65+
max-width: var(--container-width-large);
66+
margin-left: auto;
67+
margin-right: auto;
68+
}
69+
70+
.content-section {
71+
padding-top: 4.5rem;
72+
padding-bottom: 4.5rem;
73+
border: 1px solid #CCC;
74+
}

addon/styles/typography.css

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,39 @@
2525
url('/fonts/open-sans-v16-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
2626
}
2727

28-
body {
29-
font-size: 16pt;
30-
font-family: "Source Sans Pro", sans-serif;
31-
font-weight: 300;
28+
29+
.sans {
30+
font-family: 'Open Sans', sans-serif;
3231
}
3332

34-
h1 {
35-
font-weight: 300;
33+
.bold {
34+
font-weight: 800;
35+
}
36+
37+
.italic {
38+
font-style: italic;
39+
}
40+
41+
.xsmall {
42+
font-size: var(--text-preset-1);
43+
}
44+
45+
.small {
46+
font-size: var(--text-preset-2);
47+
}
48+
49+
.medium {
50+
font-size: var(--text-preset-3);
51+
}
52+
53+
.large {
54+
font-size: var(--text-preset-4);
55+
}
56+
57+
.xlarge {
58+
font-size: var(--text-preset-5);
3659
}
60+
61+
.text-center {
62+
text-align: center;
63+
}

addon/templates/components/es-page-header.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="es-page-header" ...attributes>
22
<div class="container">
3-
<h1 class="es-page-header__title">{{@headline}}</h1>
3+
<h1 class="xlarge">{{@headline}}</h1>
44

5-
<p class="es-page-header__details">{{@detail}}</p>
5+
<p>{{@detail}}</p>
66

77
{{yield}}
88
</div>

0 commit comments

Comments
 (0)