all repos — h3rald @ 9504a69adcee918506f2e81007520b76e07505bc

The sources of https://h3rald.com

content/styles/_content.scss

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
/* Content */

article > header {
	h1 {
		@include standard-font;
		font-weight: bold;
		color: #000;
		line-height: 1.1em;
		padding-top: 0.2em;
		text-align:left;
		height: 60%;
		a {
			color: #000;
			text-decoration: none;
		}
	}
	h2 {
		@include standard-font;
		font-weight: normal;
		font-style: italic;
		color: #000;
		line-height: 1.1em;
		height: 20%;
		text-align:left;
	}
}

@mixin toolbar {
	border-bottom: 1px solid $light-gray;
	width: 100%;
	text-align: left;
	font-size: 0.8em;
	line-height: 1.2em;
}


article > header > p.pubdate {
	@include toolbar;
}
article > header > p.toolbar {
	@include toolbar;
	margin-top: 20px;
	time {
		font-style: italic;
	}
	.tools {
		float: right;
		margin-top: -20px;
		a {
			float: left;
			display: block;
			margin: 0 2px;
			img {
				opacity: 0.6;
				@include ease-in(opacity);
				&:hover {
					opacity: 1;
				}
			}
		}
	}
}
article > header .author {
	text-align: right;
	font-size: 0.8em;
	float: right;
	margin-top: -10px;
}

article.page > section {
	padding-top: 0.5em;
	clear: both;
}

article > section {
	clear: right;
}

article > header > nav.tags {
	margin-top: -5px;
	padding: 2px 0 3px 0;
	text-align: left;
	float: left;
}

article > header > nav.tags > a {
	margin: 2px 8px 2px 0px;
	font-style: italic;
	background-color: #CED1EB;
	@include border-radius(3px);
	padding: 1px 3px;
	@include ease-in(background-color);
}
article > header > nav.tags > a:hover {
	background-color: #E0E3FF;
}


/* Headers */

#main-content > article h1, 
article.page > header h1 {
	font-size: 2.8em;
}

#secondary-content > article h1, 
#main-content > section > article h1,
#body-text section header h1,
#body-text h2 {
	font-size: 2em;
}

#main-content > article h2, 
#secondary-content > section > article h1, 
article.page > header h2,
#body-text section section header h1,
#body-text h3 {
	font-size: 1.6em;
}

#main-content > section > article h2,
#body-text section section section header h1,
#body-text h5 {
	font-size: 1.3em;
}

#secondary-content > article h2,
#body-text section section section section header h1,
#body-text h4 {
	font-size: 1.4em;
}

#secondary-content > section > article h2,
#body-text section section section section section header h1,
#body-text h6 {
	font-size: 1.1em;
}

/* Text */

article {
	font-size: 93%;
	header > p { font-size: 90%; }
}

#body-text {
	margin-top: 2.5em;
	h1, h2, h3, h4, h5, h6 {
		clear: both;
		padding-top: 1.5em;
		margin-bottom: 0.8em;
		border-bottom: 1px solid $light-gray;  
		width: 100%;
	}
	img {
		margin: 1em;
	}
	.right, img[style="float:right;"] {
		margin: 1em 0 1em 1em;
	}
	.left, img[style="float:left;"] {
		margin: 1em 1em 1em 0;
	}
	blockquote {
		font-style: italic;
		color: #8F6B17;
	}
}

article p {
	margin: 0.6em 0;
}

article.feature {
	border: 1px solid $light-gray;
	padding: 10px;	
	header p {
		margin: 0;
		font-weight: bold;
		text-align: right;
		color: $light-gray;
	}
	h1, h2 {
		text-align: center;
	}
	h2 {
		margin-bottom:10px;
	}
}

/* Lists */

#body-text ul, ol {
	margin-left: 2em;
}

dl {
	margin: 2em 0;
	dt {
		margin: 1em 0 0.3em 0; 
		font-size: 120%;
	}
	dd {
		margin-left: 2em;
	}
}


/* Tables */

#body-text table {
	border-collapse: collapse;
	@include border-radius(5px);
	th {
		font-size: 110%;
		text-align: center;
		font-weight: bold;
		background: #fafafa;
	}
	tr, th, td {
		border: 1px solid $light-gray;
	}
	td {
		padding: 5px;
	}

}

/* TOC */

#auto-toc {
	#toc-title {
		border-bottom: none;
		font-size: 1.2em;
		font-style: italic;
	}
	ol {
		margin-left: 0;
		li {
			list-style-type: none;
		}
	}
	float: right;
	margin: 1em 0 1.5em 1.5em;
	padding: 0.5em;
	border: 1px solid $light-gray;
}

.toc-top-link {
	font-weight: normal;
}

/* Legacy Comments */

#legacy-comments {
	margin: 0 10px;
}

.lc-header{
	margin: 20px 0 10px 0;
	padding: 3px;
  background: #F7F7F7;
  color: #333;
  line-height: normal;
  height: auto;
	font-weight: bold;
  border: 1px solid rgba(0,0,0,.08);
	@include border-radius(3px);
}
.lc-body {
	margin: 0 10px;
	font-size: 0.93em;
}

/* Projects */

#github {
	border: 1px solid $light-gray;
	padding: 5px;
	margin-left: 5px;
	float: right;
	width: 400px;
	.commit-date {
		font-style: italic;
	}
	a {
		font-size: 90%;
		font-weight: bold;
	}
}

.project-links {
	width: 500px;
	border: 1px solid $light-gray;
	margin-bottom: 10px;
	padding: 0 5px;
	text-align: center;
	a {
		font-weight: bold;
	}
}


/* Classes */

.clear-left {
	clear: left;
}
.clear-right {
	clear: right;
}
.clear {
	clear:both;
}

.img-right {
	float: right;
	margin: 10px 0 10px 10px;
}
.img-left {
	float: right;
	margin: 10px 10px 10px 0;
}

.right {
	float: right;
}

.left {
	float: left;
}

.border-left {
	border-left: 1px solid $light-gray;
}
.border-right {
	border-right: 1px solid $light-gray;
}

/* Elements */

a {
	color: $dark-blue;
	text-decoration: none;
	@include ease-in(color);
	outline: none;
}

a:hover {
	color: $light-blue;
}