Complete refactorization for css/grayscale.scss

I copied the IronSummitMedia/startbootstrap-grayscale/blob/gh-pages/less/grayscale.less file and I applied the changes for { Personal } style.

I remove unused CSS Grayscale definitions:
 .download-section
 ul.banner-social-buttons

Fixed bugs of the original Grayscale style

Close PanosSakkos/personal-jekyll-theme#13
This commit is contained in:
Jorge Arias 2015-11-10 21:08:28 -03:00
parent e0b8ccb1c7
commit 795201bc0f

243
css/grayscale.scss Executable file → Normal file
View file

@ -4,17 +4,11 @@
@import "variables";
@import "mixins";
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
width: 100%;
height: 100%;
font-family: "Lora","Helvetica Neue",Helvetica,Arial,sans-serif;
color: $light;
color: white;
background-color: $dark;
}
@ -31,7 +25,7 @@ h5,
h6 {
margin: 0 0 35px;
text-transform: uppercase;
font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: "Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 700;
letter-spacing: 1px;
}
@ -40,10 +34,7 @@ p {
margin: 0 0 25px;
font-size: 18px;
line-height: 1.5;
}
@media(min-width:767px) {
p {
@media(min-width:768px) {
margin: 0 0 35px;
font-size: 20px;
line-height: 1.6;
@ -57,8 +48,8 @@ a {
transition: all .2s ease-in-out;
&:hover,
&:focus {
text-decoration: none;
color: darken($primary, 20%);
text-decoration: none;
color: darken($primary,20%);
}
}
@ -66,20 +57,11 @@ a {
font-weight: 400;
}
ul,
ol {
text-align: center;
margin: 0 0 35px;
font-size: 20px;
line-height: 1.5;
list-style-position: inside;
}
.navbar-custom {
margin-bottom: 0;
border-bottom: 1px solid rgba($light, 0.3);
text-transform: uppercase;
font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: "Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif;
background-color: $dark;
/* Fix height limit and scroll for small screen and many items menu */
@ -88,48 +70,51 @@ ol {
.navbar-brand {
font-weight: 700;
&:focus {
outline: none;
}
&:focus {
outline: none;
}
.navbar-toggle {
padding: 4px 6px;
font-size: 16px;
color: $light;
&:focus,
&:active {
outline: none;
}
color: $light;
&:focus,
&:active {
outline: none;
}
}
}
a {
color: $light;
}
ul {
font-size: 14px;
color: white;
}
.nav {
li {
&.active {
outline: nonte;
background-color: rgba($light, 0.3);
}
a {
-webkit-transition: background .3s ease-in-out;
-moz-transition: background .3s ease-in-out;
transition: background .3s ease-in-out;
&:hover,
&:hover {
color: rgba($light, 0.8);
outline: none;
background-color: rgba($light, 0.3);
}
&:focus,
&.active {
&:active {
outline: none;
background-color: rgba($light, 0.3);
}
}
&.active {
outline: none;
a {
background-color: rgba($light, 0.3);
&:hover {
color: $light;
}
}
}
}
}
}
@media(min-width:767px) {
.navbar {
@media(min-width:768px) {
padding: 20px 0;
border-bottom: none;
letter-spacing: 1px;
@ -137,15 +122,11 @@ ol {
-webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
-moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
transition: background .5s ease-in-out,padding .5s ease-in-out;
}
.top-nav-collapse {
padding: 0;
background-color: $dark;
}
.navbar-custom.top-nav-collapse {
border-bottom: 1px solid rgba($light, 0.3);
&.top-nav-collapse {
padding: 0;
background: $dark;
border-bottom: 1px solid rgba($light, 0.3);
}
}
}
@ -156,7 +137,7 @@ ol {
padding: 100px 0;
text-align: center;
color: $light;
background: url( {{ site.background-img }} ) no-repeat bottom center scroll;
background: url({{ site.background-img }}) no-repeat bottom center scroll;
background-color: $dark;
-webkit-background-size: cover;
-moz-background-size: cover;
@ -168,68 +149,24 @@ ol {
.brand-heading {
font-size: 40px;
}
.intro-text {
font-size: 18px;
}
}
}
@media(min-width:767px) {
.intro {
@media(min-width:768px) {
height: 100%;
padding: 0;
.intro-body {
.brand-heading {
font-size: 100px;
}
.intro-text {
font-size: 25px;
font-size: 26px;
}
}
}
}
.btn-circle {
width: 70px;
height: 70px;
margin-top: 15px;
padding: 7px 16px;
border: 2px solid $light;
border-radius: 35px;
font-size: 40px;
color: $light;
background: transparent;
-webkit-transition: background .3s ease-in-out;
-moz-transition: background .3s ease-in-out;
transition: background .3s ease-in-out;
&:hover,
&:focus {
outline: none;
color: $light;
background: rgba($light, 0.1);
}
i.animated {
-webkit-transition-property: -webkit-transform;
-webkit-transition-duration: 1s;
-moz-transition-property: -moz-transform;
-moz-transition-duration: 1s;
}
&:hover {
i.animated {
-webkit-animation-name: pulse;
-moz-animation-name: pulse;
-webkit-animation-duration: 1.5s;
-moz-animation-duration: 1.5s;
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-timing-function: linear;
}
}
}
@-webkit-keyframes pulse {
from {
-webkit-transform: scale(1);
@ -248,7 +185,7 @@ ol {
}
@-moz-keyframes pulse {
fom {
from {
-moz-transform: scale(1);
transform: scale(1);
}
@ -268,16 +205,10 @@ ol {
padding-top: 100px;
}
.download-section {
#map {
width: 100%;
padding: 50px 0;
color: $light;
background: url(../img/downloads-bg.jpg) no-repeat center center scroll;
background-color: $dark;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
height: 200px;
margin-top: 100px;
}
@media(min-width:767px) {
@ -295,52 +226,52 @@ ol {
}
}
ul.banner-social-buttons {
margin-top: 0;
.btn {
text-transform: uppercase;
font-family: "Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 400;
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
border-radius: 0;
}
@media(max-width:1199px) {
ul.banner-social-buttons {
margin-top: 15px;
}
}
@media(max-width:767px) {
ul.banner-social-buttons {
li {
display: block;
margin-bottom: 20px;
padding: 0;
&:last-child {
margin-bottom: 0;
}
}
}
}
ul.social-buttons li a {
display: block;
width: 40px;
height: 40px;
border-radius: 100%;
font-size: 20px;
line-height: 40px;
outline: 0;
/* color: #fff; */
background-color: #222;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
.btn-default {
border: 1px solid $primary;
color: $primary;
background-color: transparent;
&:hover,
&:focus,
&:active {
color: #222;
background-color: darken($primary, 10%);
&:focus {
border: 1px solid $primary;
outline: none;
color: black;
background-color: $primary;
}
}
/* Added in { Personal } */
ul.social-buttons li a {
display: block;
width: 40px;
height: 40px;
border-radius: 100%;
font-size: 20px;
line-height: 40px;
outline: 0;
background-color: #222;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
&:hover,
&:focus,
&:active {
color: #222;
background-color: darken($primary, 10%);
}
}
footer {
padding: 50px 0;
p {
@ -360,10 +291,6 @@ footer {
background: rgba($light, 0.2);
}
img {
max-width: 100%;
}
img::selection {
background: transparent;
}
@ -373,9 +300,10 @@ img::-moz-selection {
}
body {
webkit-tap-highlight-color: rgba($light, 0.2);
-webkit-tap-highlight-color: rgba($light, 0.2);
}
/* Added in { Personal } for Typed Cursor in Header */
.typed-cursor{
opacity: 1;
-webkit-animation: blink 0.7s infinite;
@ -397,3 +325,4 @@ body {
50% { opacity:0; }
100% { opacity:1; }
}
/* END Added in { Personal } for Typed Cursor in Header */