all repos — h3rald @ 2e83d5668f040221d07b71f73f63143db2608739

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
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
/* Content */

article > header {
	h1 {
		@include standard-font;
		font-weight: bold;
		color: #000;
		line-height: 0.9em;
		padding-top: 0.2em;
		text-align:left;
		height: 60%;
		a {
			color: #000;
			text-decoration: none;
		}
	}
	h2 {
		@include standard-font;
		font-weight: 600;
		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: 1px 6px 1px 0px;
	font-style: italic;
	font-weight: 600;
	padding: 1px 4px;
}

/* 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: 100;
	header > p { font-size: 95%; }
}

#body-text {
	margin-top: 2.5em;
	h1, h2, h3, h4, h5, h6 {
		clear: both;
		padding-top: 1.5em;
		margin-bottom: 0.1em;
		border-bottom: 1px solid $light-gray;  
		width: 100%;
	}
	img {
		margin: 0.6em;
	}
	.right, img[style="float:right;"], figure[style="float:right;"] {
		margin: 1em 0 1em 1em;
	}
	.left, img[style="float:left;"], figure[style="float:left;"] {
		margin: 1em 1em 1em 0;
	}
	blockquote, q {
		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;
	}
}

/* Figures */

figcaption {
	color: #8F6B17;
	font-style: italic;
	padding: 0;
	margin: 0 0.6em;
}

figure {
	padding: 0;
	display: auto;
	border: 1px solid #ccc;
	img {
		margin-bottom: 0;
	}
}


/* Lists */

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

#body-text li {
	margin-left: 1em;
}

ol.toc, ol.toc ol {
	list-style-type: none;
}

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;
	}

}

table#timeline, table#taglist {
	th, tr, td {
		border: none;
	}
}

/* Glyph Book */

section.glyph-book > nav {
	text-align: center;
	margin: 2em auto;
	a {
		margin: 0 1em;
		text-size: 120%;
		font-weight: bold;
	}
}

section.glyph-index h1.toc-header {
	display: none;
}

/* 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;
	}
}

/* Contact form */

#body-text {
	form.fsForm {
		width: 400px;
	}
	table.fsTable, 
	tr.fsRow, 
	tr.fsRowTop, 
	tr.fsSpacerRow,
 	td.fsRowOpen, 
	td.fsRowClose, 
	td.fsRowBody, 
	td.fsCell {
		border: none;
		@include standard-font;
	}
	tr.fsRowTop, tr.fsSpacerRow {
		display: none;
	}
}


/* 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;
}

.center {
	margin: auto;
	text-align: center;
}

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

/* Elements */

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

a:hover {
	color: $light-blue;
	text-decoration: underline;
}

sup {
	vertical-align: super;
	font-size: 80%;
}

.toc-top-link {
	font-size: 80%;
	font-weight: bold;
	padding: 3px;
}

.note, .important, .tip, .caution, .box {
  border: 1px solid #e6e6e6;
  display: block;
  margin: 0.5em auto;
  padding: 0 0.5em;
  width: 600px;
  background: #EEE;
  color: #1F1F1F; }
 
.note > p, .important > p, .tip > p, .caution > p {
  margin: 0;
  padding: 0; }
 
.note-title {
  font-weight: bold;
  margin-right: 1em; }
 
.box-title {
  display: block;
  text-align: center;
  font-weight: bold; }