Modernized website look
This commit is contained in:
+83
-19
@@ -17,27 +17,61 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
--txt: #f2f4f8;
|
||||
--body-bg: #161616;
|
||||
--header-bg: rgba(0, 0, 0, 0.95);
|
||||
--txt: #eee;
|
||||
--body-bg: #111;
|
||||
--accent: #6690d9;
|
||||
--border: #222;
|
||||
--border: #aaa;
|
||||
--font-body: 'Work Sans', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
color: var(--txt);
|
||||
text-align: center;
|
||||
background-color: var(--body-bg);
|
||||
margin: 0;
|
||||
max-width: 800px;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
header {
|
||||
margin: 1.5rem 0 2.5rem 0;
|
||||
font-weight: bold;
|
||||
font-size: 2rem;
|
||||
margin-bottom: 2.5rem;
|
||||
background-color: var(--header-bg);
|
||||
padding: 1.5rem 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
header img {
|
||||
height: 3rem;
|
||||
margin-left: 1.5rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.home-ref {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.home-ref span {
|
||||
margin-left: 1.5rem;
|
||||
font-size: 1.5rem;
|
||||
color: var(--txt);
|
||||
max-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
transition: max-width 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.home-ref:hover span {
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
header a {
|
||||
@@ -45,37 +79,61 @@ header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav,
|
||||
footer {
|
||||
margin-bottom: 1rem;
|
||||
nav {
|
||||
margin-right: 1.5rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
background-color: var(--border);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: .3rem;
|
||||
margin: .7rem;
|
||||
padding: .4rem 1.2rem;
|
||||
text-decoration: none;
|
||||
box-shadow: 0px 2px 3px 2px rgba(0,0,0,.3);
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
color: var(--txt);
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
background-color: var(--body-bg);
|
||||
nav a:hover, nav a:active {
|
||||
background-color: var(--txt);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--txt);
|
||||
color: var(--header-bg);
|
||||
}
|
||||
|
||||
main {
|
||||
padding-bottom: 2.5rem;
|
||||
overflow: hidden;
|
||||
padding: 0 2.5rem 5rem 2.5rem;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
main p {
|
||||
margin: 0 auto;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.full {
|
||||
height: 80vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.full p {
|
||||
text-align: justify-all !important;
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.full-secondary {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
main ul {
|
||||
@@ -127,6 +185,12 @@ main ul {
|
||||
border: none;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 1rem;
|
||||
font-size: 1.1em;
|
||||
|
||||
Reference in New Issue
Block a user