Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 90a2a17

Browse files
authored
Merge pull request #19 from CodeYourFuture/syllabus_alignment
Align the exercises with updates for scotland's HTML/CSS syllabus
2 parents dd494a9 + 6e7a452 commit 90a2a17

File tree

130 files changed

+391
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+391
-223
lines changed

css/week1-conflicting-styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** Conflicting styles that require advanced CSS selectors to override */
2+
p {
3+
color: #000;
4+
}

css/week1-pagination.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.countries {
2+
margin: 0;
3+
padding: 1rem;
4+
list-style: none;
5+
border-bottom: 1px solid #bbb;
6+
}
7+
8+
.country {
9+
margin: 1px 0;
10+
padding: 0.5rem;
11+
background: #fff;
12+
border: 1px solid rgba(0,0,0,0.2);
13+
}
14+
15+
.pages {
16+
margin-left: 0.5rem;
17+
}
18+
19+
.pages__page {
20+
text-decoration: none;
21+
}
22+
23+
.pages__showing {
24+
display: inline-block;
25+
padding: 1rem;
26+
float: right;
27+
}

css/week1.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,15 @@ html {
3131

3232
/* Site title and top navigation */
3333
.site-header {
34-
display: flex;
35-
justify-content: space-between;
36-
align-items: center;
3734
padding: 0.5rem 1rem;
38-
color: rgba(255,255,255,0.9);
3935
background: #4491db;
4036
border-top-left-radius: 3px;
4137
border-top-right-radius: 3px;
4238
}
4339

4440
.site-header__title {
4541
margin: 0;
42+
color: rgba(255,255,255,0.9);
4643
font-size: 18px;
4744
font-weight: 700;
4845
}
@@ -75,3 +72,8 @@ html {
7572
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
7673
background: #fff;
7774
}
75+
76+
/* Site footer area */
77+
.site-footer {
78+
padding: 0.5rem 1rem;
79+
}

css/week2-nav-menu.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
body,
2+
html {
3+
background: #25262f;
4+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
5+
font-size: 16px;
6+
line-height: 1.5em;
7+
}
8+
9+
.site-wrapper {
10+
max-width: 1200px;
11+
width: 90%;
12+
margin-top: 2vh;
13+
margin-left: auto;
14+
margin-right: auto;
15+
background: #fff;
16+
border-radius: 3px;
17+
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
18+
}
19+
20+
.site-header {
21+
position: relative;
22+
top: -1px;
23+
padding-top: 1px;
24+
}
25+
26+
.site-header__logo {
27+
display: block;
28+
margin: 1rem;
29+
width: 50px;
30+
height: auto;
31+
}
32+
33+
.site-header__nav {
34+
margin: 1rem 0.5rem;
35+
}
36+
37+
.site-header__navItem {
38+
display: block;
39+
padding: 0.25em 0.5em;
40+
font-weight: bold;
41+
text-decoration: none;
42+
text-transform: uppercase;
43+
color: #007ab2;
44+
border: 1px solid transparent;
45+
border-radius: 3px;
46+
}
47+
48+
.site-header__navItem:focus,
49+
.site-header__navItem:hover {
50+
border: 1px solid #007ab2;
51+
outline: 0;
52+
}
53+
54+
.site-header__navItem--highlighted {
55+
color: #d00a6c;
56+
}
57+
58+
.site-header__navItem--highlighted:hover,
59+
.site-header__navItem--highlighted:focus {
60+
border-color: #d00a6c;
61+
}
62+
63+
.site-header__checkout {
64+
display: inline-block;
65+
margin: 0.5rem;
66+
padding: 0.5em 1em;
67+
border: 1px solid #007ab2;
68+
border-radius: 3px;
69+
background: #007ab2;
70+
color: #fff;
71+
text-decoration: none;
72+
}
73+
74+
.site-header__checkout:focus,
75+
.site-header__checkout:hover {
76+
background: #009cd4;
77+
outline: 0;
78+
}

images/10/solution-1.png

-4.09 KB
Binary file not shown.

images/10/solution-2.png

-5.97 KB
Binary file not shown.

images/10/solution-3.png

-6 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

images/11/solution-1.png

99 Bytes

0 commit comments

Comments
 (0)