angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

_posts-and-pages.scss (4935B)


      1 .sticky {
      2 	display: block;
      3 }
      4 
      5 .sticky-post {
      6 	background: $color__background-button;
      7 	color: #fff;
      8 	display: inline-block;
      9 	font-weight: bold;
     10 	line-height: 1;
     11 	padding: .25rem;
     12 	position: absolute;
     13 	text-transform: uppercase;
     14 	top: -$size__spacing-unit;
     15 	z-index: 1;
     16 }
     17 
     18 .updated:not(.published) {
     19 	display: none;
     20 }
     21 
     22 .page-links {
     23 	clear: both;
     24 	margin: 0 0 calc(1.5 * #{$size__spacing-unit});
     25 }
     26 
     27 .entry {
     28 
     29 	margin-top: calc(6 * #{$size__spacing-unit});
     30 
     31 	&:first-of-type {
     32 		margin-top: 0;
     33 	}
     34 
     35 	.entry-header {
     36 
     37 		margin: calc(3 * #{ $size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
     38 		position: relative;
     39 
     40 		@include media(tablet) {
     41 			margin: calc(3 * #{ $size__spacing-unit}) $size__site-margins $size__spacing-unit;
     42 		}
     43 	}
     44 
     45 	.entry-title {
     46 
     47 		@include post-section-dash;
     48 		margin: 0;
     49 
     50 		a {
     51 			color: inherit;
     52 
     53 			&:hover {
     54 				color: $color__text-hover;
     55 			}
     56 		}
     57 	}
     58 
     59 	.entry-meta,
     60 	.entry-footer {
     61 
     62 		color: $color__text-light;
     63 		font-weight: 500;
     64 
     65 		> span {
     66 
     67 			margin-right: $size__spacing-unit;
     68 			display: inline-block;
     69 
     70 			&:last-child {
     71 				margin-right: 0;
     72 			}
     73 		}
     74 
     75 		a {
     76 
     77 			@include link-transition;
     78 			color: currentColor;
     79 
     80 			&:hover {
     81 				text-decoration: none;
     82 				color: $color__link;
     83 			}
     84 		}
     85 
     86 		.svg-icon {
     87 			position: relative;
     88 			display: inline-block;
     89 			vertical-align: middle;
     90 			margin-right: 0.5em;
     91 		}
     92 	}
     93 
     94 	.entry-meta {
     95 		margin: $size__spacing-unit 0;
     96 	}
     97 
     98 	.entry-footer {
     99 
    100 		margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
    101 
    102 		@include media(tablet) {
    103 			margin: $size__spacing-unit $size__site-margins calc(3 * #{$size__spacing-unit});
    104 			max-width: $size__site-tablet-content;
    105 		}
    106 
    107 		@include media(tablet) {
    108 			max-width: $size__site-desktop-content;
    109 		}
    110 	}
    111 
    112 	.post-thumbnail {
    113 
    114 		margin: $size__spacing-unit;
    115 
    116 		@include media(tablet) {
    117 			margin: $size__spacing-unit $size__site-margins;
    118 		}
    119 
    120 		&:focus {
    121 			outline: none;
    122 		}
    123 
    124 		.post-thumbnail-inner {
    125 			display: block;
    126 
    127 			img {
    128 				position: relative;
    129 				display: block;
    130 				width: 100%;
    131 			}
    132 		}
    133 	}
    134 
    135 	.image-filters-enabled & {
    136 
    137 		.post-thumbnail {
    138 			position: relative;
    139 			display: block;
    140 
    141 			.post-thumbnail-inner {
    142 				filter: grayscale(100%);
    143 
    144 				&:after {
    145 					background: rgba(0, 0, 0, 0.35);
    146 					content: "";
    147 					display: block;
    148 					height: 100%;
    149 					opacity: .5;
    150 					pointer-events: none;
    151 					position: absolute;
    152 					top: 0;
    153 					width: 100%;
    154 					z-index: 4;
    155 
    156 					@supports (mix-blend-mode: multiply) {
    157 						display: none;
    158 					}
    159 				}
    160 			}
    161 
    162 			&:before,
    163 			&:after {
    164 				position: absolute;
    165 				display: block;
    166 				width: 100%;
    167 				height: 100%;
    168 				top: 0; left: 0;
    169 				content: "\020";
    170 				pointer-events: none;
    171 			}
    172 
    173 			@include filter-duotone;
    174 
    175 		}
    176 	}
    177 
    178 	.entry-content,
    179 	.entry-summary {
    180 		max-width: calc(100% - (2 * #{ $size__spacing-unit }));
    181 		margin: 0 $size__spacing-unit;
    182 
    183 		@include media(tablet) {
    184 			max-width: 80%;
    185 			margin: 0 10%;
    186 			padding: 0 60px;
    187 		}
    188 	}
    189 
    190 	.entry-content {
    191 
    192 		p {
    193 			word-wrap: break-word;
    194 		}
    195 
    196 		.more-link {
    197 			@include link-transition;
    198 			display: inline;
    199 			color: inherit;
    200 
    201 			&:after {
    202 				content: "\02192";
    203 				display: inline-block;
    204 				margin-left: 0.5em;
    205 			}
    206 
    207 			&:hover {
    208 				color: $color__link;
    209 				text-decoration: none;
    210 			}
    211 		}
    212 
    213 		a {
    214 			text-decoration: underline;
    215 
    216 			&.button,
    217 			&:hover {
    218 				text-decoration: none;
    219 			}
    220 
    221 			&.button {
    222 				display: inline-block;
    223 			}
    224 
    225 			&.button:hover {
    226 				background: $color__background-button-hover;
    227 				color: $color__background-body;
    228 				cursor: pointer;
    229 			}
    230 		}
    231 
    232 		// Overwrite iframe embeds that have inline styles.
    233 		> iframe[style] {
    234 
    235 			margin: 32px 0 !important;
    236 			max-width: 100% !important;
    237 
    238 			@include media(tablet) {
    239 				max-width: $size__site-tablet-content !important;
    240 			}
    241 
    242 			@include media(desktop) {
    243 				max-width: $size__site-desktop-content !important;
    244 			}
    245 		}
    246 
    247 		// Page links
    248 		.page-links a {
    249 			margin: calc(0.5 * #{$size__spacing-unit});
    250 			text-decoration: none;
    251 		}
    252 
    253 		// Classic editor audio embeds.
    254 		.wp-audio-shortcode {
    255 			max-width: calc(100vw - (2 * #{ $size__spacing-unit }));
    256 
    257 			@include media(tablet) {
    258 				max-width: $size__site-tablet-content;
    259 			}
    260 
    261 			@include media(desktop) {
    262 				max-width: $size__site-desktop-content;
    263 			}
    264 		}
    265 	}
    266 }
    267 
    268 /* Author description */
    269 
    270 .author-bio {
    271 	margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit $size__spacing-unit;
    272 
    273 	@include postContentMaxWidth();
    274 
    275 	@include media(tablet) {
    276 		margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
    277 	}
    278 
    279 	@include media(desktop) {
    280 		margin: calc(3 * #{$size__spacing-unit}) $size__site-margins;
    281 	}
    282 
    283 	.author-title {
    284 		@include post-section-dash;
    285 		display: inline;
    286 	}
    287 
    288 	.author-description {
    289 
    290 		display: inline;
    291 		color: $color__text-light;
    292 		font-size: $font__size-md;
    293 		line-height: $font__line-height-heading;
    294 
    295 		.author-link {
    296 			display: inline-block;
    297 
    298 			&:hover {
    299 				color: $color__link-hover;
    300 				text-decoration: none;
    301 			}
    302 		}
    303 	}
    304 }