Files
Iris/src/scss/components/_context-menu.scss

321 lines
5.9 KiB
SCSS
Raw Normal View History

2016-10-27 10:02:12 +13:00
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2017-07-20 09:34:21 +12:00
body.context-menu-open {
.body {
@include blur(10px);
}
}
}
2017-03-06 09:03:20 +13:00
#context-menu {
2016-10-27 10:02:12 +13:00
position: fixed;
z-index: 99;
2016-10-27 10:02:12 +13:00
2017-02-27 08:44:02 +13:00
.liner {
2017-07-26 15:24:18 +12:00
width: 190px;
2017-06-19 09:04:27 +12:00
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
border-radius: 3px;
2017-07-26 15:24:18 +12:00
background: $grey;
font-size: 14px;
font-weight: 500;
2017-06-19 09:04:27 +12:00
font-family: "Overpass";
2017-02-27 08:44:02 +13:00
.title {
display: block;
2017-07-26 15:24:18 +12:00
padding: 10px 14px;
2017-02-27 08:44:02 +13:00
font-weight: bold;
box-sizing: border-box;
position: relative;
overflow: hidden;
text-decoration: none;
background: $darkest_grey;
2017-02-27 08:44:02 +13:00
.background {
@include blur(5px);
background-size: cover;
background-position: 50% 20%;
opacity: 0.65;
2017-02-27 08:44:02 +13:00
position: absolute;
top: -10px;
left: -10px;
bottom: -10px;
right: -10px;
z-index: 1;
&.generic {
opacity: 0.9;
background: rgba(50,181,242,1);
background: -moz-linear-gradient(45deg, rgba(50,181,242,1) 0%, rgba(50,181,242,1) 18%, rgba(5,118,166,1) 100%);
background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(50,181,242,1)), color-stop(18%, rgba(50,181,242,1)), color-stop(100%, rgba(5,118,166,1)));
background: -webkit-linear-gradient(45deg, rgba(50,181,242,1) 0%, rgba(50,181,242,1) 18%, rgba(5,118,166,1) 100%);
background: -o-linear-gradient(45deg, rgba(50,181,242,1) 0%, rgba(50,181,242,1) 18%, rgba(5,118,166,1) 100%);
background: -ms-linear-gradient(45deg, rgba(50,181,242,1) 0%, rgba(50,181,242,1) 18%, rgba(5,118,166,1) 100%);
background: linear-gradient(45deg, rgba(50,181,242,1) 0%, rgba(50,181,242,1) 18%, rgba(5,118,166,1) 100%);
2017-10-10 13:05:28 +13:00
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#32b5f2', endColorstr='#0576a6', GradientType=1 );
}
2017-02-27 08:44:02 +13:00
}
2017-02-27 08:44:02 +13:00
.text {
@include one_line_text();
position: relative;
z-index: 2;
color: #FFFFFF;
}
2016-11-12 16:36:36 +13:00
2017-02-27 08:44:02 +13:00
.type {
position: relative;
z-index: 2;
color: #FFFFFF;
opacity: 0.5;
font-weight: 200;
text-transform: capitalize;
}
2016-10-27 10:02:12 +13:00
}
2017-02-27 08:44:02 +13:00
.menu-item-wrapper {
display: block;
2017-03-02 08:08:27 +13:00
overflow-x: hidden;
.menu-item {
@include gradient_overlay(3px);
2017-02-27 08:44:02 +13:00
cursor: pointer;
display: block;
2017-06-19 09:04:27 +12:00
padding: 9px 12px 8px;
2017-03-01 08:28:10 +13:00
box-sizing: border-box;
2017-06-19 09:04:27 +12:00
position: relative;
color: $white;
2017-03-01 08:28:10 +13:00
.notouch &:hover {
2017-06-19 09:04:27 +12:00
&:before {
opacity: 0.15;
}
}
.notouch &:active {
2017-06-19 09:04:27 +12:00
background: $black;
color: $white;
2017-03-01 08:28:10 +13:00
}
}
2017-02-27 08:44:02 +13:00
.icon {
display: none;
}
2017-02-27 08:44:02 +13:00
.submenu-icon {
float: right;
padding-top: 4px;
}
2017-03-02 08:08:27 +13:00
.fa {
font-size: 10px;
}
2017-02-27 08:44:02 +13:00
.submenu {
2017-03-02 08:08:27 +13:00
@include animate();
2017-02-27 08:44:02 +13:00
position: absolute;
top: 0;
2017-03-01 08:28:10 +13:00
right: 0;
2017-03-02 08:08:27 +13:00
left: 100%;
height: 100%;
min-height: 200px;
2017-03-02 08:08:27 +13:00
width: 0;
2017-04-21 09:10:47 +12:00
height: 100%;
2017-02-27 08:44:02 +13:00
overflow-y: scroll;
2017-07-26 15:24:18 +12:00
background: lighten($grey, 10%);
2017-03-01 08:28:10 +13:00
z-index: 3;
border-radius: 3px;
2017-02-27 08:44:02 +13:00
2017-03-02 08:08:27 +13:00
&.expanded {
width: 100%;
left: 0;
}
2017-02-27 08:44:02 +13:00
.menu-item {
2017-03-01 08:28:10 +13:00
width: 100%;
&.close-submenu {
color: $mid_grey;
}
2017-03-07 18:20:18 +13:00
}
}
2017-03-01 08:28:10 +13:00
}
2017-03-06 09:03:20 +13:00
2017-10-15 18:53:59 +13:00
.divider {
height: 1px;
padding: 0;
margin: 0;
background: lighten($grey, 8%);
}
2017-03-06 09:03:20 +13:00
& > span {
display: block;
button,
2017-04-10 21:03:49 +12:00
.button,
2017-03-06 09:03:20 +13:00
.dropdown-field {
2017-04-10 21:03:49 +12:00
text-decoration: none;
2017-03-06 09:03:20 +13:00
display: block;
border: 0;
margin: 0;
min-width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
font-size: inherit;
text-align: left;
text-transform: none;
font-weight: 300;
color: inherit;
2017-03-07 18:20:18 +13:00
&:not(:first-child):not(.dropdown-field){
2017-03-07 18:20:18 +13:00
border-top: 1px solid lighten($dark_grey, 8%);
}
2017-03-06 09:03:20 +13:00
.fa {
display: none;
}
.notouch &:hover {
background: lighten($dark_grey, 5%);
}
}
2017-04-10 21:03:49 +12:00
button,
.button {
2017-03-06 09:03:20 +13:00
padding: 16px 20px;
min-width: 100% !important;
max-width: 100% !important;
}
.dropdown-field {
padding: 0;
box-shadow: none;
2017-03-06 09:03:20 +13:00
.label {
padding: 16px 20px;
}
.options {
display: block;
position: static;
background: $darkest_grey;
border-radius: 0;
border: 0;
color: $white !important;
2017-03-06 09:03:20 +13:00
.option {
2017-03-07 18:20:18 +13:00
padding: 12px 20px 12px 50px;
border-radius: 0;
2017-03-06 09:03:20 +13:00
.fa {
display: inline-block;
left: 25px;
2017-03-07 18:20:18 +13:00
top: 14px;
2017-03-06 09:03:20 +13:00
}
}
&:before {
display: none;
}
2017-03-06 09:03:20 +13:00
}
}
}
2017-03-01 08:28:10 +13:00
}
2017-10-10 13:05:28 +13:00
@include responsive(null, $bp_medium){
2017-03-01 08:28:10 +13:00
.liner {
.title {
display: none;
}
}
2017-02-27 08:44:02 +13:00
}
2017-10-10 13:05:28 +13:00
@include responsive($bp_medium){
2017-02-27 08:44:02 +13:00
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
left: 0 !important;
margin: 0 !important;
overflow-y: scroll;
.background {
2017-02-28 20:58:15 +13:00
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
2017-07-23 10:15:02 +12:00
background: $overlay_dark;
z-index: 1;
}
2017-02-27 08:44:02 +13:00
.liner {
width: 250px;
margin: 30px auto;
max-width: 90vw;
position: relative;
z-index: 2;
border-radius: 3px;
2017-02-27 08:44:02 +13:00
.title {
2017-08-22 21:03:16 +12:00
padding: 14px 18px;
2017-02-27 08:44:02 +13:00
box-sizing: border-box;
border-radius: 3px 3px 0 0;
}
& > span {
button,
.button {
color: $white;
font-weight: 800;
2017-07-27 21:23:09 +12:00
background: transparent;
}
.dropdown-field {
color: $white;
}
2017-02-27 08:44:02 +13:00
}
2017-02-27 08:44:02 +13:00
.menu-item-wrapper {
.menu-item {
2017-08-22 21:03:16 +12:00
padding: 14px 18px;
2017-02-27 08:44:02 +13:00
box-sizing: border-box;
}
}
}
}
2017-02-27 08:44:02 +13:00
}
2017-06-19 07:38:23 +12:00
.context-menu-trigger {
@include animate();
@include gradient_overlay(3px);
2017-06-19 16:53:27 +12:00
display: inline-block;
padding: 14px 12px;
2017-06-19 07:38:23 +12:00
cursor: pointer;
2017-06-19 16:53:27 +12:00
vertical-align: top;
margin-top: -1px;
2017-06-19 16:53:27 +12:00
position: relative;
border-radius: 3px;
text-align: center;
2017-06-19 16:53:27 +12:00
.dot {
width: 6px;
height: 6px;
border-radius: 5px;
2017-07-23 10:15:02 +12:00
background: $white;
display: inline-block;
margin: 1px;
}
&:active {
margin-top: 0px;
margin-bottom: -1px;
2017-06-19 16:53:27 +12:00
}
&:hover{
cursor: pointer;
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
2017-06-19 07:38:23 +12:00
2017-06-19 16:53:27 +12:00
&:before {
opacity: 0.15;
}
2017-06-19 07:38:23 +12:00
}
}