Skip to content

Instantly share code, notes, and snippets.

@leeprobert
Created December 3, 2015 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leeprobert/43d055b2b9fcf0a32178 to your computer and use it in GitHub Desktop.
Save leeprobert/43d055b2b9fcf0a32178 to your computer and use it in GitHub Desktop.
Sass file for my site on leeprobert.cc
@import url('http://weloveiconfonts.com/api/?family=entypo');
/*
VARIABLES
*/
$font-stack: 'Roboto', 'Avenir', Arial, sans-serif;
$grey-color1: #333;
$grey-color2: #444;
$grey-color3: #555;
$light-grey-color: #eee;
$tint-color: #bada55;
$break-lg: 1200px;
$break-md: 992px;
$break-sm: 768px;
$break-xs: 480px;
// Mask points
$p1: 20% 0%;
$p2: 100% 0;
$p3: 100% 80%;
$p4: 80% 100%;
$p5: 0% 100%;
$p6: 0% 20%;
body {
font-family: $font-stack;
color: $grey-color1;
}
/* -----------------------------
TYPOGRAPHY
*/
.column_copy {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
-webkit-column-gap: 4rem; /* Chrome, Safari, Opera */
-moz-column-gap: 4rem; /* Firefox */
column-gap: 4rem;
text-align: justify;
text-justify: inter-word;
h2 {
margin-top: 0;
text-align: left;
}
@media screen and (max-width: $break-lg) {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
}
@media screen and (max-width: $break-md) {
-webkit-column-count: 2; /* Chrome, Safari, Opera */
-moz-column-count: 2; /* Firefox */
column-count: 2;
}
@media screen and (max-width: $break-sm) {
-webkit-column-count: 1; /* Chrome, Safari, Opera */
-moz-column-count: 1; /* Firefox */
column-count: 1;
}
@media screen and (max-width: $break-xs) {
-webkit-column-count: 1; /* Chrome, Safari, Opera */
-moz-column-count: 1; /* Firefox */
column-count: 1;
}
}
.casestudy_link h4 {
margin-top: 0;
}
.bannerTitles {
h2 {
@media screen and (max-width: $break-sm) {
font-size: 130%;
}
}
}
/* -----------------------------
IMAGES
*/
.masked {
-webkit-clip-path: polygon($p1, $p2, $p3, $p4, $p5, $p6);
clip-path: polygon($p1, $p2, $p3, $p4, $p5, $p6);
}
.infoPanel img{
width: 100%;
height: auto;
margin-right: 3rem;
margin-bottom: 3rem;
max-height: 20rem;
max-width: 20rem;
}
.casestudy_link img {
width: 100%;
height: auto;
max-height: 20rem;
max-width: 20rem;
}
/* -----------------------------
LINKS
*/
.infoPanel {
a {
text-decoration: none;
color: darkolivegreen;
}
a:hover {
color: darkolivegreen;
text-decoration: underline;
}
//
// a::before {
//
// content: "{ ";
// }
//
// a::after {
//
// content: " }";
// }
a::before, a::after {
font-weight: 800;
color: $tint-color;
}
}
nav a {
color: white;
text-decoration: none;
}
nav a:hover {
color: $tint-color;
text-decoration: none;
}
.img_link::before {
content: none !important;
}
.img_link::after {
content: none !important;
}
/* -----------------------------
INTRO
*/
.main-header nav {
li {
cursor: pointer;
}
li:hover {
color: $tint-color;
}
li::before {
content: "{ ";
}
li::after {
content: " }";
}
li::before, li::after {
font-weight: 800;
color: $tint-color;
}
}
.biog_nav {
ul {
text-indent: 0;
padding: 0;
}
li {
display: inline-block;
text-align: center;
list-style-type: none;
margin: 2rem 0;
color: $grey-color2;
cursor: pointer;
font-size: 3rem;
}
li:hover {
color: $tint-color;
}
li::before {
content: "{ ";
}
li::after {
content: " }";
}
li::before, li::after {
font-weight: 800;
color: $tint-color;
}
}
/* -----------------------------
CREATIVITY
*/
/* -----------------------------
CASE STUDY
*/
.casestudy_link {
margin-top: 5rem;
}
.casestudy_block {
margin-top: 4rem;
padding-top: 4rem;
border-top: 1px #999 solid;
}
/* -----------------------------
HEADER
*/
.main-header {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 10rem;
color: white;
background: $grey-color2;
line-height: 10rem;
transform: translateY(0);
transform: translate3d(0,0,0);
transition: .25s transform;
backface-visibility: hidden;
z-index: 999;
h1 {
float: left;
font-size: 1.4rem;
margin: 0 0 0 2rem;
text-transform: uppercase;
}
nav {
font-size: 1.5rem;
ul {
float: right;
margin: 0;
padding: 0;
}
li {
display: inline-block;
padding: 0 2rem;
}
}
}
.heads-up {
transform: translateY(-10rem);
transform: translate3d(0,-10rem,0);
}
main {
background: $light-grey-color;
}
/* ----------------------------
LOGO
*/
.logo {
display: inline-block;
height: 10rem;
padding: 0.5rem 2rem;
}
.logo img{
max-width: 100%;
max-height: 4rem;
}
.logo_text {
position: relative;
top: 5px;
left: -10px;
font-family: $font-stack;
display: inline-block;
margin: 0;
padding: 0;
@media screen and (max-width: $break-sm) {
display: none;
}
@media screen and (max-width: $break-xs) {
display: none;
}
}
.tint_text {
color: $tint-color;
}
/* ----------------------------
SIGNATURE
*/
.signature {
height: 9rem;
padding: 0.5rem 2rem;
}
.big_signature {
height: 10rem;
width: auto;
margin: 0 2rem;
@media screen and (max-width: $break-sm) {
height: 6rem;
}
}
#headerBanner img {
@media screen and (max-width: $break-sm) {
height: 15rem;
}
}
/* -----------------------------
FOOTER
*/
footer {
color: white;
background: #ddd;
padding: 4rem;
text-align: center;
}
/* -----------------------------
BANNER IMAGES
*/
#headerBanner {
background: url("http://lorempixel.com/640/480/abstract/2/");
@extend .banner_bg;
}
#creativityBanner {
background: url("http://lorempixel.com/640/480/abstract/1/");
@extend .banner_bg;
}
#curiousityBanner {
background: url("http://lorempixel.com/640/480/abstract/3/");
@extend .banner_bg;
}
#feasibilityBanner {
background: url("http://lorempixel.com/640/480/abstract/4/");
@extend .banner_bg;
}
#strategyBanner {
background: url("http://lorempixel.com/640/480/abstract/5/");
@extend .banner_bg;
}
#thankYouBanner {
background: url("../images/strategy.jpg");
@extend .banner_bg;
}
#honeywellBanner01 {
background: url("../images/honeywell/oculus.jpg");
@extend .banner_bg;
}
#honeywellBanner02 {
background: url("../images/honeywell/development.jpg");
@extend .banner_bg;
}
#honeywellBanner03 {
background: url("../images/honeywell/stand.jpg");
@extend .banner_bg;
}
#honeywellBanner04 {
background: url("../images/honeywell/Honeywell_VR_storyboard.jpg");
@extend .banner_bg;
}
#agnitioBanner01 {
background: url("../images/UXUI_02_dark.jpg");
@extend .banner_bg;
}
#agnitioBanner02 {
background: url("../images/agnitio/banner01.jpg");
@extend .banner_bg;
}
.banner_bg {
background-position: 50% 50%;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.bannerTop {
margin-top: 10rem !important;
}
.banner {
margin: 0;
height: 48rem;
width: 100%;
overflow: hidden;
display: table;
@media screen and (max-width: $break-sm) {
height: 36rem;
}
@media screen and (max-width: $break-xs) {
height: 26rem;
}
.bannerTitles {
display: table-cell;
vertical-align: middle;
}
h1,h2 {
width: 100%;
text-align: center;
color: white;
}
h1 {
font-size: 800%;
@media screen and (max-width: $break-sm) {
font-size: 400%;
}
@media screen and (max-width: $break-xs) {
font-size: 300%;
}
}
}
.banner img {
height: 20rem;
width: auto;
}
.infoPanel {
padding: 6em;
@media screen and (max-width: $break-sm) {
padding: 4em;
}
@media screen and (max-width: $break-xs) {
padding: 3em;
}
}
.infoPanelImg {
text-align: center;
}
.infoPanelImg img{
width: 100%;
height: auto;
min-height: 10rem;
}
/* -------------------------------
CAROUSEL
*/
.carousel-inner .item img{
width: 100%;
height: auto;
}
/* --------------------------------
SOCIAL ICONS
*/
.social {
display: inline-block;
width: 50px;
height: 50px;
margin: 2rem;
line-height: 50px;
font-family: Entypo;
font-size: 28px;
text-align: center;
color: $grey-color3;
border-radius: 10px;
background: $light-grey-color;
overflow: hidden;
cursor: pointer;
}
.social:hover {
color: #bada55;
}
.social {
box-shadow: rgb(210, 210, 210) 1px 1px,
rgb(210, 210, 210) 2px 2px,
rgb(211, 211, 211) 3px 3px,
rgb(211, 211, 211) 4px 4px,
rgb(211, 211, 211) 5px 5px,
rgb(212, 212, 212) 6px 6px,
rgb(212, 212, 212) 7px 7px,
rgb(212, 212, 212) 8px 8px,
rgb(213, 213, 213) 9px 9px,
rgb(213, 213, 213) 10px 10px,
rgb(214, 214, 214) 11px 11px,
rgb(214, 214, 214) 12px 12px,
rgb(214, 214, 214) 13px 13px,
rgb(215, 215, 215) 14px 14px,
rgb(215, 215, 215) 15px 15px,
rgb(215, 215, 215) 16px 16px,
rgb(216, 216, 216) 17px 17px,
rgb(216, 216, 216) 18px 18px,
rgb(216, 216, 216) 19px 19px,
rgb(217, 217, 217) 20px 20px,
rgb(217, 217, 217) 21px 21px,
rgb(218, 218, 218) 22px 22px,
rgb(218, 218, 218) 23px 23px,
rgb(218, 218, 218) 24px 24px,
rgb(219, 219, 219) 25px 25px,
rgb(219, 219, 219) 26px 26px,
rgb(219, 219, 219) 27px 27px,
rgb(220, 220, 220) 28px 28px,
rgb(220, 220, 220) 29px 29px,
rgb(221, 221, 221) 30px 30px;
text-shadow: rgb(226, 226, 226) 1px 1px,
rgb(227, 227, 227) 2px 2px,
rgb(227, 227, 227) 3px 3px,
rgb(228, 228, 228) 4px 4px,
rgb(229, 229, 229) 5px 5px,
rgb(229, 229, 229) 6px 6px,
rgb(230, 230, 230) 7px 7px,
rgb(230, 230, 230) 8px 8px,
rgb(231, 231, 231) 9px 9px,
rgb(232, 232, 232) 10px 10px,
rgb(232, 232, 232) 11px 11px,
rgb(233, 233, 233) 12px 12px,
rgb(233, 233, 233) 13px 13px,
rgb(234, 234, 234) 14px 14px,
rgb(235, 235, 235) 15px 15px,
rgb(235, 235, 235) 16px 16px,
rgb(236, 236, 236) 17px 17px,
rgb(236, 236, 236) 18px 18px,
rgb(237, 237, 237) 19px 19px,
rgb(238, 238, 238) 20px 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment