Files
Iris/src/scss/global/_core.scss

487 lines
7.7 KiB
SCSS
Raw Normal View History

@font-face {
font-family: 'Overpass';
src: url('../assets/fonts/overpass-italic-webfont.woff2') format('woff2'),
url('../assets/fonts/overpass-italic-webfont.woff') format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'Overpass';
src: url('../assets/fonts/overpass-regular-webfont.woff2') format('woff2'),
url('../assets/fonts/overpass-regular-webfont.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Overpass';
src: url('../assets/fonts/overpass-bold-webfont.woff2') format('woff2'),
url('../assets/fonts/overpass-bold-webfont.woff') format('woff');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'Overpass';
src: url('../assets/fonts/overpass-extrabold-webfont.woff2') format('woff2'),
url('../assets/fonts/overpass-extrabold-webfont.woff') format('woff');
font-weight: 700;
font-style: normal;
}
body,
html {
2017-07-23 10:15:02 +12:00
background: $dark_grey;
2017-07-24 06:03:09 +12:00
color: $light_grey;
2017-07-26 15:24:18 +12:00
font-family: "Overpass", Helvetica, Arial, sans-serif;
font-size: 14px;
2017-07-26 15:24:18 +12:00
letter-spacing: -0.01rem;
touch-action: manipulation;
2017-06-18 05:47:36 +12:00
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
body {
overflow-y: scroll;
overflow-x: hidden;
2017-01-24 10:13:12 +13:00
&::-webkit-scrollbar{
width: 8px;
height: 8px;
}
&::-webkit-scrollbar-track {
background: $dark_grey;
}
&::-webkit-scrollbar-thumb {
@include animate();
background: $grey;
2017-08-27 08:51:46 +12:00
border-radius: 4px;
&:hover {
background: $mid_grey;
}
}
&.touch-dragging,
2018-07-08 21:12:18 +12:00
&.no-scrollbars {
2017-01-24 10:13:12 +13:00
overflow-y: hidden;
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
&.context-menu-open {
overflow-y: hidden;
}
}
}
2016-10-31 09:25:15 +13:00
main,
footer {
margin-left: 220px;
2016-11-21 21:46:53 +13:00
2017-10-10 13:05:28 +13:00
@include responsive(null, null, $bp_shallow){
2016-11-22 11:10:30 +13:00
padding-bottom: 60px;
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2016-11-21 21:46:53 +13:00
margin-left: 0;
}
2016-10-31 09:25:15 +13:00
}
2016-10-31 09:25:15 +13:00
main {
position: relative;
min-height: 100vh;
2017-06-18 05:47:36 +12:00
.content-wrapper {
2017-06-20 19:55:47 +12:00
padding: 40px 40px 80px;
2017-06-18 05:47:36 +12:00
}
a {
color: inherit;
text-decoration: none;
2017-01-22 12:54:20 +13:00
cursor: pointer;
2017-07-24 06:03:09 +12:00
border-bottom: 1px solid transparent;
&:hover {
2017-07-24 06:03:09 +12:00
border-color: $mid_grey;
}
}
p {
font-size: 18px;
line-height: 1.5em;
white-space: pre-wrap;
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2016-11-28 07:27:30 +13:00
2017-06-22 08:59:40 +12:00
.content-wrapper {
padding: 20px 10px 60px;
2017-06-22 08:59:40 +12:00
}
2016-11-28 07:27:30 +13:00
section.list-wrapper {
padding: 10px 0;
}
}
pre {
padding: 20px;
2017-07-26 15:24:18 +12:00
background: $darkest_grey;
border-radius: 3px;
color: $white;
white-space: pre-wrap;
2016-12-15 12:54:41 +13:00
word-wrap: break-word;
}
2016-11-14 17:32:36 +13:00
}
2016-10-25 14:09:53 +13:00
2016-11-14 17:32:36 +13:00
h1 {
2017-06-19 16:53:27 +12:00
@include feature_font();
2017-07-24 06:03:09 +12:00
color: $white;
font-weight: 700;
font-size: 3rem;
line-height: 3.2rem;
2016-11-14 17:32:36 +13:00
}
2016-10-26 08:51:28 +13:00
2016-11-14 17:32:36 +13:00
h2 {
2017-06-19 16:53:27 +12:00
@include feature_font();
2017-06-21 09:16:26 +12:00
font-size: 1.8rem;
font-weight: 400;
line-height: 2.2rem;
2017-10-06 15:19:15 +13:00
a {
color: inherit;
text-decoration: none;
&:hover {
border-bottom: 1px solid $white;
}
}
&.grey-text {
a:hover {
color: $mid_grey !important;
border-bottom: 1px solid $mid_grey;
}
}
2016-11-14 17:32:36 +13:00
}
2016-10-31 16:49:42 +13:00
2016-11-14 17:32:36 +13:00
h3 {
font-weight: 100;
font-size: 1.4em;
line-height: 1.6em;
&.bottom-padding {
padding-bottom: 30px;
}
2016-11-14 17:32:36 +13:00
}
2016-10-31 16:49:42 +13:00
2016-11-14 17:32:36 +13:00
h4 {
2017-06-26 08:44:51 +12:00
@include feature_font();
font-size: 1.3rem;
2016-11-14 17:32:36 +13:00
margin-bottom: 14px;
font-weight: 700;
2016-10-25 17:01:37 +13:00
2016-11-14 17:32:36 +13:00
&.underline {
padding-bottom: 4px;
2017-07-24 06:03:09 +12:00
border-bottom: 1px solid $grey;
2016-11-14 17:32:36 +13:00
}
2016-10-26 21:20:48 +13:00
2016-11-14 17:32:36 +13:00
&:not(:first-child){
padding-top: 40px;
2016-10-25 14:09:53 +13:00
}
.dropdown-field {
margin-left: 10px;
}
2016-11-14 17:32:36 +13:00
}
2016-10-26 08:51:28 +13:00
p {
a {
color: inherit;
&:hover {
opacity: 0.8;
}
}
}
.hide {
width: 0px;
height: 0px;
position: fixed;
z-index: -99;
top: -99px;
left: -99px;
}
.no-results {
text-align: center;
padding: 40px;
color: $grey;
font-style: italic;
font-size: 1.2rem;
}
.placeholder {
display: inline-block;
height: 1.2em;
width: 100px;
max-width: 100%;
background: rgba(150,150,150,0.15);
pointer-events: none !important;
}
h1 .placeholder {
width: 50%;
}
h2 .placeholder,
h3 .placeholder,
h4 .placeholder {
max-width: 50%;
width: 150px;
}
button.placeholder {
border-color: transparent;
height: auto;
}
.list-wrapper .placeholder {
display: block;
width: auto;
margin: 25px 40px;
height: 10px;
2017-02-26 18:33:20 +13:00
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2017-02-26 18:33:20 +13:00
margin-left: 20px;
margin-right: 20px;
}
}
.grid-wrapper .placeholder {
height: auto;
&:after {
content: ' ';
display: block;
padding-bottom: 100%;
}
}
.related-artists .list-wrapper .placeholder {
position: relative;
margin: 40px 20px 50px 65px;
&:after {
content: ' ';
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(150,150,150,0.15);
position: absolute;
top: -20px;
left: -65px;
}
}
2016-11-14 17:32:36 +13:00
.no-top-padding { padding-top: 0 !important; }
.no-bottom-padding { padding-bottom: 0 !important; }
.no-right-padding { padding-right: 0 !important; }
.no-left-padding { padding-left: 0 !important; }
2017-02-05 19:57:29 +13:00
.no-top-margin { margin-top: 0 !important; }
.no-bottom-margin { margin-bottom: 0 !important; }
2016-10-26 08:51:28 +13:00
2016-11-14 17:32:36 +13:00
.top-padding { padding-top: 20px; }
.bottom-padding { padding-bottom: 20px; }
.right-padding { padding-right: 40px; }
.left-padding { padding-left: 40px; }
2016-10-25 21:36:33 +13:00
.col {
min-height: 1px;
float: left;
2016-10-26 08:51:28 +13:00
&.w5 { width: 5%; }
&.w10 { width: 10%; }
&.w15 { width: 15%; }
&.w20 { width: 20%; }
&.w25 { width: 25%; }
&.w30 { width: 30%; }
&.w33 { width: 33.3334%; }
&.w35 { width: 35%; }
&.w40 { width: 40%; }
&.w45 { width: 45%; }
&.w50 { width: 50%; }
&.w55 { width: 55%; }
&.w60 { width: 60%; }
&.w65 { width: 65%; }
&.w66 { width: 66.6667%; }
&.w70 { width: 70%; }
&.w75 { width: 75%; }
&.w80 { width: 80%; }
&.w85 { width: 85%; }
&.w90 { width: 90%; }
&.w95 { width: 95%; }
2016-11-01 19:27:59 +13:00
&.w100 { width: 100%; }
2016-10-25 21:36:33 +13:00
}
2016-11-03 18:22:26 +13:00
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.cf {
2016-10-25 21:36:33 +13:00
@include clearfix;
}
.hidden {
display: none !important;
}
.pulse { @include pulse(); }
2016-11-06 15:47:37 +13:00
.one-liner { @include one_line_text; }
.centred-text { text-align: center; }
2016-11-25 22:49:34 +13:00
.grey-text { color: $mid_grey !important; }
.dark-grey-text { color: lighten($dark_grey, 8%) !important; }
2016-11-25 22:49:34 +13:00
.red-text { color: $red !important; }
.blue-text { color: $blue !important; }
2016-11-25 22:49:34 +13:00
.green-text { color: $green !important; }
2017-02-21 08:35:24 +13:00
.orange-text { color: $orange !important; }
2017-09-13 17:00:45 +12:00
.yellow-text { color: $yellow !important; }
2016-11-25 22:49:34 +13:00
.dark-text { color: $dark_grey !important; }
.grey-border { border-color: $mid_grey !important; }
.red-border { border-color: $red !important; }
.green-border { border-color: $green !important; }
.orange-border { border-color: $orange !important; }
.dark-border { border-color: $dark_grey !important; }
2016-10-31 09:25:15 +13:00
footer {
display: block;
color: $light_grey;
padding-top: 50px;
padding-bottom: 50px;
text-align: center;
2016-10-31 16:49:42 +13:00
}
2016-11-02 21:23:35 +13:00
.details {
list-style-type: none;
color: $mid_grey;
li {
2017-02-07 20:07:04 +13:00
display: inline-block;
&:not(:first-child){
@include bullet();
2017-02-07 20:07:04 +13:00
}
2016-11-02 21:23:35 +13:00
}
}
2016-11-18 15:31:06 +13:00
.flag {
font-size: 9px;
font-weight: bold;
2016-11-18 15:31:06 +13:00
display: inline-block;
2017-09-29 08:57:11 +13:00
padding: 3px 5px 1px;
2016-11-18 15:31:06 +13:00
background: $light_grey;
color: $dark_grey;
border-radius: 3px;
vertical-align: bottom;
margin: 0 8px 1px;
2016-11-18 15:31:06 +13:00
&.blue {
background: $blue;
color: $white;
}
&.info {
background: $yellow;
}
&.warning {
background: $orange;
color: $white;
}
2018-01-30 08:14:05 +13:00
&.error,
&.bad {
background: $red;
color: $white;
}
&.dark {
2017-07-24 17:57:44 +12:00
background: lighten($dark_grey,10%);
color: $mid_grey;
2016-11-18 15:31:06 +13:00
}
2017-12-30 11:55:07 +13:00
&.large {
padding: 8px 10px 7px;
font-size: 12px;
}
h1 &,
h2 & {
line-height: 1.4em;
vertical-align: middle;
}
2016-11-18 15:31:06 +13:00
}
2016-11-28 07:27:30 +13:00
2018-01-30 08:14:05 +13:00
.message {
padding: 10px 12px 8px;
background: $yellow;
color: $dark_grey;
clear: both;
font-size: 14px;
border-radius: 3px;
&.info {
background: $yellow;
}
&.notice {
background: $blue;
color: $white;
}
&.warning {
background: $orange;
color: $white;
}
&.error,
&.bad {
background: $red;
color: $white;
}
}
2017-04-21 08:43:20 +12:00
2016-11-28 07:27:30 +13:00
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2016-11-28 07:27:30 +13:00
h1 {
2017-06-22 08:59:40 +12:00
font-size: 1.8rem;
line-height: 1.8rem;
}
2017-06-22 08:59:40 +12:00
h2 {
2017-06-22 08:59:40 +12:00
font-size: 1.2rem;
line-height: 1.5rem;
}
2017-06-22 08:59:40 +12:00
h3 {
2017-06-22 08:59:40 +12:00
font-size: 1rem;
}
.right-padding {
padding-right: 20px;
}
2017-06-22 08:59:40 +12:00
.left-padding {
padding-left: 20px;
}
2016-11-28 07:27:30 +13:00
}