2
0
mirror of https://github.com/offen/website.git synced 2024-11-27 03:00:25 +01:00
website/homepage/theme/static/css/fix.css

304 lines
5.4 KiB
CSS
Raw Normal View History

2019-12-22 12:56:02 +01:00
/* ---------------------------------------------------
2019-12-23 11:46:19 +01:00
COLORS
2019-12-22 12:56:02 +01:00
----------------------------------------------------*/
2019-12-23 11:46:19 +01:00
/* Custom Tachyons classes */
2019-12-22 15:22:13 +01:00
.cclr-mid-yellow {
2019-12-23 15:16:20 +01:00
background-color: #F7BF08;
}
2019-12-27 23:09:42 +01:00
.fnt-cclr-mid-yellow {
2019-12-22 21:38:12 +01:00
color: #F7BF08;
2019-12-27 23:09:42 +01:00
}
.brd-cclr-mid-yellow {
2019-12-22 21:38:12 +01:00
border-color: #F7BF08;
2019-12-27 23:09:42 +01:00
}
2019-12-22 15:22:13 +01:00
.cclr-bright-yellow {
2019-12-22 12:56:02 +01:00
background-color: #fde28c;
2019-12-27 23:09:42 +01:00
}
2019-12-22 15:22:13 +01:00
.cclr-mid-mint {
2019-12-22 12:56:02 +01:00
background-color: #BBD9D3;
2019-12-27 23:09:42 +01:00
}
2019-12-22 15:22:13 +01:00
.cclr-mid-black {
2019-12-22 12:56:02 +01:00
background-color: #39352A;
2019-12-27 23:09:42 +01:00
}
.fnt-cclr-mid-black {
2019-12-22 15:22:13 +01:00
color: #39352A;
2019-12-27 23:09:42 +01:00
}
.brd-cclr-mid-black {
2019-12-22 19:02:00 +01:00
border-color: #39352A;
2019-12-27 23:09:42 +01:00
}
2019-12-23 15:16:20 +01:00
.cclr-dark-white {
background-color: #f9f7f2;
2019-12-27 23:09:42 +01:00
}
2019-12-22 12:56:02 +01:00
/* ---------------------------------------------------
LAYOUT
----------------------------------------------------*/
.menu {
width: 100%;
2019-12-23 11:46:19 +01:00
height: 4rem; /* Tachyons mt5 */
2019-12-22 12:56:02 +01:00
position: fixed;
z-index: 1;
top: 0;
right: 0;
}
2019-12-27 23:09:42 +01:00
.columns {
column-count: 1;
2019-12-27 12:57:02 +01:00
}
/* Custom media query */
@media only screen and (min-width: 60rem) {
2019-12-27 23:09:42 +01:00
.columns {
column-count: 2;
column-gap: 4em;
column-rule: 0.18rem solid rgba(0,0,0,.05);
2019-12-27 12:57:02 +01:00
}
}
2019-12-23 11:46:19 +01:00
/* Custom media query - extra small */
@media only screen and (max-width: 29.99em) {
2019-12-22 12:56:02 +01:00
.menu {
position: static;
}
}
2019-12-23 11:46:19 +01:00
/* Custom Tachyons class */
2019-12-27 23:09:42 +01:00
.w55 {
2019-12-27 19:58:53 +01:00
width: 18.5rem;
2019-12-22 19:02:00 +01:00
}
2019-12-23 15:16:20 +01:00
/* Custom media query - extra small */
@media only screen and (max-width: 30em) {
2019-12-27 23:09:42 +01:00
.w55 {
2019-12-23 15:16:20 +01:00
width: 100%;
}
}
2019-12-27 12:57:02 +01:00
2019-12-22 19:02:00 +01:00
/* ---------------------------------------------------
2019-12-23 16:08:40 +01:00
TYPO AND LAYOUT ELEMENTS
2019-12-22 19:02:00 +01:00
----------------------------------------------------*/
2019-12-27 12:57:02 +01:00
.link:focus {
outline: none;
}
2019-12-23 19:44:46 +01:00
/* Break long word on mobile */
body {
overflow-wrap: break-word;
2019-12-27 19:58:53 +01:00
overscroll-behavior: none;
2019-12-23 19:44:46 +01:00
}
2019-12-23 11:46:19 +01:00
/* Custom Tachyons class */
2019-12-22 19:02:00 +01:00
.f25 {
font-size: 1.9rem;
}
span {
display: table;
}
2019-12-23 11:46:19 +01:00
/* Custom media query - medium small - neutralize span line braks */
@media only screen and (max-width: 34em) {
p span {
display: initial;
}
}
2019-12-22 19:02:00 +01:00
em {
background: linear-gradient(transparent 66%, #fde28c 66%);
font-style: normal;
}
2019-12-23 16:08:40 +01:00
hr {
margin-left: -1rem;
margin-right: -1rem;
}
2019-12-27 12:57:02 +01:00
2019-12-27 23:09:42 +01:00
2019-12-22 12:56:02 +01:00
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.nav-list {
2019-12-23 19:44:46 +01:00
margin: 0 0.7rem 0 0;
2019-12-22 12:56:02 +01:00
}
.nav-bar {
2019-12-23 07:23:47 +01:00
height: 4rem;
2019-12-22 12:56:02 +01:00
}
.icon {
position: absolute;
2019-12-23 19:44:46 +01:00
padding: 0.7rem 0 0 1.2rem;
2019-12-22 12:56:02 +01:00
float: left;
}
body.index .icon {
opacity: 0;
}
.nav-container {
margin: 0 auto;
}
nav {
float: right;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
float: left;
position: relative;
}
nav ul li a,
nav ul li a:visited {
display: block;
2019-12-23 19:44:46 +01:00
padding: 0 1.4rem;
2019-12-23 07:23:47 +01:00
line-height: 4rem;
2019-12-22 12:56:02 +01:00
text-decoration: none;
font-weight: 700;
2019-12-23 07:23:47 +01:00
background: #F7BF08;
color: #39352A;
2019-12-22 12:56:02 +01:00
}
nav ul li a:hover,
nav ul li a:visited:hover {
2019-12-23 07:23:47 +01:00
color: #39352A;
2019-12-22 12:56:02 +01:00
}
nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
2019-12-23 19:44:46 +01:00
padding-left: 0.4rem;
2019-12-22 12:56:02 +01:00
content: ' â–¾';
}
nav ul li ul li {
2019-12-23 19:44:46 +01:00
min-width: 10rem;
2019-12-22 12:56:02 +01:00
}
nav ul li ul li a {
2019-12-23 19:44:46 +01:00
padding: 1rem;
line-height: 1.5rem;
2019-12-22 12:56:02 +01:00
}
.nav-dropdown {
position: absolute;
display: none;
z-index: 1;
}
.nav-mobile {
display: none;
position: absolute;
top: 0;
right: 0;
2019-12-23 07:23:47 +01:00
background: #F7BF08;
height: 4rem;
width: 4rem;
2019-12-22 12:56:02 +01:00
}
2019-12-27 12:57:02 +01:00
/* Custom media query */
2019-12-23 19:44:46 +01:00
@media only screen and (max-width: 60rem) {
2019-12-22 12:56:02 +01:00
.nav-list {
2019-12-23 19:44:46 +01:00
margin: 0;
2019-12-22 12:56:02 +01:00
}
.nav-mobile {
display: block;
}
nav {
width: 100%;
2019-12-23 16:08:40 +01:00
padding: 0;
2019-12-23 07:23:47 +01:00
padding-top: 4rem;
2019-12-22 12:56:02 +01:00
}
nav ul {
display: none;
}
nav ul li {
float: none;
}
nav ul li a {
2019-12-23 19:44:46 +01:00
padding: 1rem;
line-height: 1;
padding-left: 20%;
2019-12-22 12:56:02 +01:00
}
nav ul li ul li a {
padding-left: 30%;
}
nav ul li:last-child a {
2019-12-23 19:44:46 +01:00
padding-bottom: 4rem;
2019-12-22 12:56:02 +01:00
}
nav ul li:last-child a {
box-shadow: 0px 7px 15px -6px rgba(57,53,42,0.2);
}
.nav-dropdown {
position: static;
}
}
/* Desktop Styles */
2019-12-23 19:44:46 +01:00
@media screen and (min-width: 60.1rem) {
2019-12-22 12:56:02 +01:00
.nav-list {
display: block !important;
}
}
#nav-toggle {
position: absolute;
2019-12-23 19:44:46 +01:00
left: 1rem;
top: 1rem;
2019-12-22 12:56:02 +01:00
cursor: pointer;
2019-12-23 19:44:46 +01:00
padding: 1rem 2rem 1rem 0;
2019-12-22 12:56:02 +01:00
}
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
cursor: pointer;
2019-12-23 19:44:46 +01:00
height: 0.1rem;
width: 1.6rem;
2019-12-23 07:23:47 +01:00
background: #39352A;
2019-12-22 12:56:02 +01:00
position: absolute;
display: block;
content: '';
/*
transition: all 300ms ease-in-out;
*/
}
#nav-toggle span:before {
2019-12-23 19:44:46 +01:00
top: -0.5rem;
2019-12-22 12:56:02 +01:00
}
#nav-toggle span:after {
2019-12-23 19:44:46 +01:00
bottom: -0.5rem;
2019-12-22 12:56:02 +01:00
}
#nav-toggle.active span {
background-color: transparent;
}
#nav-toggle.active span:before, #nav-toggle.active span:after {
top: 0;
}
#nav-toggle.active span:before {
transform: rotate(45deg);
}
#nav-toggle.active span:after {
transform: rotate(-45deg);
2019-12-22 19:02:00 +01:00
}
2019-12-23 16:08:40 +01:00
/* ---------------------------------------------------
IMAGES
----------------------------------------------------*/
/* Put article image outside of container margins */
.larger-image {
margin-top: -4rem;
margin-left: -1rem;
margin-right: -1rem;
}
/* Custom media query - extra small */
@media only screen and (min-width: 30em) {
.larger-image {
margin-top: -4rem;
margin-left: -4rem;
margin-right: -4rem;
}
}
2019-12-22 19:02:00 +01:00
/* ---------------------------------------------------
GRAPHICS
----------------------------------------------------*/
#bg-intro {
background: url(/theme/images/gfx-intro.svg) no-repeat center;
}
#bg-feature {
background: url(/theme/images/gfx-pattern-mint-bright.svg) center;
}
#bg-cta-top {
background: url(/theme/images/gfx-object-white.svg) center;
}
#bg-outro {
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
}
#bg-cta-bottom {
background: url(/theme/images/gfx-pattern-yellow-bright.svg) center;
}
2019-12-27 12:57:02 +01:00