-
-
Save neoskitties/2b2c61dbe5241117052b00668e5b7168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--fern-green: #307435; | |
--pistachio: #8bc882; | |
--sinopia: #c2512c; | |
--azure: #d4e4e5; | |
--licorice: #231714; | |
--licorice-transparent: rgb(35, 23, 20, 0.5); | |
} | |
* { | |
box-sizing: border-box; | |
image-rendering: pixelated; | |
scroll-behavior: smooth; | |
scrollbar-width: thin; | |
font-family: arial; | |
transition: 0.4s; | |
} | |
html { | |
background: var(--pistachio); | |
scrollbar-color: var(--sinopia) var(--licorice); | |
} | |
a { | |
color: var(--sinopia); | |
font-weight: bold; | |
} | |
a:hover { | |
color: var(--licorice); | |
} | |
.header { | |
background: var(--fern-green); | |
color: var(--azure); | |
width: 100%; | |
height: 80px; | |
border-bottom: 4px solid var(--licorice); | |
box-shadow: 0px 4px 8px var(--licorice-transparent); | |
padding: 8px; | |
position: fixed; | |
top: 0px; | |
left: 0; | |
} | |
.header h1 { | |
font-size: 52px; | |
margin-right: 8px; | |
margin-top: 0px; | |
float: right; | |
} | |
.header p { | |
margin-top: 24px; | |
} | |
.header button { | |
background: var(--sinopia); | |
background-image: linear-gradient( | |
0deg, | |
var(--azure) 26.56%, | |
var(--licorice) 26.56%, | |
var(--licorice) 32.81%, | |
var(--sinopia) 32.81%, | |
var(--sinopia) 50%, | |
var(--azure) 50%, | |
var(--azure) 76.56%, | |
var(--licorice) 76.56%, | |
var(--licorice) 82.81%, | |
var(--sinopia) 82.81%, | |
var(--sinopia) 100% | |
); | |
background-size: 130px 130px; | |
color: var(--azure); | |
width: 56px; | |
height: 56px; | |
border: 4px solid var(--licorice); | |
border-radius: 32px; | |
box-shadow: 2px 2px 4px var(--licorice-transparent); | |
float: left; | |
display: inline; | |
margin-right: 16px; | |
} | |
.circle { | |
background: var(--azure); | |
width: 20px; | |
height: 20px; | |
border: 4px solid var(--licorice); | |
border-radius: 20px; | |
margin: auto; | |
margin-top: 4px; | |
} | |
.header button:hover { | |
box-shadow: 0px 0px 0px; | |
filter: brightness(0.75); | |
transform: rotate(180deg); | |
cursor: pointer; | |
} | |
.sidebar { | |
background: var(--fern-green); | |
color: var(--azure); | |
width: 200px; | |
height: 100%; | |
position: fixed; | |
border-right: 4px solid var(--licorice); | |
box-shadow: 4px 0px 8px var(--licorice-transparent); | |
padding: 16px; | |
overflow-y: hidden; | |
scrollbar-color: var(--pistachio) var(--licorice); | |
margin-top: 60px; | |
left: 0; | |
} | |
.sidebar h2 { | |
background: var(--pistachio); | |
color: var(--licorice); | |
border: 4px solid var(--licorice); | |
border-radius: 8px; | |
box-shadow: 4px 4px 4px var(--licorice-transparent); | |
} | |
.sidebar a { | |
color: var(--azure); | |
letter-spacing: 4px; | |
text-decoration: none; | |
border-bottom: 4px solid var(--licorice); | |
padding: 2px; | |
display: block; | |
} | |
.sidebar a:hover { | |
letter-spacing: 8px; | |
} | |
.updates { | |
background: var(--sinopia); | |
color: var(--azure); | |
border: 4px solid var(--licorice); | |
border-radius: 8px; | |
padding: 4px; | |
height: 100px; | |
overflow-y: auto; | |
scrollbar-color: var(--licorice) var(--azure); | |
} | |
.updates ul { | |
margin: 2px; | |
padding-left: 24px; | |
text-align: left; | |
} | |
div.content { | |
margin-left: 200px; | |
height: auto; | |
padding: 90px 0px; | |
} | |
.box { | |
background: var(--azure); | |
color: var(--licorice); | |
border: 4px solid var(--licorice); | |
border-radius: 8px; | |
max-width: 700px; | |
margin: 16px auto; | |
box-shadow: 4px 4px 4px var(--licorice-transparent); | |
padding: 16px 24px; | |
} | |
@media screen and (max-width: 650px) { | |
body { | |
overflow-x:hidden; | |
} | |
.header { | |
z-index:10; | |
} | |
.sidebar { | |
width: 100%; | |
height: auto; | |
position: absolute; | |
top: 0px; | |
} | |
.updates { | |
height: 120px; | |
} | |
.content { | |
position:absolute; | |
left:-100px; | |
height: auto; | |
margin-top: 400px; | |
width:100%; | |
} | |
.box { | |
max-width: 100%; | |
margin-left: -100px; | |
padding: 16px 24px; | |
} | |
} | |
@media screen and (max-width: 410px) { | |
.header h1 {font-size:32px;} | |
} | |
@media screen and (max-width: 345px) { | |
.header h1 {font-size:32px; margin-top:-32px;} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<meta charset="UTF-8"> | |
<title>Repel</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<link rel="stylesheet" href=""> | |
<style> | |
</style> | |
<body> | |
<div class="sidebar"> | |
<center> | |
<h2>Links</h2> | |
<a href="#">Link One</a> | |
<a href="#">Link Two</a> | |
<a href="#">Link Three</a> | |
<h2>Updates</h2> | |
<div class="updates"> | |
<ul> | |
<li>Update</li> | |
<li>Update</li> | |
<li>Update</li> | |
<li>Update</li> | |
<li>Update</li> | |
</ul> | |
</div> | |
<p>Text can go here too! Or images! It's all up to you!</p> | |
</center> | |
</div> | |
<div class="header"> | |
<a hef="#"><button> | |
<div class="circle"></div> | |
</button></a> | |
<a hef="#"><button> | |
<div class="circle"></div> | |
</button></a> | |
<a hef="#"><button> | |
<div class="circle"></div> | |
</button></a> | |
<h1>Repel!</h1> | |
</div> | |
<div class="content"> | |
<div class="box"> | |
<h2>Box One</h2> | |
You can put anything you want in here, the box will expand to fit the content! | |
</div> | |
<div class="box"> | |
<h2>Box Two</h2> | |
You can also add more boxes! As many as you need, a scrollbar will appear if needed! | |
</div> | |
<div class="box"> | |
<h2>Box Two</h2> | |
You can also add more boxes! As many as you need, a scrollbar will appear if needed! | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment