Edit general style
This commit is contained in:
parent
e5f5b543c6
commit
35351bc709
3 changed files with 35 additions and 45 deletions
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@
|
|||
body {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--text-font-size);
|
||||
line-height: normal;
|
||||
line-height: var(--text-line-height);
|
||||
color: var(--black);
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
@ -20,17 +20,20 @@ body {
|
|||
h1 {
|
||||
font-family: var(--title-font-family);
|
||||
font-size: var(--h1-font-size);
|
||||
line-height: var(--h1-line-height);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h2-font-size);
|
||||
line-height: var(--h2-line-height);
|
||||
margin: 0 0 4rem 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-family: var(--text-font-family);
|
||||
font-size: var(--h3-font-size);
|
||||
line-height: var(--h3-line-height);
|
||||
margin: 2rem 0 1rem 0;
|
||||
}
|
||||
|
||||
|
@ -84,46 +87,34 @@ body {
|
|||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
max-width: calc(15vw + var(--header-bar-horizontal-padding) * 2);
|
||||
padding: var(--header-bar-vertical-padding) var(--header-bar-horizontal-padding);
|
||||
overflow-y: auto;
|
||||
background-color: transparent;
|
||||
transition:
|
||||
max-width 400ms ease-in-out,
|
||||
background-color 400ms ease-in-out;
|
||||
transition: background-color 400ms ease-in-out;
|
||||
|
||||
.header-bar__nav {
|
||||
|
||||
.header-bar__nav-item {
|
||||
|
||||
+ .header-bar__nav-item {
|
||||
margin-top: 0.5rem;
|
||||
margin: 0.75rem 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
width: 15vw;
|
||||
overflow-x: hidden;
|
||||
color: var(--transparent-black);
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
transition:
|
||||
width 400ms ease-in-out,
|
||||
color 400ms ease-in-out;
|
||||
transition: color 400ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.header-bar__social {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 2rem;
|
||||
margin: 1rem 0 0 0;
|
||||
|
||||
a {
|
||||
width: var(--icon-size);
|
||||
height: var(--icon-size);
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -143,12 +134,10 @@ body {
|
|||
|
||||
&:hover {
|
||||
background-color: var(--transparent-white);
|
||||
max-width: 100vw;
|
||||
|
||||
.header-bar__nav {
|
||||
|
||||
a {
|
||||
/*width: 100%;*/
|
||||
color: var(--black);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,28 +6,33 @@
|
|||
|
||||
// Fonts
|
||||
|
||||
--text-font-family: 'Open Sans', Verdana, sans-serif;
|
||||
--title-font-family: 'Open Sans', Verdana, sans-serif;
|
||||
--text-font-family: Helvetica, sans-serif;
|
||||
--title-font-family: Helvetica, sans-serif;
|
||||
--regular-font-weight: 400;
|
||||
--medium-font-weight: 500;
|
||||
--semi-bold-font-weight: 600;
|
||||
--bold-font-weight: 700;
|
||||
--text-font-size: 0.8rem;
|
||||
--text-line-height: calc(var(--text-font-size) * 1.2);
|
||||
--footnote-font-size: 0.6rem;
|
||||
--footnote-line-height: calc(var(--footnote-font-size) * 1.2);
|
||||
--h1-font-size: 1.6rem;
|
||||
--h1-line-height: calc(var(--h1-font-size) * 1.2);
|
||||
--h2-font-size: 1.2rem;
|
||||
--h2-line-height: calc(var(--h2-font-size) * 1.2);
|
||||
--h3-font-size: 1rem;
|
||||
--h3-line-height: calc(var(--h3-font-size) * 1.2);
|
||||
|
||||
// Dimensions
|
||||
|
||||
--icon-size: 2rem;
|
||||
--header-bar-vertical-padding: 2rem;
|
||||
--header-bar-vertical-padding: 1rem;
|
||||
--header-bar-horizontal-padding: 1rem;
|
||||
|
||||
// Colors
|
||||
|
||||
--black: #000;
|
||||
--transparent-black: rgba(0, 0, 0, 0.6);
|
||||
--transparent-black: rgba(0, 0, 0, 0.4);
|
||||
--white: #fff;
|
||||
--transparent-white: rgba(255, 255, 255, 0.9);
|
||||
--feldgrau: #4B6259;
|
||||
|
@ -53,7 +58,5 @@ $desktop-media-query: 62rem;
|
|||
// Dimensions
|
||||
|
||||
--icon-size: 2.5rem;
|
||||
--header-bar-vertical-padding: 4rem;
|
||||
--header-bar-horizontal-padding: 2rem;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue