mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 14:59:45 +03:00 
			
		
		
		
	Refactor Astro components and layouts
This commit is contained in:
		@@ -2,6 +2,52 @@
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<style lang="scss">
 | 
			
		||||
	@import "../scss/_variables.scss";
 | 
			
		||||
 | 
			
		||||
	header {
 | 
			
		||||
		background-color: $colorBg;
 | 
			
		||||
		border-bottom: 1px solid $colorHeader;
 | 
			
		||||
		box-shadow: 0 5px 5px $colorBg;
 | 
			
		||||
		left: 0;
 | 
			
		||||
		line-height: 3.5em;
 | 
			
		||||
		opacity: 0.975;
 | 
			
		||||
		position: fixed;
 | 
			
		||||
		right: 0;
 | 
			
		||||
		top: 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	nav {
 | 
			
		||||
		margin: auto;
 | 
			
		||||
		max-width: 60em;
 | 
			
		||||
		padding: 0 4em;
 | 
			
		||||
		text-align: right;
 | 
			
		||||
 | 
			
		||||
		a {
 | 
			
		||||
			color: $colorText;
 | 
			
		||||
			padding: 0 1em;
 | 
			
		||||
 | 
			
		||||
			&:visited {
 | 
			
		||||
				color: $colorText;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@media (width <=684px) {
 | 
			
		||||
		header {
 | 
			
		||||
			box-shadow: none;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		nav {
 | 
			
		||||
			padding: 0 2em;
 | 
			
		||||
 | 
			
		||||
			span {
 | 
			
		||||
				display: none;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
<header>
 | 
			
		||||
	<nav>
 | 
			
		||||
		<a href="/feed.xml">RSS</a>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,41 +0,0 @@
 | 
			
		||||
header {
 | 
			
		||||
	background-color: $colorBg;
 | 
			
		||||
	border-bottom: 1px solid $colorHeader;
 | 
			
		||||
	box-shadow: 0 5px 5px $colorBg;
 | 
			
		||||
	left: 0;
 | 
			
		||||
	line-height: 3.5em;
 | 
			
		||||
	opacity: 0.975;
 | 
			
		||||
	position: fixed;
 | 
			
		||||
	right: 0;
 | 
			
		||||
	top: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
nav {
 | 
			
		||||
	margin: auto;
 | 
			
		||||
	max-width: 60em;
 | 
			
		||||
	padding: 0 4em;
 | 
			
		||||
	text-align: right;
 | 
			
		||||
 | 
			
		||||
	a {
 | 
			
		||||
		color: $colorText;
 | 
			
		||||
		padding: 0 1em;
 | 
			
		||||
 | 
			
		||||
		&:visited {
 | 
			
		||||
			color: $colorText;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (width <=684px) {
 | 
			
		||||
	header {
 | 
			
		||||
		box-shadow: none;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	nav {
 | 
			
		||||
		padding: 0 2em;
 | 
			
		||||
 | 
			
		||||
		span {
 | 
			
		||||
			display: none;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -1,7 +1,3 @@
 | 
			
		||||
// Base
 | 
			
		||||
@import "variables";
 | 
			
		||||
@import "framework";
 | 
			
		||||
@import "print";
 | 
			
		||||
 | 
			
		||||
// Modules
 | 
			
		||||
@import "navbar";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user