2
0
mirror of https://github.com/offen/website.git synced 2024-11-23 09:20:33 +01:00
website/homepage/theme/static/css/fix.css

386 lines
7.1 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
}
2020-01-31 21:58:30 +01:00
.cclr-yellow-bright {
2019-12-22 12:56:02 +01:00
background-color: #fde28c;
2019-12-27 23:09:42 +01:00
}
2020-01-31 21:58:30 +01:00
.fnt-cclr-yellow-bright {
color: #fde28c;
}
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
}
2020-01-31 21:58:30 +01:00
.fnt-cclr-mint-bright {
color: #E2F6F2;
}
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 */
2020-02-23 23:21:26 +01:00
.w55-container,
2019-12-27 23:09:42 +01:00
.w55 {
2020-02-25 11:08:23 +01:00
width: 20rem;
}
.w56 {
2020-02-23 23:21:26 +01:00
width: 20rem;
2020-02-25 11:08:23 +01:00
height: 480px;
2019-12-22 19:02:00 +01:00
}
2019-12-23 15:16:20 +01:00
/* Custom media query - extra small */
2020-02-23 23:21:26 +01:00
@media only screen and (max-width: 40em) {
.w55-container {
2019-12-23 15:16:20 +01:00
width: 100%;
}
}
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;
}
2020-02-25 19:41:09 +01:00
.em-mint {
2020-03-03 20:46:56 +01:00
background: linear-gradient(transparent 66%, #E5FDF8 66%);
2020-02-25 19:41:09 +01:00
font-style: normal;
}
2019-12-23 16:08:40 +01:00
hr {
margin-left: -1rem;
margin-right: -1rem;
}
2020-01-28 14:38:52 +01:00
.dim:focus {
transition: none;
opacity: 1;
}
ul {
padding-inline-start: 2rem;
}
@media only screen and (max-width: 30em) {
ul {
padding-inline-start: 1rem;
}
}
2020-01-31 21:58:30 +01:00
.tracked-min {
letter-spacing: .03em;
}
2020-02-01 21:47:08 +01:00
.intro-margin-a {
margin-top: 0.3rem;
}
.intro-margin-b {
margin-top: 0.7rem;
}
2019-12-27 23:09:42 +01:00
2019-12-22 12:56:02 +01:00
/* ---------------------------------------------------
MENU
----------------------------------------------------*/
.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
}
2020-02-01 23:03:19 +01:00
nav ul li:last-child a {
padding-right: 2rem;
background: #39352A;
color: #fff;
}
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
}
2020-02-01 23:03:19 +01:00
nav ul li:last-child a:hover,
nav ul li:last-child a:visited:hover {
color: #fff;
}
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;
2020-02-01 23:03:19 +01:00
padding-left: 4.2rem;
2019-12-22 12:56:02 +01:00
}
nav ul li ul li a {
padding-left: 30%;
}
nav ul li:last-child a {
2020-02-01 23:03:19 +01:00
padding-bottom: 1.2rem;
margin: 0;
box-shadow: 0px 7px 15px -6px rgba(57,53,42,0.2);
2019-12-22 12:56:02 +01:00
}
2020-02-01 23:03:19 +01:00
nav ul li:first-child a {
padding-top: 0.2rem;
}
2019-12-22 12:56:02 +01:00
.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;
}
2020-01-12 21:29:43 +01:00
.smaller-image {
width: 200px;
height: 109px;
2020-01-14 20:24:30 +01:00
margin-bottom: -2rem;
2020-01-12 21:29:43 +01:00
}
2020-04-13 08:28:56 +02:00
.screencast {
border: 1px solid #DDDDDD;
}
2019-12-23 16:08:40 +01:00
/* Custom media query - extra small */
@media only screen and (min-width: 30em) {
.larger-image {
margin-top: -4rem;
margin-left: -4rem;
margin-right: -4rem;
}
2020-01-12 21:29:43 +01:00
.smaller-image {
width: 350px;
height: 190px;
}
2019-12-23 16:08:40 +01:00
}
2019-12-22 19:02:00 +01:00
/* ---------------------------------------------------
GRAPHICS
----------------------------------------------------*/
#bg-intro {
2020-02-01 21:47:08 +01:00
background: url(/theme/images/gfx-intro.svg);
background-repeat: no-repeat;
background-attachment: scroll;
2020-02-25 19:41:09 +01:00
background-position: 200px 80px;
2020-02-01 21:47:08 +01:00
}
@media only screen and (min-width: 30.1em) and (max-width: 60em) {
#bg-intro {
2020-02-25 19:41:09 +01:00
background-position: calc(20% + 120px) 80px;
2020-02-01 21:47:08 +01:00
}
2019-12-22 19:02:00 +01:00
}
2020-02-01 21:47:08 +01:00
@media only screen and (max-width: 30em) {
#bg-intro {
background-position: 10px 60px;
}
}
2020-02-24 13:38:30 +01:00
/* --------------------------------------------- */
2020-02-25 11:08:23 +01:00
#bg-feature-1 {
background: url(/theme/images/gfx-feature-1.png) center;
background-repeat: no-repeat;
2020-02-26 10:55:17 +01:00
background-size: 640px 480px;
2020-02-25 11:08:23 +01:00
}
#bg-feature-2 {
background: url(/theme/images/gfx-feature-2.png) center;
2020-02-23 23:21:26 +01:00
background-repeat: no-repeat;
2020-02-26 10:55:17 +01:00
background-size: 640px 480px;
2020-02-23 23:21:26 +01:00
}
2020-02-25 13:56:21 +01:00
#bg-feature-3 {
background: url(/theme/images/gfx-feature-3.png) center;
background-repeat: no-repeat;
2020-02-26 10:55:17 +01:00
background-size: 640px 480px;
2020-02-25 13:56:21 +01:00
}
2020-02-24 13:38:30 +01:00
/* --------------------------------------------- */
2019-12-22 19:02:00 +01:00
#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;
}