all repos — h3rald @ 87d1386a6c49c4668ebab4623b793487ca6e9723

The sources of https://h3rald.com

content/styles/_layout.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
/* Layout */

body {
	@include standard-font;
	background: #000;
}

#container {
	width: 960px;
	margin: 20px auto;
	padding: 5px;
	color: $dark-gray;
	background: #fff;
	@include border-radius(10px);
}

/* Navigation */

#container > nav.home {
	display: block;
	height: 1.5em;
	margin: 1em auto auto auto;
	width: 940px;
	text-align: center;
	font-size: 0.9em;
	a {
		margin: 0 3px; 
	}
}

#container > header	{
	padding-top: 10px;
	margin: auto;
	width: 940px;
	text-align: center;
	&.home {
		height: 60px;
		border-bottom: 2px solid $dark-blue;
		nav.left { 
			width: 234px;
			height: 60px;
			margin-top: -6px;
		}
		nav.right { 
		width: 234px;
		height: 60px;
		margin-top: -6px;
		}
		h1 {
			float: left;
			margin-left: 110px;
			height: 56px;
			@include hover-image(251px, 56px);
		}
		time {
			clear: both;
			display: block;
			font-size: 0.8em;
			font-weight: bold;
			width: 940px;
			text-align: center;
			padding-top: 0.5em;
		}
		form {
			float: right;
			margin-top: -50px;
		}
	}
	&.page {
		height: 42px;
		border-bottom: 1px solid $dark-blue;
		nav.section {
			float: right;
			margin-top: 10px;
			font-size: 30px;
		}
		nav.home-link {
			float: left;
			@include hover-image(179px, 40px);
		}
	}
}

#container > footer { 
	clear: both;
	text-align: center;
	padding: 10px;
	font-size: 0.8em;
	a {
		margin: 0 3px;
	}
	section.ads {
		height: 90px;
	}
}

#topbar {
	margin: auto;
	margin-top: 20px;
	height: 92px;
	text-align: right;
	width: 940px;
	border: 1px solid $light-gray;
}

#social {
	margin-top: 20px;
	float: left;
	li { float:left;}
	a {
		margin: 0 20px;
		img {
			opacity: 0.6;
			vertical-align: middle;
			@include ease-in(opacity);
			&:hover {
				opacity: 1;
			}
		}
	}
}

#sharing-buttons {
	clear:both;
	margin: 20px auto;
	text-align: center;
}



/* Main */

#main-content {
	margin: 0.5em 0;
	width: 555px;
	text-align: justify;
	border-right: 1px solid $light-gray;
}

#main-content {
	padding: 0 5px;
}

#main-content > article {
	padding: 0 5px;
}

#main-content > section {
	margin-top: 5px;
	padding: 0 5px;
}
#main-content > section.right {
}

#main-content > section.left {
	width: 280px;
}

#main-content > section.right {
	width: 240px;
	padding-left: 10px;
}

/* Secondary */

#secondary-content {
	padding: 0 5px;
	width:380px;
	text-align: justify;
}

#secondary-content > article {
	padding: 0 5px;
	&.feature {
		margin: 0 5px;
	}
}

#secondary-content > section {
	margin-top: 5px;
	padding: 0 5px;
	width: 170px;
}

#secondary-content > section.left {
	padding-right: 10px;
}

#secondary-content > section.right {
}

article.page {
	padding: 10px;
	text-align: justify;
}


/* Columns */

.three-columns {
	-moz-column-count: 3;
	-moz-column-gap: 20px;
	-webkit-column-count: 3;
	-webkit-column-gap: 20px;
	column-count: 3;
	column-gap: 20px;
}

.two-columns {
	-moz-column-count: 2;
	-moz-column-gap: 20px;
	-webkit-column-count: 2;
	-webkit-column-gap: 20px;
	column-count: 2;
	column-gap: 20px;
}

/* Archives */

#taglist, #timeline {
	margin: 2em auto;
	text-align: center;
	td {
		margin: 10px;
		text-align: left;
		width: 180px;
	}
}