inspec/www/source/stylesheets/_layout.scss

445 lines
8 KiB
SCSS
Raw Normal View History

// Alignment
2016-09-21 00:11:41 +00:00
.strict-center {
right: 0;
left: 0;
margin: auto;
text-align: center;
2016-09-21 00:11:41 +00:00
}
2017-01-07 04:53:01 +00:00
.strict-right {
float: right;
text-align: right;
@include nav-small{ //mobile
float: initial;
margin: 0 auto;
text-align: center;
2017-01-13 23:07:38 +00:00
}
}
.strict-left {
float: left;
text-align: left;
}
2017-01-07 00:03:24 +00:00
.clear {
clear: both;
2017-01-07 00:03:24 +00:00
}
.relative {
position: relative;
}
.relative-top {
z-index: 10;
position: relative;
}
2017-01-07 04:53:01 +00:00
// margins
.margin-both-xl { // xl
margin-top: $percent_lg;
margin-bottom: $percent_lg;
2016-09-21 00:11:41 +00:00
@include nav-small { //mobile
margin-top: $percent_md;
margin-bottom: $percent_md;
2017-01-13 23:07:38 +00:00
}
}
.margin-top-xl {
margin-top: $percent_lg;
@include nav-small { //mobile
margin-top: $percent_md;
2017-01-13 23:07:38 +00:00
}
}
.margin-under-xl {
margin-bottom: $percent_lg;
@include nav-small { //mobile
margin-bottom: $percent_md;
2017-01-13 23:07:38 +00:00
}
}
.padding-top-xl {
padding-top: $percent_lg;
@include nav-small { //mobile
padding-top : $percent_md;
}
}
// default
.margin-both {
margin-top: $percent_md;
margin-bottom: $percent_md;
}
.pad-both {
padding-top: $percent_md;
padding-bottom: $percent_md;
}
.margin-both-offset {
margin-top: $percent_md + 80px; // add header height
margin-bottom: $percent_md;
@include nav-small {
margin-top: $percent_md + 60px;
}
}
.margin-top-offset {
margin-top: 80px; // add header height
@include nav-small {
margin-top: 60px;
}
}
.margin-top {
margin-top: $percent_md;
}
.margin-under {
margin-bottom: $percent_md;
}
.padding-under {
padding-bottom: $percent_md;
}
// small
.margin-both-xs {
margin-top: $percent_sm;
margin-bottom: $percent_sm;
}
.margin-top-xs {
margin-top: $percent_sm;
}
.margin-under-xs {
margin-bottom: $percent_sm;
}
// White Box
2017-01-07 04:53:01 +00:00
.box-white {
padding: 2em;
border-radius: 7px;
background-color: white;
2017-01-06 21:21:45 +00:00
}
2017-01-07 04:53:01 +00:00
// White Box with border
.box-white-brdr {
padding: 2em;
border: 1px solid #d3e2e2;
border-radius: 7px;
@include nav-small {
margin-bottom: 1em;
}
}
2017-01-07 04:53:01 +00:00
// Art
.icon-art { // Illustrations with content underneath
height: 100px;
margin-top: 15px;
margin-bottom: 15px;
}
.icon { // gradient arrows with white box
z-index: 50;
position: absolute;
width: 70px;
height: 70px;
margin-top: -35px;
overflow: hidden;
border: 2px solid $color_white;
border-radius: 50%;
background: $color_white;
2017-01-07 04:53:01 +00:00
img {
display: block;
height: auto;
padding: 30%;
}
}
2017-01-06 21:21:45 +00:00
i.focus { //corner triangle icon
font-style: normal !important;
padding-right: 4px;
}
.shadow { // dropshadow
box-shadow : 0 0 25px $color_shadow;
}
.block-angl { // Angled Background
background: $color_triangle_block;
-webkit-clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
@include nav-small { //mobile
-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 100%);
}
}
.purp-shade { // Purple radial gradient applied over blue-gradient
background: -moz-radial-gradient(
center,
ellipse cover,
rgba(151,110,229,0.4) 0%,
rgba(151,110,229,0.2) 50%,
rgba(151,110,229,0) 100%
);
background: -webkit-radial-gradient(
center,
ellipse cover,
rgba(151,110,229,0.4) 0%,
rgba(151,110,229,0.2) 50%,
rgba(151,110,229,0) 100%
);
background: radial-gradient(
ellipse at center,
rgba(151,110,229,0.4) 0%,
rgba(151,110,229,0.2) 50%,
rgba(151,110,229,0) 100%
);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66976ee5', endColorstr='#00976ee5',GradientType=1 );
}
.dark-bg {
background-color: $color_heading;
}
.blue-gradient { // Default Blue Gradient
background: -moz-linear-gradient(
100% -14.24% -80deg,
rgba(99, 206, 153, 1) 0%,
rgba(91, 201, 163, 1) 8.33%,
rgba(67, 185, 194, 1) 36.64%,
rgba(58, 179, 206, 1) 52.48%,
rgba(58, 175, 206, 1) 67.93%,
rgba(58, 162, 206, 1) 83.94%,
rgba(58, 142, 206, 1) 100%
);
background: -ms-linear-gradient(
-80deg,
rgba(99, 206, 153, 1) 0%,
rgba(91, 201, 163, 1) 8.33%,
rgba(67, 185, 194, 1) 36.64%,
rgba(58, 179, 206, 1) 52.48%,
rgba(58, 175, 206, 1) 67.93%,
rgba(58, 162, 206, 1) 83.94%,
rgba(58, 142, 206, 1) 100%
);
background: -o-linear-gradient(
-80deg,
rgba(99, 206, 153, 1) 0%,
rgba(91, 201, 163, 1) 8.33%,
rgba(67, 185, 194, 1) 36.64%,
rgba(58, 179, 206, 1) 52.48%,
rgba(58, 175, 206, 1) 67.93%,
rgba(58, 162, 206, 1) 83.94%,
rgba(58, 142, 206, 1) 100%
);
background: -webkit-linear-gradient(
-80deg,
rgba(99, 206, 153, 1) 0%,
rgba(91, 201, 163, 1) 8.33%,
rgba(67, 185, 194, 1) 36.64%,
rgba(58, 179, 206, 1) 52.48%,
rgba(58, 175, 206, 1) 67.93%,
rgba(58, 162, 206, 1) 83.94%,
rgba(58, 142, 206, 1) 100%
);
background: linear-gradient(
-80deg,
rgba(67, 185, 194, 1) 36.64%,
rgba(58, 179, 206, 1) 52.48%,
rgba(58, 175, 206, 1) 67.93%,
rgba(58, 162, 206, 1) 83.94%,
rgba(58, 142, 206, 1) 100%
);
}
// form
2017-01-07 04:53:01 +00:00
input.form-item {
display: inline;
width: 60%;
@include nav-small {
width: 100%;
display: block;
}
2017-01-07 04:53:01 +00:00
}
form > button {
margin-left: 1em;
@include nav-small {
margin: 0 auto;
text-align: center;
margin-top: 1em;
}
2017-01-07 04:53:01 +00:00
}
form > button > i {
margin-right: 6px;
2017-01-07 04:53:01 +00:00
}
input[type="email"],
input[type="text"] {
color: $color_heading;
border: 1px solid #d3e2e2;
-webkit-box-shadow: 0 0 2px $color_shadow;
box-shadow: 0 0 2px $color_shadow;
font-family: $main-font;
font-weight: 300;
margin: 0;
2017-01-07 04:53:01 +00:00
}
input[type="text"]:focus,
input[type="text"]:hover,
input[type="email"]:focus,
input[type="email"]:hover {
border: 1px solid $color_purple;
-webkit-box-shadow: 0 0 5px $color_shadow;
box-shadow: 0 0 5px $color_shadow;
2017-01-07 04:53:01 +00:00
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
color: $color_gray;
font-family: $main-font;
2017-01-07 04:53:01 +00:00
}
input:-moz-placeholder,
textarea:-moz-placeholder {
color: $color_gray;
font-family: $main-font;
2017-01-07 04:53:01 +00:00
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
color: $color_gray;
font-family: $main-font;
2017-01-07 04:53:01 +00:00
}
input::placeholder,
textarea::placeholder {
color: $color_gray;
font-family: $main-font;
}
// Progress bar
progress { /* Positioning */
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 1.6px;
color: $color_link;
border: none;
background-color: transparent;
z-index: 500;
2017-01-07 04:53:01 +00:00
}
progress[value]::-webkit-progress-bar {
background-color: white;
}
2017-01-06 21:21:45 +00:00
progress[value]::-webkit-progress-value {
background-color: $color_link;
}
2017-01-06 21:21:45 +00:00
progress[value]::-moz-progress-bar {
background-color: white;
}
2017-01-06 21:21:45 +00:00
progress[value]::-moz-progress-value {
background-color: $color_link;
2017-01-06 21:21:45 +00:00
}
progress[value]::progress-bar {
background-color: white;
2017-01-06 21:21:45 +00:00
}
progress[value]::progress-value {
background-color: $color_link;
2017-01-06 21:21:45 +00:00
}
//search bar
2017-01-09 22:11:49 +00:00
.searchbar{
display: flex;
align-items: center;
width: 100%;
2017-01-06 21:21:45 +00:00
}
//search form
form.main-sidebar--search {
width: 100%;
}
//search input
form.main-sidebar--search input[type="text"] {
width: 90%;
display: inline;
margin-top: 1.2em;
// overriding some of Swiftype's styles
height: 2.4375rem;
padding: 0.5rem;
box-sizing: border-box;
background: $color_white;
font-size: 1rem;
@include nav-small {
width:100%;
}
}
//Search button
.search { // search icon
width: 70px;
height: 70px;
overflow: hidden;
border: 2px solid $color_white;
border-radius: 50%;
background: $color_white;
cursor: pointer;
position: relative;
z-index: 50;
float: right;
outline: none;
@include nav-small {
display: none;
}
img {
display: block;
height: auto;
}
2017-01-06 21:21:45 +00:00
}