cerebellum-alcohol-infographic/css/style.css

94 lines
1.3 KiB
CSS
Raw Normal View History

2021-10-17 07:35:16 +00:00
html {
scroll-behavior: smooth;
}
2021-10-11 17:14:52 +00:00
header {
margin-top: 2rem;
margin-bottom: 4rem;
2021-10-17 07:35:16 +00:00
padding-left: 1rem !important;
padding-right: 1rem !important;
box-sizing: border-box;
margin-right: 0;
}
2021-10-17 07:41:20 +00:00
header div {
text-align: center;
}
2021-10-17 07:35:16 +00:00
header a {
display: inline-block;
text-align: center;
font-size: 1.5rem;
position: relative;
}
header a::after {
content: '';
display: inline-block;
position: absolute;
left: 25%;
bottom: -0.4rem;
width: 50%;
height: 1px;
background: #9b4dca;
transition: all 0.3s;
}
header a:hover::after {
left: 0%;
width: 100%;
background: #606c76;
2021-10-11 17:14:52 +00:00
}
.vertical-space {
width: 100%;
height: 1px;
margin-top: 2rem;
margin-bottom: 2rem;
}
2021-10-16 20:23:03 +00:00
.text-center {
text-align: center;
}
2021-10-19 19:08:40 +00:00
.alcohol-and-the-brain .chart {
min-width: 0;
}
2021-10-16 20:23:03 +00:00
.alcohol-abuse-chart-box {
display: flex;
width: 100%;
2021-10-19 19:08:40 +00:00
position: relative;
2021-10-16 20:23:03 +00:00
justify-content: center;
flex-direction: column;
}
.alcohol-abuse-chart-box p {
margin-top: 1rem;
}
.heading h1, .heading h2 {
2021-10-11 17:14:52 +00:00
text-align: center;
}
2021-10-11 18:13:00 +00:00
svg {
2021-10-19 19:08:40 +00:00
max-width: 100%;
2021-10-11 18:13:00 +00:00
}
#Alcohol, #connection-rectangle, #brain, #brain-projection, #human {
opacity: 0;
}
2021-10-18 08:30:35 +00:00
.references li {
transition: background-color 1s;
padding: 0.5rem 1rem;
}
.highlight {
background-color: rgb(251, 255, 130);
}
2021-10-18 09:49:37 +00:00
#brain-container canvas {
margin: 1rem auto;
}