home-assistant.github.io/sass/custom/_paulus.scss
2015-09-15 00:20:46 -07:00

257 lines
4.4 KiB
SCSS

@charset "UTF-8";
.hero {
background-color: #038FC7;
padding-bottom: 0;
.lead {
margin-bottom: 16px;
}
.hero-buttons a {
color: white;
text-transform: uppercase;
white-space: nowrap;
display: inline-block;
}
.front-install {
background-color: #333;
margin-bottom: 16px;
display: inline-block;
padding: 8px;
color: #DDD;
.sh {
color: #c82829;
}
}
}
.supported-brands {
text-align: center;
img {
border: none !important;
box-shadow: none !important;
max-height: 50px;
max-width: 140px;
margin: 10px;
vertical-align: middle;
}
}
.brand {
border: none !important;
box-shadow: none !important;
max-height: 50px;
max-width: 200px;
margin: 10px;
&.overview {
max-width: 100px;
}
}
// https://fortawesome.github.io/Font-Awesome/3.2.1/icons/
h1:hover a.title-link,
h2:hover a.title-link,
h3:hover a.title-link,
h4:hover a.title-link,
h5:hover a.title-link,
h6:hover a.title-link {
position: relative;
&::before {
position: absolute;
left: -50px;
padding-right: 40px;
font-family: "FontAwesome";
content: "\f0c1"
}
}
.ha-title {
white-space: nowrap;
img {
width: 40px;
vertical-align: middle;
}
}
.usp {
ul {
text-align: left;
margin-left: 27px;
margin-top: -18px;
}
.icon i {
border: none !important;
}
}
.hero-buttons a {
margin: 0 30px 10px 0;
&:last-child {
margin: 0;
}
}
article.post, article.page, article.listing {
img, table {
border-radius: 3px;
box-shadow: rgba(0,0,0,0.06) 0 0 10px;
}
img.no-shadow {
border: 0;
box-shadow: none;
}
& > table {
background-color: #F3FCF5;
}
p.img {
background-color: #FFF;
border-radius: 5px;
text-align: center;
padding-bottom: 3px;
font-size: .9rem;
box-shadow: rgba(0,0,0,0.06) 0 0 10px;
img {
display: block;
box-shadow: none;
margin: 0 auto;
}
}
li {
margin-bottom: 10px;
& > p {
margin-bottom: 0;
}
&:last-child {
margin-bottom: 0;
}
}
}
p.note {
position: relative;
background: #e7f2fa;
padding: 40px 12px 6px 12px;
box-shadow: rgba(0,0,0,0.06) 0 0 10px;
&::before {
font-family: "FontAwesome";
content: "\f05a" " Note " attr(data-title);
background-color: #6ab0de;
color: white;
font-weight: bold;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
padding: 6px 14px;
line-height: 1.5em;
position: absolute;
top: 0;
left: 0;
right: 0;
}
&.warning {
background-color: #F7F9E1;
&::before {
background-color: rgb(187, 185, 13);;
content: "\f071" " Warning " attr(data-title);
}
}
}
.install-instructions-container {
#normal-install, #raspberry-install, #docker-install, .install-instructions {
display: none;
}
label.menu-selector {
display: inline-block;
text-align: center;
padding: 20px;
white-space: nowrap;
border-bottom: 5px solid $grayLight;
transition: border-bottom-color .5s;
}
label.menu-selector + label.menu-selector {
margin-left: 10px;
}
#normal-install:checked ~ .menu-selector.normal,
#raspberry-install:checked ~ .menu-selector.raspberry,
#docker-install:checked ~ .menu-selector.docker
{
border-bottom-color: $blue;
}
#normal-install:checked ~ .install-instructions.normal,
#raspberry-install:checked ~ .install-instructions.raspberry,
#docker-install:checked ~ .install-instructions.docker
{
display: block;
}
.install-instructions {
margin-top: 30px;
}
}
.advanced-installs-container {
#upstart-install, #systemd-install, #osx-install, .advanced-installs {
display: none;
}
label.menu-selector {
display: inline-block;
text-align: center;
padding: 20px;
white-space: nowrap;
border-bottom: 5px solid $grayLight;
transition: border-bottom-color .5s;
}
label.menu-selector + label.menu-selector {
margin-left: 10px;
}
#upstart-install:checked ~ .menu-selector.upstart,
#systemd-install:checked ~ .menu-selector.systemd,
#osx-install:checked ~ .menu-selector.osx
{
border-bottom-color: $blue;
}
#upstart-install:checked ~ .advanced-installs.upstart,
#systemd-install:checked ~ .advanced-installs.systemd,
#osx-install:checked ~ .advanced-installs.osx
{
display: block;
}
.advanced-installs {
margin-top: 30px;
}
}