jekyll-theme-mehdix-rtl 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,204 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+
13
+ /**
14
+ * Basic styling
15
+ */
16
+ body {
17
+ font-family: $base-font-family;
18
+ font-size: $base-font-size;
19
+ line-height: $base-line-height;
20
+ font-weight: 300;
21
+ color: $text-color;
22
+ background-color: $background-color;
23
+ -webkit-text-size-adjust: 100%;
24
+ }
25
+
26
+
27
+
28
+ /**
29
+ * Set `margin-bottom` to maintain vertical rhythm
30
+ */
31
+ h1, h2, h3, h4, h5, h6,
32
+ p, blockquote, pre,
33
+ ul, ol, dl, figure,
34
+ %vertical-rhythm {
35
+ margin-bottom: $spacing-unit / 2;
36
+ }
37
+
38
+
39
+
40
+ /**
41
+ * Images
42
+ */
43
+ img {
44
+ max-width: 100%;
45
+ height: auto;
46
+ vertical-align: middle;
47
+ }
48
+
49
+
50
+
51
+ /**
52
+ * Figures
53
+ */
54
+ figure > img {
55
+ display: block;
56
+ }
57
+
58
+ figcaption {
59
+ font-size: $small-font-size;
60
+ }
61
+
62
+
63
+
64
+ /**
65
+ * Lists
66
+ */
67
+ ul, ol {
68
+ margin-left: $spacing-unit;
69
+ }
70
+
71
+ li {
72
+ > ul,
73
+ > ol {
74
+ margin-bottom: 0;
75
+ }
76
+ }
77
+
78
+
79
+
80
+ /**
81
+ * Headings
82
+ */
83
+ h1, h2, h3, h4, h5, h6 {
84
+ font-weight: 300;
85
+ }
86
+
87
+
88
+
89
+ /**
90
+ * Links
91
+ */
92
+ a {
93
+ color: $brand-color;
94
+ text-decoration: none;
95
+
96
+ &:visited {
97
+ color: darken($brand-color, 15%);
98
+ }
99
+
100
+ &:hover {
101
+ color: $text-color;
102
+ text-decoration: underline;
103
+ }
104
+ }
105
+
106
+
107
+
108
+ /**
109
+ * Blockquotes
110
+ */
111
+ blockquote {
112
+ color: $grey-color;
113
+ border-left: 4px solid $grey-color-light;
114
+ padding-left: $spacing-unit / 2;
115
+ font-size: 18px;
116
+ letter-spacing: -1px;
117
+ font-style: italic;
118
+
119
+ > :last-child {
120
+ margin-bottom: 0;
121
+ }
122
+ }
123
+
124
+
125
+
126
+ /**
127
+ * Code formatting
128
+ */
129
+ pre,
130
+ code {
131
+ font-size: 15px;
132
+ border: 1px solid $grey-color-light;
133
+ border-radius: 3px;
134
+ background-color: #eef;
135
+ }
136
+
137
+ code {
138
+ padding: 1px 5px;
139
+ }
140
+
141
+ pre {
142
+ padding: 8px 12px;
143
+ overflow-x: scroll;
144
+ > code {
145
+ border: 0;
146
+ padding-right: 0;
147
+ padding-left: 0;
148
+ }
149
+ }
150
+
151
+
152
+
153
+ /**
154
+ * Wrapper
155
+ */
156
+ .wrapper {
157
+ max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
158
+ max-width: calc(800px - (#{$spacing-unit} * 2));
159
+ margin-right: auto;
160
+ margin-left: auto;
161
+ padding-right: $spacing-unit;
162
+ padding-left: $spacing-unit;
163
+ @extend %clearfix;
164
+
165
+ @include media-query($on-laptop) {
166
+ max-width: -webkit-calc(800px - (#{$spacing-unit}));
167
+ max-width: calc(800px - (#{$spacing-unit}));
168
+ padding-right: $spacing-unit / 2;
169
+ padding-left: $spacing-unit / 2;
170
+ }
171
+ }
172
+
173
+
174
+
175
+ /**
176
+ * Clearfix
177
+ */
178
+ %clearfix {
179
+
180
+ &:after {
181
+ content: "";
182
+ display: table;
183
+ clear: both;
184
+ }
185
+ }
186
+
187
+
188
+
189
+ /**
190
+ * Icons
191
+ */
192
+ .icon {
193
+
194
+ > svg {
195
+ display: inline-block;
196
+ width: 16px;
197
+ height: 16px;
198
+ vertical-align: middle;
199
+
200
+ path {
201
+ fill: $grey-color;
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,281 @@
1
+ /* Reset */
2
+ /* Source: http://stackoverflow.com/a/21652935/157216 */
3
+ html, body { height: 100%; margin: 0; padding: 0; }
4
+
5
+ /* Essentials */
6
+ .container { display: table; }
7
+ .content { display: table-row; height: 100%; }
8
+ .content-body { display: table-cell; }
9
+
10
+ /* Aestetics */
11
+ .container { width: 100%; height: 100%; }
12
+ .header, .footer { padding: 10px 20px; background: #f7f7f7; }
13
+ .content-body { padding: 20px; background: #e7e7e7; }
14
+
15
+
16
+ /**
17
+ * Site header
18
+ */
19
+ .site-header {
20
+ border-top: 5px solid $grey-color-dark;
21
+ border-bottom: 1px solid $grey-color-light;
22
+ min-height: 56px;
23
+
24
+ // Positioning context for the mobile navigation icon
25
+ position: relative;
26
+ background-color: floralwhite;
27
+ }
28
+
29
+ .site-title {
30
+ font-size: 26px;
31
+ line-height: 56px;
32
+ letter-spacing: -1px;
33
+ margin-bottom: 0;
34
+ float: left;
35
+
36
+ &,
37
+ &:visited {
38
+ color: $grey-color-dark;
39
+ }
40
+ }
41
+
42
+ .site-nav {
43
+ float: right;
44
+ line-height: 56px;
45
+
46
+ .menu-icon {
47
+ display: none;
48
+ }
49
+
50
+ .page-link {
51
+ color: $text-color;
52
+ line-height: $base-line-height;
53
+
54
+ // Gaps between nav items, but not on the first one
55
+ &:not(:first-child) {
56
+ margin-left: 20px;
57
+ }
58
+ }
59
+
60
+ @include media-query($on-palm) {
61
+ position: absolute;
62
+ top: 9px;
63
+ right: 30px;
64
+ background-color: $background-color;
65
+ border: 1px solid $grey-color-light;
66
+ border-radius: 5px;
67
+ text-align: right;
68
+
69
+ .menu-icon {
70
+ display: block;
71
+ float: right;
72
+ width: 36px;
73
+ height: 26px;
74
+ line-height: 0;
75
+ padding-top: 10px;
76
+ text-align: center;
77
+
78
+ > svg {
79
+ width: 18px;
80
+ height: 15px;
81
+
82
+ path {
83
+ fill: $grey-color-dark;
84
+ }
85
+ }
86
+ }
87
+
88
+ .trigger {
89
+ clear: both;
90
+ display: none;
91
+ }
92
+
93
+ &:hover .trigger {
94
+ display: block;
95
+ padding-bottom: 5px;
96
+ }
97
+
98
+ .page-link {
99
+ display: block;
100
+ padding: 5px 10px;
101
+ }
102
+ }
103
+ }
104
+
105
+
106
+
107
+ /**
108
+ * Site footer
109
+ */
110
+ .site-footer {
111
+ border-top: 1px solid $grey-color-light;
112
+ padding: $spacing-unit 0;
113
+ background-color: floralwhite;
114
+ }
115
+
116
+ .footer-heading {
117
+ font-size: 18px;
118
+ margin-bottom: $spacing-unit / 2;
119
+ }
120
+
121
+ .contact-list,
122
+ .social-media-list {
123
+ list-style: none;
124
+ margin-left: 0;
125
+ }
126
+
127
+ .footer-col-wrapper {
128
+ font-size: 15px;
129
+ color: $grey-color;
130
+ margin-left: -$spacing-unit / 2;
131
+ @extend %clearfix;
132
+ }
133
+
134
+ .footer-col {
135
+ float: left;
136
+ margin-bottom: $spacing-unit / 2;
137
+ padding-left: $spacing-unit / 2;
138
+ }
139
+
140
+ .footer-col-1 {
141
+ width: -webkit-calc(35% - (#{$spacing-unit} / 2));
142
+ width: calc(35% - (#{$spacing-unit} / 2));
143
+ }
144
+
145
+ .footer-col-2 {
146
+ width: -webkit-calc(20% - (#{$spacing-unit} / 2));
147
+ width: calc(20% - (#{$spacing-unit} / 2));
148
+ }
149
+
150
+ .footer-col-3 {
151
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
152
+ width: calc(45% - (#{$spacing-unit} / 2));
153
+ }
154
+
155
+ @include media-query($on-laptop) {
156
+ .footer-col-1,
157
+ .footer-col-2 {
158
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
159
+ width: calc(50% - (#{$spacing-unit} / 2));
160
+ }
161
+
162
+ .footer-col-3 {
163
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
164
+ width: calc(100% - (#{$spacing-unit} / 2));
165
+ }
166
+ }
167
+
168
+ @include media-query($on-palm) {
169
+ .footer-col {
170
+ float: none;
171
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
172
+ width: calc(100% - (#{$spacing-unit} / 2));
173
+ }
174
+ }
175
+
176
+
177
+
178
+ /**
179
+ * Page content
180
+ */
181
+ .page-content {
182
+ padding: $spacing-unit 0;
183
+ }
184
+
185
+ .page-heading {
186
+ font-size: 20px;
187
+ }
188
+
189
+ .post-list {
190
+ margin-left: 0;
191
+ list-style: none;
192
+
193
+ > li {
194
+ margin-bottom: $spacing-unit;
195
+ }
196
+ }
197
+
198
+ .post-meta {
199
+ font-size: $small-font-size;
200
+ color: $grey-color;
201
+ }
202
+
203
+ .post-link {
204
+ display: block;
205
+ font-size: 24px;
206
+ font-weight: bold;
207
+ }
208
+
209
+
210
+
211
+ /**
212
+ * Posts
213
+ */
214
+ .post-header {
215
+ margin-bottom: $spacing-unit;
216
+ }
217
+
218
+ .post-title {
219
+ letter-spacing: -1px;
220
+ line-height: 1;
221
+
222
+ @include media-query($on-laptop) {
223
+ font-size: 36px;
224
+ }
225
+ }
226
+
227
+ .post-content {
228
+ margin-bottom: $spacing-unit;
229
+
230
+ h1 {
231
+ font-size: 34px;
232
+
233
+ @include media-query($on-laptop) {
234
+ font-size: 36px;
235
+ }
236
+ }
237
+
238
+ h2 {
239
+ font-size: 32px;
240
+
241
+ @include media-query($on-laptop) {
242
+ font-size: 28px;
243
+ }
244
+ }
245
+
246
+ h3 {
247
+ font-size: 26px;
248
+
249
+ @include media-query($on-laptop) {
250
+ font-size: 22px;
251
+ }
252
+ }
253
+
254
+ h4 {
255
+ font-size: 20px;
256
+
257
+ @include media-query($on-laptop) {
258
+ font-size: 18px;
259
+ }
260
+ }
261
+ }
262
+
263
+ /* My styles */
264
+ .circle {
265
+ border-radius: 50%;
266
+ width: 100px;
267
+ }
268
+
269
+ #gravatar {
270
+ margin-top: 50px;
271
+ }
272
+
273
+ table, td, th{
274
+ border: 1px dotted;
275
+ }
276
+
277
+ .image-caption {
278
+ text-align: center;
279
+ color: $grey-color;
280
+ margin-top: $spacing-unit / 3;
281
+ }