0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/assets/sass/layouts/about.scss

271 lines
5.2 KiB
SCSS
Raw Normal View History

// ------------------------------------------------------------
2014-07-30 02:51:37 -05:00
// About Ghost
// Slug: /ghost/settings/about
//
// Styles for the About Ghost page, detailing environment & top
// contributors.
//
// * Wrapper
// * Logo & Version
// * Environment & Get Involved
// * Contributors
// * Credits & Copyright
// ------------------------------------------------------------
2014-07-30 02:51:37 -05:00
//
// Wrapper
// --------------------------------------------------
.settings-about {
h1 {
letter-spacing: 0;
}
}
//
// Logo & Version
// --------------------------------------------------
.about-ghost-intro {
@media (max-width: 550px) {
padding-top: 40px;
}
h1 {
margin-top: -6px;
margin-bottom: -21px;
font-feature-settings: normal;
}
2014-07-30 02:51:37 -05:00
.ghost_logo {
position: relative;
left: 3px;
@include icon('ghost', 1.7rem, $midgrey) {
2014-07-30 02:51:37 -05:00
position: relative;
top: -6px;
};
@include icon-after('ghost-logo', 3.2rem, $darkgrey) {
position: relative;
left: -5px;
};
2014-07-30 02:51:37 -05:00
}
.version {
font-weight: 300;
font-size: 1.8rem;
position: relative;
top: -3px;
left: -9px;
color: $blue;
}
h1 + p {
margin-top: 1px;
2014-07-30 02:51:37 -05:00
color: $midgrey;
}
}//.about-ghost-intro
2014-07-30 02:51:37 -05:00
// Special case to hide the desktop page header, because
// in this instance the Ghost logo replaces it.
@media (min-width: 901px) {
.settings-view-about .settings-view-header {
display: none;
}
}
2014-07-30 02:51:37 -05:00
//
// Environment & Get Involved
// --------------------------------------------------
2014-07-30 02:51:37 -05:00
.about-environment-help {
margin-top: 35px;
}
2014-07-30 02:51:37 -05:00
.about-environment {
dl {
@include clearfix;
color: $midgrey;
margin: 2px 0 0 0;
line-height: 1.6;
}
dt, dd {
width: auto;
float: left;
display: inline-block;
2014-07-30 02:51:37 -05:00
margin: 0;
font-feature-settings: normal;
}
dt {
margin-right: 5px;
}
.about-environment-detail {
text-transform: capitalize;
2014-07-30 02:51:37 -05:00
}
}
2014-07-30 02:51:37 -05:00
.about-help {
padding-top: 8px;
2014-07-30 02:51:37 -05:00
@media (max-width: 500px) {
padding-top: 16px;
}
.btn {
2014-07-30 02:51:37 -05:00
width: 100%;
display: block;
2014-09-23 05:04:37 -05:00
font-size: 1rem;
padding-top: 9px;
padding-bottom: 9px;
2014-07-30 02:51:37 -05:00
min-height: 32px;
background: #A1ADB3;
color: #fff;
&:hover {
background: darken(#A1ADB3, 10%);
}
2014-07-30 02:51:37 -05:00
&:nth-child(1) {
margin-bottom: 11px;
}
}
}//.about-help
2014-07-30 02:51:37 -05:00
@media (min-width: 501px) {
.about-environment-help {
max-width: 430px;
}
2014-07-30 02:51:37 -05:00
.about-environment {
float: left;
width: calc(100% - 190px);
2014-07-30 02:51:37 -05:00
}
2014-07-30 02:51:37 -05:00
.about-help {
float: right;
width: 170px;
2014-07-30 02:51:37 -05:00
}
}
2014-07-30 02:51:37 -05:00
//
// Contributors
// --------------------------------------------------
.top-contributors {
padding-left: 0;
max-width: 660px;
2014-07-30 02:51:37 -05:00
li {
float: left;
list-style: none;
width: 10%;
2014-07-30 02:51:37 -05:00
a {
display: block;
position: relative;
2014-07-30 02:51:37 -05:00
@media (min-width: 601px) {
margin-right: 9px;
margin-bottom: 9px;
}
@media (max-width: 600px) {
margin-right: 6px;
margin-bottom: 6px;
}
&:before {
opacity: 0;
content: attr(title);
position: absolute;
top: -27px;
left: 50%;
transform: translateX(-50%);
background: $darkgrey;
color: #fff;
padding: 2px 6px 3px;
2014-10-26 12:07:35 -05:00
border-radius: $border-radius;
transition: opacity 0.15s ease-in-out;
font-size: 1rem;
pointer-events: none;
}
&:after {
opacity: 0;
content: '';
position: absolute;
top: -6px;
left: 50%;
transform: translateX(-50%);
transition: opacity 0.15s ease-in-out;
@include triangle(8px, $darkgrey, "down");
}
&:hover {
&:before,
&:after {
opacity: 1;
}
}
img {
width: 100%;
display: block;
border-radius: 100%;
}
}//a
}//li
}//.top-contributors
2014-07-30 02:51:37 -05:00
//
// Credits & Copyright
// --------------------------------------------------
.about-credits {
margin-top: 45px;
2014-07-30 02:51:37 -05:00
h1 {
font-size: 2.4rem;
margin-bottom: 24px;
2014-07-30 02:51:37 -05:00
}
}
.about-contributors-info {
margin-top: -12px;
margin-bottom: 22px;
font-size: 1.6rem;
2014-07-30 02:51:37 -05:00
max-width: 620px;
}
.about-get-involved {
font-size: 1.2rem;
width: 100%;
display: inline-block;
max-width: 290px;
text-transform: uppercase;
text-align: center;
2014-07-30 02:51:37 -05:00
}
.about-copyright {
margin-top: 62px;
2014-07-30 02:51:37 -05:00
a {
&:link,
&:visited {
color: inherit;
}
2014-07-30 02:51:37 -05:00
&:hover,
&:focus,
&:active {
text-decoration: none;
color: $blue;
}
}
}//.about-copyright