react-toolbox/docs/app/components/layout/home/style.scss

177 lines
3.5 KiB
SCSS
Raw Normal View History

@import "../../globals";
@import "./config";
$twitter-color: #55acee;
$content-offset: 4.8 * $unit;
2015-11-01 18:57:49 +03:00
$content-width: 740px;
2015-11-01 19:06:17 +03:00
.header {
padding: 0 calc((100% - #{$hero-max-width}) / 2);
color: $hero-text-color;
text-align: center;
background: linear-gradient(45deg, $hero-gradient-dark 0%, $hero-gradient-light 100%);
background-position: top right;
background-size: 120%;
2015-11-01 19:06:17 +03:00
.logo {
width: $hero-logo-size;
height: $hero-logo-size;
2015-11-02 13:32:39 +03:00
margin-top: $hero-item-spacing + $github-buttons-height;
2015-11-01 19:06:17 +03:00
opacity: $hero-logo-opacity;
fill: $hero-text-color;
}
.title {
@include typo-display-3;
margin-top: $hero-item-spacing;
}
.subtitle {
@include typo-headline;
margin-top: 10px;
font-weight: 400;
line-height: 1.2;
opacity: $hero-text-secondary-opacity;
}
2015-11-02 12:09:42 +03:00
.github {
position: fixed;
2015-11-02 13:32:39 +03:00
top: 2 * $unit;
left: 2 * $unit;
z-index: $z-index-higher;
2015-11-02 12:09:42 +03:00
text-align: center;
iframe {
2015-11-02 13:32:39 +03:00
display: inline-block;
width: 10 * $unit;
2015-11-02 12:09:42 +03:00
height: 2 * $unit;
2015-11-03 12:53:48 +03:00
vertical-align: top;
2015-11-02 12:09:42 +03:00
}
}
2015-11-01 19:06:17 +03:00
.navigation > ul {
margin-top: $hero-item-spacing;
list-style: none;
li {
position: relative;
display: inline-block;
2015-11-01 19:06:17 +03:00
&:not(:last-child) > a:after {
display: inline-block;
margin: 0 10px;
font-size: 50px;
vertical-align: middle;
content: "·";
}
> a {
@include typo-title;
position: relative;
display: inline-block;
font-weight: 400;
line-height: 1.2;
color: $hero-text-color;
vertical-align: middle;
opacity: $hero-text-secondary-opacity;
&:hover {
opacity: 1;
}
}
}
}
}
.content {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
2015-11-02 13:32:39 +03:00
padding: $content-offset;
2015-11-01 18:57:49 +03:00
background-color: $color-content;
2015-11-02 10:58:27 +03:00
&:nth-child(3) {
background-color: darken($color-content, 5%);
}
2015-11-02 00:36:20 +03:00
> .authors {
2015-11-01 19:06:17 +03:00
display: flex;
2015-11-02 00:36:20 +03:00
align-items: flex-start;
2015-11-01 19:06:17 +03:00
justify-content: center;
> * {
max-width: 32 * $unit;
2015-11-02 00:36:20 +03:00
flex: 1 auto;
2015-11-01 19:06:17 +03:00
margin: 0 $unit;
}
.twitter {
color: $twitter-color;
}
2015-11-01 19:06:17 +03:00
}
2015-11-02 00:36:20 +03:00
> p {
max-width: $content-width;
margin-bottom: $content-offset;
font-size: 1.8 * $unit;
line-height: 1.5;
text-align: justify;
opacity: .6;
}
> h2 {
margin-bottom: $content-offset;
font-size: 2 * $unit;
color: $hero-gradient-dark;
}
2015-11-02 10:58:27 +03:00
> h3 {
margin-bottom: $content-offset / 2;
font-size: 2.4 * $unit;
2015-11-02 13:32:39 +03:00
color: $color-primary-dark;
2015-11-02 10:58:27 +03:00
}
}
2015-11-01 19:06:17 +03:00
.footer {
2015-11-02 00:36:20 +03:00
padding: 2 * $unit 0;
color: $color-content;
2015-11-01 19:06:17 +03:00
text-align: center;
2015-11-02 00:36:20 +03:00
background-color: $color-text;
2015-11-02 10:58:27 +03:00
.love {
font-size: $font-size-normal;
2015-11-02 13:32:39 +03:00
color: $color-accent;
2015-11-02 10:58:27 +03:00
}
small {
2015-11-02 13:32:39 +03:00
color: rgba(255,255,255,.5);
2015-11-02 10:58:27 +03:00
}
}
2015-11-02 10:58:27 +03:00
.donate {
display: inline-block;
overflow: hidden;
font-size: 1.1 * $unit;
color: #fff;
vertical-align: top;
border-radius: 3px;
.legend {
display: inline-block;
padding: 0 .5 * $unit;
line-height: 2 * $unit;
background-color: #555;
}
.paypal {
display: inline-block;
padding: 0 .5 * $unit;
line-height: 2 * $unit;
background-color: #007ec6;
}
}
2015-11-02 10:58:27 +03:00
@media all and (max-width: 768px) {
.header {
.github {
position: absolute;
}
}
2015-11-02 10:58:27 +03:00
.content {
2015-11-02 13:32:39 +03:00
padding: $content-offset / 2;
2015-11-02 10:58:27 +03:00
> .authors {
flex-direction: column;
> * {
margin: $unit 0;
}
}
> p {
2015-11-02 13:32:39 +03:00
max-width: 100%;
2015-11-02 10:58:27 +03:00
}
}
2015-11-02 13:32:39 +03:00
2015-11-02 10:58:27 +03:00
.second-content {
background-color: transparent;
}
}