angular-cn/public/resources/css/module/_hero.scss

147 lines
3.1 KiB
SCSS
Raw Normal View History

$hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
2015-02-25 10:15:46 -05:00
.hero {
position: relative;
padding: $hero-padding;
height: $unit * 10;
.hero-title-with-badges {
margin-bottom: $unit;
}
.status-circle {
margin-right: 4px;
border-radius: 50%;
width: 10px;
height: 10px;
display: inline-block;
}
// status-*, will be matched by the results in addJadeDataDocsProcessor.js, and reflect in _hero.jade
.status-deprecated {
background: #E53935;
}
.status-stable {
background: #558b2f;
}
.status-experimental {
background: #9575cd;
}
2015-02-25 10:15:46 -05:00
2015-03-04 10:13:59 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
height: auto;
2015-03-05 00:54:44 -05:00
padding-top: 40px;
.badges {
margin-top: 48px;
}
2015-03-04 10:13:59 -05:00
}
2015-02-25 10:15:46 -05:00
&.is-large {
2015-02-26 09:45:32 -05:00
height: 478px;
padding-top: ($unit * 2);
2015-02-25 10:15:46 -05:00
text-align: center;
2015-03-04 10:13:59 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
height: auto;
}
2015-02-25 10:15:46 -05:00
}
.badges {
padding-left: 8px;
.status-badge {
color: #0143A3;
margin-left: 4px;
padding-left: 8px;
padding-right: 8px;
background-color: rgba(255,255,255,0.5);
border-radius: 2px;
line-height: 20px;
display: inline-block;
}
}
button {
// Override md-button from angular material to align language select with hero title.
margin: 0 !important;
}
2015-02-26 09:45:32 -05:00
.hero-title {
display: inline; // title will be inline with badges
2015-02-26 09:45:32 -05:00
text-transform: uppercase;
margin: 0;
2015-02-26 09:45:32 -05:00
opacity: .87;
2015-03-04 10:13:59 -05:00
2015-05-01 09:04:23 -04:00
&.is-standard-case {
text-transform: none;
}
2015-03-04 10:13:59 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
margin: ($unit * 6) 0px 0px 0px;
}
2015-02-26 09:45:32 -05:00
}
.hero-subtitle {
margin: 0;
opacity: 1;
2015-03-04 10:13:59 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
margin: 0px;
}
2015-02-26 09:45:32 -05:00
}
2015-02-25 10:15:46 -05:00
// LARGE SHEILD LOGO
.hero-logo {
position: relative;
2015-02-25 10:15:46 -05:00
padding-top: 224px;
opacity: 1;
width: $unit * 70;
2015-02-26 09:45:32 -05:00
margin: ($unit * 3) auto ($unit * 5) auto;
font-weight: 400;
2015-03-04 10:13:59 -05:00
&:after {
content: '';
background: url('/resources/images/logos/angular2/shield-with-beta.png') top center no-repeat;
background-size: contain;
position: absolute;
left: 0;
top: 0;
right: 0;
height: 224px;
2015-03-05 08:57:37 -05:00
}
2015-03-04 10:13:59 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
width: auto;
font-size: 20px;
line-height: 28px;
margin: ($unit * 2) auto;
padding-top: 208px;
}
2015-02-25 10:15:46 -05:00
}
2015-02-26 09:45:32 -05:00
// CTA BUTTONS
.button {
margin: 0px $unit;
2015-03-05 00:39:57 -05:00
@media handheld and (max-width: $phone-breakpoint),
screen and (max-device-width: $phone-breakpoint),
screen and (max-width: $tablet-breakpoint) {
margin: ($unit * 2) 0px;
display: block;
}
2015-02-26 09:45:32 -05:00
}
}