|
@@ -1,3 +1,17 @@
|
|
1
|
+/* variables */
|
|
2
|
+
|
|
3
|
+$black: #000000;
|
|
4
|
+$white: #ffffff;
|
|
5
|
+$blue: #496893;
|
|
6
|
+$red: #ff0000;
|
|
7
|
+$light-gray: #f5f5f5;
|
|
8
|
+$medium-gray: #c8c8c8;
|
|
9
|
+
|
|
10
|
+$body-font-family: Georgia, serif;
|
|
11
|
+
|
|
12
|
+$body-font-size: 18px;
|
|
13
|
+$heading-font-size: 26px;
|
|
14
|
+
|
1
|
15
|
/* global */
|
2
|
16
|
|
3
|
17
|
* {
|
|
@@ -11,76 +25,92 @@ ul {
|
11
|
25
|
}
|
12
|
26
|
|
13
|
27
|
a {
|
|
28
|
+ color: $blue;
|
14
|
29
|
text-decoration: none;
|
|
30
|
+
|
|
31
|
+ &:hover {
|
|
32
|
+ text-decoration: underline;
|
|
33
|
+ }
|
|
34
|
+}
|
|
35
|
+
|
|
36
|
+body {
|
|
37
|
+ font-family: $body-font-family;
|
|
38
|
+ font-size: $body-font-size;
|
|
39
|
+ line-height: 1.5;
|
|
40
|
+ min-height: 100vh;
|
15
|
41
|
}
|
16
|
42
|
|
17
|
43
|
.heading {
|
18
|
|
- border-bottom: 1px solid #000000;
|
19
|
|
- font-size: 24px;
|
|
44
|
+ border-bottom: 1px solid $black;
|
|
45
|
+ font-size: $heading-font-size;
|
20
|
46
|
margin-bottom: 15px;
|
21
|
47
|
}
|
22
|
48
|
|
23
|
49
|
/* layout */
|
24
|
50
|
|
25
|
51
|
.container {
|
|
52
|
+ border-left: 1px solid $medium-gray;
|
|
53
|
+ border-right: 1px solid $medium-gray;
|
26
|
54
|
display: flex;
|
|
55
|
+ flex-direction: column;
|
|
56
|
+ margin: auto;
|
|
57
|
+ max-width: 768px;
|
|
58
|
+ min-height: 100vh;
|
27
|
59
|
}
|
28
|
60
|
|
29
|
61
|
.main {
|
|
62
|
+ background: $light-gray;
|
30
|
63
|
display: flex;
|
31
|
64
|
flex: 1;
|
32
|
|
- justify-content: center;
|
33
|
65
|
padding: 20px;
|
|
66
|
+ width: 100%;
|
34
|
67
|
}
|
35
|
68
|
|
36
|
|
-.main__container {
|
37
|
|
- width: 768px;
|
38
|
|
-}
|
|
69
|
+/* header */
|
|
70
|
+.header {
|
|
71
|
+ background: $blue;
|
|
72
|
+ color: $white;
|
39
|
73
|
|
40
|
|
-/* sidebar */
|
41
|
|
-.sidebar {
|
42
|
|
- background: #496893;
|
43
|
|
- color: #ffffff;
|
44
|
|
- min-height: 100vh;
|
45
|
|
- padding: 20px 0;
|
46
|
|
- width: 150px;
|
|
74
|
+ @media(max-width: 1000px) {
|
|
75
|
+ min-height: auto;
|
|
76
|
+ width: 100%;
|
|
77
|
+ }
|
47
|
78
|
}
|
48
|
79
|
|
49
|
|
-.sidebar__title {
|
50
|
|
- color: #ffffff;
|
|
80
|
+.header__title {
|
|
81
|
+ color: $white;
|
51
|
82
|
font-size: 24px;
|
|
83
|
+ padding: 15px;
|
52
|
84
|
}
|
53
|
85
|
|
54
|
|
-.sidebar__title,
|
55
|
|
-.nav__item {
|
56
|
|
- padding: 5px 10px;
|
57
|
|
-}
|
58
|
|
-
|
59
|
|
-.nav__item:hover {
|
60
|
|
- background: #ffffff;
|
|
86
|
+.nav {
|
|
87
|
+ background: $white;
|
|
88
|
+ display: flex;
|
|
89
|
+ justify-content: space-between;
|
|
90
|
+ padding: 10px 0;
|
61
|
91
|
}
|
62
|
92
|
|
63
|
|
-.nav__item:hover a {
|
64
|
|
- color: #496893;
|
|
93
|
+.nav__item {
|
|
94
|
+ padding: 5px 10px;
|
65
|
95
|
}
|
66
|
96
|
|
67
|
|
-.nav__link {
|
68
|
|
- color: white;
|
69
|
|
-}
|
|
97
|
+/* forms */
|
70
|
98
|
|
71
|
|
-.nav__link:hover {
|
72
|
|
- text-decoration: underline;
|
|
99
|
+.form {
|
|
100
|
+ width: 100%;
|
73
|
101
|
}
|
74
|
102
|
|
75
|
|
-/* forms */
|
76
|
|
-
|
77
|
103
|
.form__field {
|
78
|
104
|
display: flex;
|
79
|
105
|
flex-direction: column;
|
80
|
|
- margin: 5px 0;
|
|
106
|
+ margin: 15px 0;
|
81
|
107
|
width: 100%;
|
82
|
108
|
}
|
83
|
109
|
|
|
110
|
+.form__field--submit {
|
|
111
|
+ display: block;
|
|
112
|
+}
|
|
113
|
+
|
84
|
114
|
.form__field,
|
85
|
115
|
.form__label {
|
86
|
116
|
margin-bottom: 5px;
|
|
@@ -89,34 +119,60 @@ a {
|
89
|
119
|
.form__date-field,
|
90
|
120
|
.form__textarea,
|
91
|
121
|
.form__text-field {
|
92
|
|
- border: 1px solid #e8e8e8;
|
93
|
|
- font-family: serif;
|
94
|
|
- font-size: 16px;
|
95
|
|
- padding: 5px;
|
|
122
|
+ border: 1px solid $medium-gray;
|
|
123
|
+ font-family: $body-font-family;
|
|
124
|
+ font-size: $body-font-size;
|
|
125
|
+ padding: 10px;
|
96
|
126
|
}
|
97
|
127
|
|
98
|
128
|
.form__textarea {
|
99
|
129
|
resize: vertical;
|
100
|
130
|
}
|
101
|
131
|
|
102
|
|
-.form__submit {
|
103
|
|
- border: 1px solid #e8e8e8;
|
104
|
|
- padding: 5px 10px;
|
|
132
|
+.button.form__submit {
|
|
133
|
+ background: $white;
|
|
134
|
+ border: 1px solid $medium-gray;
|
|
135
|
+ cursor: pointer;
|
|
136
|
+ font-family: $body-font-family;
|
|
137
|
+ font-size: $body-font-size;
|
|
138
|
+ padding: 10px;
|
|
139
|
+
|
|
140
|
+ &:hover {
|
|
141
|
+ background: $light-gray;
|
|
142
|
+ }
|
|
143
|
+
|
|
144
|
+ @media(max-width: 500px) {
|
|
145
|
+ width: 100%;
|
|
146
|
+ }
|
105
|
147
|
}
|
106
|
148
|
|
107
|
149
|
/* post listing */
|
|
150
|
+
|
|
151
|
+.post-listing {
|
|
152
|
+ width: 100%;
|
|
153
|
+}
|
|
154
|
+
|
108
|
155
|
.post-listing__item {
|
|
156
|
+ display: flex;
|
|
157
|
+ padding: 10px;
|
109
|
158
|
position: relative;
|
|
159
|
+ width: 100%;
|
|
160
|
+
|
|
161
|
+ &:nth-child(even) {
|
|
162
|
+ background: white;
|
|
163
|
+ }
|
110
|
164
|
}
|
111
|
165
|
|
112
|
166
|
.post-listing__item--changed:before {
|
113
|
|
- background-color: red;
|
114
|
|
- border-radius: 50%;
|
115
|
|
- content: '';
|
|
167
|
+ color: $red;
|
|
168
|
+ content: '•';
|
116
|
169
|
display: block;
|
117
|
|
- height: 10px;
|
|
170
|
+ font-size: $heading-font-size;
|
118
|
171
|
left: -15px;
|
|
172
|
+ line-height: 16px;
|
119
|
173
|
position: absolute;
|
120
|
|
- top: 3px;
|
121
|
|
- width: 10px;
|
|
174
|
+}
|
|
175
|
+
|
|
176
|
+.post-listing__link {
|
|
177
|
+ flex: 1;
|
122
|
178
|
}
|