Skip to content

Commit 00e0ca9

Browse files
authored
Merge pull request creativecommons#505 from Zeeshan-2k1/Issue
Splited Sass into smaller files
2 parents 8c87828 + 3a07c1c commit 00e0ca9

13 files changed

+596
-621
lines changed

webpack/sass/author-post-page.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Author Post page
2+
.author-posts {
3+
.header {
4+
.container {
5+
.image {
6+
width: 9.5rem;
7+
height: 9.5rem;
8+
}
9+
10+
.about {
11+
@extend .body-big;
12+
@extend .padding-top-big;
13+
14+
line-height: 1.8125;
15+
}
16+
17+
.button {
18+
@extend .margin-top-bigger;
19+
}
20+
}
21+
}
22+
23+
.posts {
24+
@extend .padding-top-xl;
25+
@extend .padding-bottom-xxl;
26+
}
27+
}

webpack/sass/authors-page.scss

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// All Authors page
2+
.all-authors {
3+
.authors-list {
4+
@extend .padding-bottom-xxl;
5+
6+
background-color: $color-lighter-gray;
7+
.container {
8+
@extend .padding-horizontal-big;
9+
}
10+
}
11+
12+
.author {
13+
@extend .padding-big;
14+
15+
.image {
16+
height: 3.75rem;
17+
width: 3.75rem;
18+
}
19+
20+
.mobile {
21+
display: none;
22+
}
23+
24+
.desktop {
25+
display: inline;
26+
}
27+
28+
@media only screen and (max-width: 768px) {
29+
.mobile {
30+
display: inline;
31+
}
32+
.desktop {
33+
display: none;
34+
}
35+
}
36+
37+
.author-name {
38+
@extend .padding-top-small;
39+
40+
.link {
41+
@extend .has-color-dark-slate-gray;
42+
}
43+
}
44+
}
45+
}

webpack/sass/blog-page.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Blog page
2+
.blog-page {
3+
.blog-page-posts {
4+
@extend .padding-top-normal;
5+
6+
.pagination-wrapper {
7+
@extend .padding-top-normal;
8+
@extend .padding-bottom-xxl;
9+
}
10+
}
11+
}

webpack/sass/categories-page.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Categories page
2+
.all-categories {
3+
.categories-list {
4+
@extend .padding-horizontal-big;
5+
@extend .padding-top-xl;
6+
@extend .padding-bottom-xxl;
7+
}
8+
}

webpack/sass/cc-search.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// CC Search Roadmap
2+
.cc-search-roadmap {
3+
.body {
4+
@extend .padding-horizontal-big;
5+
@extend .padding-top-xl;
6+
@extend .padding-bottom-xxl;
7+
}
8+
}

webpack/sass/guidelines.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Guidelines page
2+
.code-guidelines {
3+
.code-guidelines-body {
4+
@extend .padding-horizontal-big;
5+
6+
.link {
7+
@extend .has-color-forest-green;
8+
}
9+
.is-active {
10+
@extend .has-color-dark-slate-gray;
11+
}
12+
13+
.row {
14+
@extend .padding-top-larger;
15+
}
16+
17+
.content {
18+
@extend .padding-bottom-xxl;
19+
@extend .padding-top-xl;
20+
}
21+
}
22+
}

webpack/sass/home-page.scss

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
// Hero section - Home page
2+
.hero {
3+
@extend .margin-top-large;
4+
5+
.hero-title {
6+
@extend .padding-horizontal-big;
7+
}
8+
9+
.hero-description {
10+
@extend .body-bigger;
11+
@extend .padding-top-big;
12+
@extend .padding-horizontal-big;
13+
}
14+
15+
.hero-links {
16+
@extend .margin-vertical-normal;
17+
@extend .padding-horizontal-big;
18+
19+
.button {
20+
@extend .margin-top-normal;
21+
text-decoration: none;
22+
23+
.icon {
24+
@extend .margin-right-small;
25+
@extend .padding-vertical-smaller;
26+
}
27+
}
28+
}
29+
30+
.hero-image {
31+
@include from($fullhd) {
32+
margin-top: -20rem;
33+
.image {
34+
width: 50%;
35+
}
36+
}
37+
@include until($fullhd) {
38+
.image {
39+
width: 100%;
40+
}
41+
}
42+
}
43+
}
44+
45+
// Get-involved section - Home page
46+
.get-involved {
47+
background-color: $color-lighter-gray;
48+
@extend .has-color-dark-slate-gray;
49+
border-bottom: solid 0.1875rem $color-white;
50+
51+
.container {
52+
@extend .padding-horizontal-big;
53+
@extend .padding-vertical-xxl;
54+
}
55+
56+
.get-involved-description {
57+
@extend .body-bigger;
58+
@extend .padding-top-normal;
59+
}
60+
61+
.get-involved-links {
62+
@extend .padding-top-xl;
63+
64+
.heading {
65+
@extend .b-header;
66+
@extend .padding-top-bigger;
67+
}
68+
69+
.list {
70+
@extend .padding-top-normal;
71+
72+
.link-heading {
73+
@extend .b-header;
74+
@extend .padding-top-big;
75+
76+
:hover {
77+
@extend .has-color-forest-green;
78+
}
79+
}
80+
81+
.link-caption {
82+
@extend .body-normal;
83+
@extend .padding-top-smaller;
84+
}
85+
}
86+
}
87+
}
88+
89+
// Recent-posts section - Home page
90+
.recent-posts {
91+
background-color: rgba(4, 166, 53, 0.1);
92+
93+
.container {
94+
@extend .padding-vertical-xl;
95+
@extend .padding-horizontal-big;
96+
97+
.columns {
98+
@extend .padding-top-bigger;
99+
@extend .padding-bottom-xl;
100+
}
101+
}
102+
103+
.blog-title {
104+
@extend .has-color-dark-slate-gray;
105+
}
106+
107+
.posts-link {
108+
@extend .has-color-forest-green;
109+
@extend .body-normal;
110+
111+
font-weight: bold;
112+
line-height: 1.5;
113+
text-decoration: none;
114+
115+
.icon {
116+
@extend .has-color-forest-green;
117+
@extend .padding-left-small;
118+
}
119+
}
120+
}
121+
122+
// Featured-projects section - Home page
123+
.featured-projects {
124+
@extend .padding-vertical-xxl;
125+
126+
.container {
127+
@extend .padding-horizontal-big;
128+
}
129+
130+
.project-page-link {
131+
@extend .has-color-forest-green;
132+
@extend .body-normal;
133+
134+
line-height: 1.5rem;
135+
font-weight: bold;
136+
text-decoration: none;
137+
138+
.icon {
139+
@extend .padding-left-small;
140+
@extend .padding-top-smaller;
141+
}
142+
}
143+
144+
.project-list {
145+
@extend .padding-top-bigger;
146+
@extend .padding-bottom-larger;
147+
148+
.column {
149+
@extend .padding-right-larger;
150+
@extend .padding-bottom-larger;
151+
152+
height: 100%;
153+
}
154+
}
155+
}
156+
157+
.blog-entries {
158+
.column {
159+
border-bottom: 0.1875rem solid $color-light-gray;
160+
}
161+
/* last row, irrespective of the number of elements */
162+
.column:nth-last-child(-n + 3):nth-child(3n + 1), /* first element of the last row */
163+
.column:nth-last-child(-n + 3):nth-child(3n + 1) ~ .column /* all its following elements */ {
164+
border-bottom: none;
165+
}
166+
167+
.blog-entry {
168+
@extend .padding-vertical-larger;
169+
@extend .padding-horizontal-big;
170+
171+
.blog-title {
172+
@extend .has-color-dark-slate-gray;
173+
}
174+
}
175+
}

0 commit comments

Comments
 (0)