Reorganized CSS stylesheet, and added a menu and smooth scrolling
This commit is contained in:
+170
-83
@@ -1,3 +1,4 @@
|
||||
/*Variables*/
|
||||
:root {
|
||||
--violet-main-color: #ad76d4;
|
||||
--violet-main-color-filter: invert(79%) sepia(34%) saturate(6966%) hue-rotate(220deg) brightness(86%) contrast(92%);
|
||||
@@ -27,20 +28,23 @@
|
||||
--wr-active-widget-height: 2em;
|
||||
|
||||
}
|
||||
#section1{
|
||||
height: 100vh;
|
||||
|
||||
/*Fonts*/
|
||||
@font-face {
|
||||
font-family: abelRegular;
|
||||
src: url(/static/font/Abel-Regular.woff);
|
||||
}
|
||||
@font-face {
|
||||
font-family: abelBold;
|
||||
src: url(/static/font/AbelPro-Bold.woff);
|
||||
}
|
||||
|
||||
/*Html*/
|
||||
html,body{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
@font-face {
|
||||
font-family: abelRegular; /* set name */
|
||||
src: url(/static/font/Abel-Regular.woff); /* url of the font */
|
||||
}
|
||||
@font-face {
|
||||
font-family: abelBold; /* set name */
|
||||
src: url(/static/font/AbelPro-Bold.woff); /* url of the font */
|
||||
line-height: .95;
|
||||
scroll-behavior:smooth;
|
||||
}
|
||||
|
||||
html{
|
||||
@@ -57,53 +61,139 @@ body{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.ccwr_url{
|
||||
background-color: #390747;
|
||||
|
||||
h1,h3{
|
||||
letter-spacing: -.075em;
|
||||
color: var(--wr-yellow);
|
||||
padding-top: 0px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
h1{
|
||||
|
||||
font-size: 2.25em;
|
||||
}
|
||||
|
||||
img{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*Useful Layout Classes*/
|
||||
div.page{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
div.container{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 50em;
|
||||
align-items:center;
|
||||
}
|
||||
|
||||
.section{
|
||||
height: 100vh;
|
||||
background-color: #d5231133;
|
||||
border-style: dotted;
|
||||
border-width: 1px;
|
||||
/*scale: .75;*/
|
||||
}
|
||||
|
||||
.row{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.column{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.wrapping{
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ride_date{
|
||||
display: block;
|
||||
padding: .5em;
|
||||
|
||||
.centered{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.next_ride_date{
|
||||
color:var(--wr-yellow);
|
||||
}
|
||||
.ride_date.active{
|
||||
color: #390747;
|
||||
|
||||
.box{
|
||||
padding-top: 1em;
|
||||
padding-bottom: 1em;
|
||||
padding-left: 1.5em;
|
||||
padding-right: 1.5em;
|
||||
margin-left:2em;
|
||||
margin-right:2em;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
h1,h3{
|
||||
letter-spacing: -.075em;
|
||||
color: var(--wr-yellow);
|
||||
line-height: .9;
|
||||
|
||||
.box.solid{
|
||||
border-style: solid;
|
||||
background-color: var(--violet-main-color);
|
||||
border-radius: 1.25em;
|
||||
border-width: .125em;
|
||||
border-color: var(--violet-accent-color);
|
||||
|
||||
}
|
||||
/* h1{
|
||||
font-size: 3em;
|
||||
|
||||
.menu{
|
||||
position: absolute;
|
||||
top: 0em;
|
||||
justify-content: center;
|
||||
}
|
||||
h2{
|
||||
font-size: 2.5em;
|
||||
|
||||
.section{
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
h3{
|
||||
font-size: 2em;
|
||||
.fix{
|
||||
position: fixed;
|
||||
}
|
||||
h4{
|
||||
font-size: 1.5em;
|
||||
.rel{
|
||||
position: relative;
|
||||
}
|
||||
h5{
|
||||
font-size: 1.25em;
|
||||
} */
|
||||
img{
|
||||
max-width: 100%;
|
||||
.anchor_top_left{
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
}
|
||||
.anchor_top{
|
||||
top: 0px;
|
||||
justify-self: center;
|
||||
}
|
||||
.anchor_top_right{
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
.anchor_right{
|
||||
right:0px;
|
||||
bottom:50%;
|
||||
}
|
||||
.anchor_bottom_right{
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
}
|
||||
.anchor_bottom{
|
||||
bottom: 0px;
|
||||
justify-self: center;
|
||||
}
|
||||
.anchor_bottom_left{
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
}
|
||||
.anchor_left{
|
||||
|
||||
left:0px;
|
||||
bottom:50%;
|
||||
}
|
||||
|
||||
/*Images*/
|
||||
|
||||
img.icon{
|
||||
max-width: 100%;
|
||||
max-height: 3em;
|
||||
@@ -111,6 +201,7 @@ img.icon{
|
||||
border-radius: 0em;
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
img.emwrlogo{
|
||||
max-height: 20em;
|
||||
background-size: cover;
|
||||
@@ -118,11 +209,10 @@ img.emwrlogo{
|
||||
position: relative;
|
||||
top: -5em;
|
||||
}
|
||||
|
||||
img.map{
|
||||
max-width: 100%;
|
||||
max-height: 50em;
|
||||
border-radius: var(--wr-border-radius);
|
||||
|
||||
}
|
||||
|
||||
img.photo{
|
||||
@@ -131,32 +221,51 @@ img.photo{
|
||||
object-fit: cover;
|
||||
border-radius: var(--wr-border-radius);
|
||||
}
|
||||
|
||||
img.photo.main{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
img.photo.A{
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
img.photo.B{
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
img.photo.C{
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
div.page{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: 100%;
|
||||
/*Colors*/
|
||||
|
||||
.yellow{
|
||||
color: var(--wr-yellow);
|
||||
}
|
||||
div.container{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 50em;
|
||||
align-items:center;
|
||||
|
||||
.ccwr_url{
|
||||
background-color: #390747;
|
||||
}
|
||||
|
||||
/*?*/
|
||||
|
||||
.ride_date{
|
||||
display: block;
|
||||
padding: .5em;
|
||||
font-family: abelBold;
|
||||
letter-spacing: -.075em;
|
||||
}
|
||||
|
||||
.next_ride_date{
|
||||
color:var(--wr-yellow);
|
||||
}
|
||||
|
||||
.ride_date.active{
|
||||
color: #390747;
|
||||
}
|
||||
|
||||
div.tag_reminder{
|
||||
position: fixed;
|
||||
overflow-y: scroll;
|
||||
@@ -184,26 +293,25 @@ div.tag_reminder{
|
||||
content: '';
|
||||
}
|
||||
|
||||
|
||||
.widget:before {
|
||||
height: var(--wr-widget-height);
|
||||
filter: var(--wr-white-filter);
|
||||
content: url('./img/arrow_before.svg');
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.widget:after {
|
||||
height: var(--wr-widget-height);
|
||||
filter: var(--wr-white-filter);
|
||||
content: url('./img/arrow_after.svg');
|
||||
position: relative;
|
||||
}
|
||||
.widget.ride_date.active{
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.widget.ride_date.active::before,.widget.ride_date.active::after {
|
||||
filter: var(--wr-dark-blue);
|
||||
height: var(--wr-active-widget-height);
|
||||
}
|
||||
|
||||
.widget-text{
|
||||
display: flex;
|
||||
height: var(--wr-widget-height);
|
||||
@@ -214,51 +322,30 @@ div.tag_reminder{
|
||||
color: var(--violet-main-color);
|
||||
|
||||
}
|
||||
|
||||
.widget-text.active{
|
||||
font-family: abelBold;
|
||||
height: var(--wr-active-widget-height);
|
||||
background-color: var(--wr-dark-blue);
|
||||
color: var(--wr-yellow);
|
||||
padding-left:.25em;
|
||||
padding-right:.25em;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.centered{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.menu{
|
||||
position: absolute;
|
||||
top: 0em;
|
||||
justify-content: center;
|
||||
}
|
||||
.section{
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
.backpack{
|
||||
max-height: 15em;
|
||||
width: auto;
|
||||
}
|
||||
.box{
|
||||
border-style: solid;
|
||||
background-color: var(--violet-main-color);
|
||||
padding-top: .5em;
|
||||
padding-bottom: .5em;
|
||||
padding-left: 1.5em;
|
||||
padding-right: 1.5em;
|
||||
border-radius: 1.25em;
|
||||
border-width: .125em;
|
||||
border-color: var(--violet-accent-color);
|
||||
margin-left:2em;
|
||||
margin-right:2em;
|
||||
|
||||
p{
|
||||
padding-top: 0px;
|
||||
margin-top: .5em;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
#dates_bar{
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
justify-content: center;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user