fediparty/themes/starter/source/assets/scss/partials/_layout.scss

431 lines
5.7 KiB
SCSS
Raw Normal View History

2018-03-12 19:31:14 +00:00
*,
*:after,
*:before {
box-sizing: border-box;
}
* {
padding: 0;
margin: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
html,
body {
width: 100%;
height: 100%;
}
html {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-text-size-adjust: 100%;
font-size: 100%;
}
body {
font-size: 1.05rem;
font-family: $font-primary, "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
line-height: 1.7;
overflow-x: hidden;
color: $black;
background-color: $black;
text-rendering: optimizeLegibility;
}
*::-moz-selection {
color: $black;
background: $golden;
}
*::selection {
color: $black;
background: $golden;
}
button::-moz-focus-inner {
border: 0;
}
img {
max-width: 100%;
}
a {
text-decoration: none;
color: $black;
border-bottom: 1px solid $black;
&:hover,
&:focus,
&:active {
color: $golden;
outline: none;
}
}
small {
font-size: .85rem;
}
code,
pre {
line-height: 1.5;
font-size: 95%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-secondary;
font-weight: normal;
letter-spacing: .1em;
}
h1 {
font-size: 2.5rem;
2018-03-12 19:31:14 +00:00
}
h3 {
font-size: 1.5rem;
}
ul > li {
list-style-type: none;
}
ol {
padding-left: 1em;
}
2018-05-28 00:05:57 +00:00
dfn {
font-style: inherit;
cursor: pointer;
2018-08-23 22:18:07 +00:00
border-bottom: 1px dashed $grey;
2018-05-28 00:05:57 +00:00
}
2018-03-12 19:31:14 +00:00
.f-icon {
fill: $white;
&:hover {
fill: $golden;
}
}
2018-03-27 00:50:09 +00:00
.btn-action {
max-width: 170px;
border: none;
2018-08-23 22:18:07 +00:00
margin: .5em 0;
2018-03-27 00:50:09 +00:00
background-color: $golden;
border-radius: 6px;
padding: 7px;
&:hover,
&:active,
&:focus {
background: $black;
}
}
2018-08-23 22:18:07 +00:00
.btn-action.centered {
margin: .5em auto;
}
2018-03-12 19:31:14 +00:00
.container,
.container-wrapper {
height: inherit;
width: inherit;
overflow: scroll;
}
.container {
position: absolute;
bottom: 0;
right: 0;
background-color: $white;
}
.container:before,
.container:after {
display: table;
content: " ";
}
.container:after {
clear: both;
}
.contents {
padding: 2em 15% 1.5em;
}
.contents img {
display: block;
margin: 0 auto;
}
2018-03-12 19:31:14 +00:00
.contents p:not(.u-nomargin) {
margin: 1em 0;
}
.contents .section {
display: flex;
margin: 1em 0;
}
.contents .section.u-nomargin {
margin: 0;
}
.contents .section.u-block {
display: block;
}
.section-wrapper {
display: flex;
flex-wrap: wrap;
}
.section-wrapper > .column {
flex: 50% 0 0;
}
.section-wrapper:last-child > .column .section {
margin: 0;
}
.section h4 {
text-transform: uppercase;
}
.section:not(.u-block) h4 {
2018-08-23 22:18:07 +00:00
margin-right: 1em;
2018-03-12 19:31:14 +00:00
width: 150px;
}
.section-title {
border-bottom: 1px solid $grey;
padding-bottom: 1em;
margin-bottom: 1em;
}
.section-title h2,
.section-title h4 {
text-transform: uppercase;
}
.section-title h2 {
display: inline;
font-size: 2rem;
}
.section-title h2,
.section-title > div {
vertical-align: middle;
}
.section-title h4 {
color: $grey;
}
.section-title > .icon-share {
width: 20px;
height: 20px;
fill: $golden;
vertical-align: sub;
margin-right: .4em;
}
.section-title .icon-logotype {
color: $white;
width: 22px;
margin: 0 auto;
}
.section-title > div {
border-radius: 50%;
width: 42px;
height: 42px;
display: inline-flex;
align-items: center;
margin-right: 1em;
}
2018-05-28 00:05:57 +00:00
.section-list li:last-of-type > span,
.article-list li:last-of-type > span {
2018-03-12 19:31:14 +00:00
display: none;
}
.article-list > h2,
.article-list > h4 {
margin: 1em 0;
}
2018-03-12 19:31:14 +00:00
.section-hero {
width: 70%;
margin: 0 auto;
}
.section-hero > h3 {
margin: .5em 0;
}
.section-hero > h3:first-child {
2018-08-23 22:18:07 +00:00
margin-top: .5em;
2018-03-12 19:31:14 +00:00
}
.section-hero > h3:last-child {
margin-bottom: 1.5em;
}
.section-hero span {
margin: 0 .5em;
display: inline-block;
}
.section-hero span:first-child {
text-transform: uppercase;
min-width: 183px;
}
.section-hero span:first-child,
.section-hero span:last-of-type,
.section-hero sup {
color: $grey;
}
.section-hero span:last-of-type {
margin-right: 0;
}
.section-hero sup {
font-size: .7rem;
}
.section.with-image {
text-align: center;
}
.section.with-image a {
display: inline-block;
margin: 1em .5em;
width: 60px;
height: 60px;
border: 2px solid $golden;
border-radius: 50%;
&:hover {
opacity: .7;
}
}
2018-08-23 22:18:07 +00:00
.article-list li:before,
.warning-list li:before {
2018-03-12 19:31:14 +00:00
content: "";
width: 7px;
margin-right: .4em;
margin-bottom: 3px;
height: 7px;
display: inline-block;
border-radius: 50%;
}
2018-08-23 22:18:07 +00:00
.article-list li:before {
background: $golden;
}
.warning-list li:before {
background: $coral;
}
2018-03-12 19:31:14 +00:00
.browserupgrade {
margin: .2em 0;
background: $grey;
color: $black;
padding: .2em 0;
}
.no-js {
position: absolute;
2018-03-21 03:03:12 +00:00
top: 6em;
2018-03-12 19:31:14 +00:00
left: 50%;
2018-03-21 02:27:07 +00:00
transform: translateX(-50%);
2018-03-12 19:31:14 +00:00
width: 70%;
2018-03-21 02:27:07 +00:00
background: $white;
2018-03-12 19:31:14 +00:00
color: $black;
padding: .4em 1em;
text-align: center;
2018-03-21 03:03:12 +00:00
z-index: $zIndex--5;
2018-03-12 19:31:14 +00:00
}
2018-06-12 12:52:48 +00:00
@media screen and (max-width: $mq-large) {
.contents.network {
padding: 2em 13% 1.5em;
}
}
2018-03-12 19:31:14 +00:00
@media screen and (max-width: $mq-medium) {
h1 {
font-size: 2rem;
}
2018-08-23 22:18:07 +00:00
.section-hero {
width: 90%;
}
2018-03-12 19:31:14 +00:00
.contents {
padding: 2em 10% 1.5em;
}
.section-wrapper > .column {
flex: 100% 0 0;
}
}
@media screen and (max-width: $mq-small) {
h1 {
font-size: 1.3rem;
line-height: 1.3;
}
2018-08-23 22:18:07 +00:00
h2,
.section-title h2 {
font-size: 1.2rem;
}
h3 {
font-size: 1.1rem;
2018-03-12 19:31:14 +00:00
}
h4 {
padding: 0 3em;
line-height: 1.3;
2018-03-12 19:31:14 +00:00
}
.contents {
padding: 2em 8% 1.5em;
}
.contents .section {
flex-direction: column;
}
.contents h4 {
padding: 0;
}
.section-hero {
width: 100%;
}
.section-hero span:last-child {
display: none;
}
}
@media screen and (max-width: $mq-xsmall) {
body { font-size: 90%; }
2018-03-21 02:27:07 +00:00
.no-js {left: 0; transform: translate(0, 0); width: 100%; padding: .6em 14% .6em 2em;}
2018-03-12 19:31:14 +00:00
}