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

274 lines
4.4 KiB
SCSS
Raw Normal View History

2016-10-27 10:02:12 +13:00
2017-03-06 09:03:20 +13:00
#context-menu {
2016-10-27 10:02:12 +13:00
position: fixed;
left: 0;
top: 0;
z-index: 99;
2016-10-27 10:02:12 +13:00
2017-02-27 08:44:02 +13:00
.liner {
background: $dark_grey;
color: #FFFFFF;
2017-03-01 08:28:10 +13:00
width: 160px;
2017-02-27 08:44:02 +13:00
&.right-align {
2017-03-01 08:28:10 +13:00
margin-left: -160px;
}
2017-02-27 08:44:02 +13:00
&.right-align-submenu .submenu {
left: auto !important;
2017-03-01 08:28:10 +13:00
right: 160px !important;
}
2017-02-27 08:44:02 +13:00
&.bottom-align-submenu .submenu {
top: auto !important;
bottom: 0 !important;
2017-01-27 16:13:11 +13:00
}
2017-02-27 08:44:02 +13:00
.title {
display: block;
padding: 8px 12px;
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.5;
position: absolute;
top: -10px;
left: -10px;
bottom: -10px;
right: -10px;
z-index: 1;
}
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-11-11 23:21:51 +13:00
2017-02-28 20:58:15 +13:00
.notouch &:hover{
2017-02-27 08:44:02 +13:00
.background {
opacity: 0.7;
2016-11-12 16:36:36 +13:00
}
2016-11-11 23:21:51 +13:00
}
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 {
2017-02-27 08:44:02 +13:00
cursor: pointer;
display: block;
2017-02-27 08:44:02 +13:00
padding: 8px 12px;
2017-03-01 08:28:10 +13:00
box-sizing: border-box;
.notouch &:hover {
background: lighten($dark_grey, 5%);
}
}
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;
bottom: 0;
2017-03-02 08:08:27 +13:00
left: 100%;
width: 0;
min-height: 180px;
2017-02-27 08:44:02 +13:00
overflow-y: scroll;
2017-03-01 08:28:10 +13:00
background: lighten($dark_grey, 10%);
z-index: 3;
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 {
background: $dark_grey;
border-top: 0;
color: $mid_grey;
}
2017-02-28 20:58:15 +13:00
.notouch &:hover {
2017-03-01 08:28:10 +13:00
background: lighten($dark_grey, 15%);
2017-02-27 08:44:02 +13:00
}
}
}
2017-02-27 08:44:02 +13:00
.menu-item {
border-top: 1px solid lighten($dark_grey, 8%);
}
2017-03-01 08:28:10 +13:00
}
2017-03-06 09:03:20 +13:00
& > span {
display: block;
button,
.dropdown-field {
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;
border-top: 1px solid lighten($dark_grey, 8%);
.fa {
display: none;
}
.notouch &:hover {
background: lighten($dark_grey, 5%);
}
}
button {
padding: 16px 20px;
min-width: 100% !important;
max-width: 100% !important;
}
.dropdown-field {
padding: 0;
.label {
padding: 16px 20px;
}
.options {
display: block;
position: static;
background: lighten($dark_grey, 10%);
.option {
padding: 16px 20px 16px 50px;
border-top: 1px solid lighten($dark_grey, 8%);
.fa {
display: inline-block;
left: 25px;
top: 18px;
}
}
}
}
}
2017-03-01 08:28:10 +13:00
}
2017-03-01 08:28:10 +13:00
@include responsive( null, $bp_medium ){
.liner {
.title {
display: none;
}
}
2017-02-27 08:44:02 +13:00
}
2017-02-27 08:44:02 +13:00
@include responsive( $bp_medium ){
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;
background: rgba(10, 10, 10, 0.95);
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;
2017-02-27 08:44:02 +13:00
.title {
padding: 16px 20px;
box-sizing: border-box;
}
2017-02-27 08:44:02 +13:00
.menu-item-wrapper {
.menu-item {
padding: 16px 20px;
box-sizing: border-box;
}
}
}
}
2017-02-27 08:44:02 +13:00
}
.track-list {
.context-menu-trigger {
display: none;
position: fixed;
bottom: 55px;
right: 10px;
z-index: 97;
border-radius: 50%;
background: $blue;
color: #FFFFFF;
width: 50px;
height: 50px;
overflow: hidden;
margin: 0;
&:hover {
background: $blue;
}
&:active {
background: darken($blue, 10%);
}
@include responsive( $bp_medium ){
display: block;
}
}
}