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

521 lines
7.1 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%;
}
html {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-text-size-adjust: 100%;
2018-11-18 17:26:14 +00:00
height: 100%;
2018-03-12 19:31:14 +00:00
font-size: 100%;
}
body {
font-size: 1.05rem;
font-family: $font-primary;
line-height: 1.6;
2018-03-12 19:31:14 +00:00
overflow-x: hidden;
color: $black;
background-color: $black;
text-rendering: optimizeLegibility;
}
2018-11-18 17:26:14 +00:00
body.main {
height: 100%;
}
2018-03-12 19:31:14 +00:00
*::-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;
2019-07-15 21:49:09 +00:00
transition: all .15s ease;
background-repeat: repeat-x;
background-size: 0 0;
background-position: 0 65%;
2018-03-12 19:31:14 +00:00
&:hover,
&:focus,
&:active {
color: $golden;
outline: none;
2019-07-15 21:49:09 +00:00
border-bottom: none;
2020-02-27 01:11:59 +00:00
background-image: linear-gradient($black, $black);
2019-07-15 21:49:09 +00:00
background-size: 1.5em 1.5em;
2018-03-12 19:31:14 +00:00
}
}
2018-11-16 22:44:50 +00:00
a.dark-ui {
color: $white;
border-bottom: 1px solid $white;
&:hover,
&:focus,
&:active {
outline: none;
2019-07-15 21:49:09 +00:00
border-bottom: none;
2018-11-16 22:44:50 +00:00
}
}
2018-03-12 19:31:14 +00:00
small {
font-size: .85rem;
}
2018-11-15 23:09:59 +00:00
pre {
margin-left: 1.3em;
}
2018-03-12 19:31:14 +00:00
code,
pre {
line-height: 1.5;
font-size: 95%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-secondary;
font-weight: normal;
letter-spacing: .07em;
2018-03-12 19:31:14 +00:00
}
h1 {
font-size: 2.5rem;
2018-03-12 19:31:14 +00:00
}
h3 {
font-size: 1.5rem;
}
ul > li {
list-style-type: none;
2018-11-15 22:06:54 +00:00
padding: .2em 0;
2018-03-12 19:31:14 +00:00
}
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
}
2020-02-25 18:45:27 +00:00
input[type="checkbox"],
input[type="radio"] {
cursor: pointer;
&:focus {
outline: none;
}
}
sup {
font-size: .7rem;
margin: 0 .2em;
}
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;
2019-07-15 21:49:09 +00:00
background: $golden;
2018-03-27 00:50:09 +00:00
border-radius: 6px;
padding: 7px;
&:hover,
&:active,
&:focus {
background: $black;
2019-11-17 16:26:32 +00:00
box-shadow: 0 2px 4px 0 $grey;
2018-03-27 00:50:09 +00:00
}
}
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;
}
.container {
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;
flex-wrap: wrap;
2018-03-12 19:31:14 +00:00
margin: 1em 0;
}
.contents .section.u-nomargin {
margin: 0;
}
.contents .section.u-block {
display: block;
}
.section-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2018-03-12 19:31:14 +00:00
}
.section-wrapper > .column {
flex: 48% 0 0;
2018-03-12 19:31:14 +00:00
}
.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 > h3,
.article-list > h4 {
margin: 1em 0;
}
2018-03-12 19:31:14 +00:00
.section-hero {
2020-11-25 15:07:06 +00:00
width: 65%;
2018-03-12 19:31:14 +00:00
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,
2018-10-21 16:15:12 +00:00
.section-hero span:last-of-type {
2018-03-12 19:31:14 +00:00
color: $grey;
}
2018-10-21 16:15:12 +00:00
.section-hero sup > a {
border-bottom: none;
}
2018-03-12 19:31:14 +00:00
.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%;
2022-04-12 15:54:12 +00:00
&:hover,
&:focus,
&:active {
border: 2px solid $coral;
box-shadow: 0 1px 8px 0 $coral;
background-image: none;
2018-03-12 19:31:14 +00:00
}
}
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;
2018-12-31 18:45:18 +00:00
margin: 0 .4em 3px;
2018-03-12 19:31:14 +00:00
height: 7px;
display: inline-block;
border-radius: 50%;
background: $golden;
2018-03-12 19:31:14 +00:00
}
svg.f-tag {
position: absolute;
width: 20px;
height: 20px;
right: .5em;
top: .5em;
fill: $golden;
}
$list: (diaspora, $diaspora),
(friendica, $friendica),
(hubzilla, $hubzilla),
(gnusocial, $gnusocial),
(mastodon, $mastodon),
(socialhome, $socialhome),
(pleroma, $pleroma),
(ganggo, $ganggo),
(aardwolf, $aardwolf),
(postactiv, $postactiv),
(peertube, $peertube),
(misskey, $misskey),
(osada, $osada),
(pixelfed, $pixelfed),
(funkwhale, $funkwhale);
@each $tag, $color in $list {
svg.#{$tag} {
fill: $color;
}
}
@each $network, $color in $list {
.article-list > li.#{$network}:before {
background: $color;
}
2018-08-23 22:18:07 +00:00
}
.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;
top: .3em;
2018-03-12 19:31:14 +00:00
left: 50%;
2018-03-21 02:27:07 +00:00
transform: translateX(-50%);
background: $white;
2018-03-12 19:31:14 +00:00
color: $black;
padding: .4em 1.3em;
2018-03-12 19:31:14 +00:00
text-align: center;
z-index: $zIndex--3;
2018-03-12 19:31:14 +00:00
}
2018-06-12 12:52:48 +00:00
@media screen and (max-width: $mq-large) {
.section-hero {
2020-11-25 15:07:06 +00:00
width: 75%;
}
2018-06-12 12:52:48 +00:00
.contents.network {
padding: 2em 13% 1.5em;
}
2019-12-04 12:12:15 +00:00
.contents.misc {
padding: 2em 10% 1.5em;
2019-12-04 12:12:15 +00:00
}
2018-06-12 12:52:48 +00:00
}
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;
}
.no-js {
width: 100%;
line-height: 1.3;
}
2018-03-12 19:31:14 +00:00
}
@media screen and (max-width: $mq-xsmall) {
body {
font-size: 90%;
}
2018-03-12 19:31:14 +00:00
.no-js {
display: none;
}
2018-03-12 19:31:14 +00:00
}