Files
Iris/src/scss/components/_output-control.scss

273 lines
4.1 KiB
SCSS
Raw Normal View History

.output-control {
position: relative;
&.disabled {
& > .control {
opacity: 0.2;
cursor: not-allowed;
}
}
&__inner {
position: absolute;
2019-08-17 21:57:06 +12:00
bottom: 48px;
2018-05-31 21:34:50 +12:00
right: -150px;
width: 300px;
text-align: left;
2018-05-31 21:34:50 +12:00
border-radius: 3px;
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
2018-06-01 20:44:30 +12:00
z-index: 9;
@include theme('dark') {
color: colour('white');
background: lighten(colour('grey'), 4%);
2019-12-11 07:07:27 +13:00
&:after {
background: lighten(colour('grey'), 4%);
2019-12-11 07:07:27 +13:00
}
}
@include theme('light') {
color: colour('darkest_grey');
background: colour('white');
2019-12-11 07:07:27 +13:00
&:after {
background: colour('white');
2019-12-11 07:07:27 +13:00
}
}
&:after {
content: '';
display: block;
width: 6px;
height: 6px;
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
bottom: -3px;
2018-05-31 21:34:50 +12:00
right: 159px;
}
.no-results {
font-size: 1rem;
text-align: center;
opacity: 0.5;
font-weight: normal;
}
}
&__stream {
&__header {
margin: 0.8rem;
2019-11-15 08:27:03 +13:00
display: flex;
flex-flow: row;
2019-11-15 08:27:03 +13:00
align-items: center;
.flag {
margin-right: 0;
}
&__thumbnail {
flex-shrink: 0;
}
2019-11-15 08:27:03 +13:00
&__title {
display: flex;
align-items: center;
.icon {
font-size: 1em;
padding-left: 0.4em;
opacity: 0.5;
}
}
&__content {
padding-left: 0.8rem;
overflow-x: hidden;
.details {
white-space: nowrap;
}
}
}
}
2019-11-15 08:27:03 +13:00
&__group {
margin: 1rem 0.8rem 0.8rem 0.8rem;
&__title {
display: flex;
flex-flow: row;
.text {
opacity: 0.5;
}
.dropdown-field {
margin-left: auto;
&__label {
padding: 0 !important;
text-align: center;
opacity: 0.5;
.icon {
font-size: 1em;
}
}
&__options {
top: auto;
bottom: 20px;
right: 0;
&:before {
top: auto;
bottom: -3px;
}
}
}
}
}
&__clients {
border-radius: 3px;
background: colour('off_white');
@include theme('dark') {
background: colour('grey');
}
&__item {
border-top: 1px solid colour('white');
@include theme('dark') {
border-color: colour('soft_grey');
}
&:first-child {
border-top: none;
}
&__title {
padding: 0.8rem 0 0 0.8rem;
margin-bottom: 0;
}
&__volume {
padding-right: 1rem;
display: flex;
align-items: center;
}
&__controls {
display: flex;
align-items: center;
.dropdown-field {
flex-grow: 0;
&__label {
padding: 2px !important;
text-align: center;
.icon {
font-size: 0.9em;
}
}
&__options {
top: auto;
bottom: 20px;
right: auto;
left: 0px;
&:before {
top: auto;
right: auto;
bottom: -3px;
left: 9px;
}
}
}
2019-11-15 08:27:03 +13:00
}
}
}
2018-06-01 20:44:30 +12:00
&__commands {
padding: 12px 12px 8px 12px;
border-radius: 3px 3px 0 0;
position: relative;
background: colour('off_white');
@include clearfix();
@include theme('dark') {
background: colour('grey');
}
}
2018-06-01 20:44:30 +12:00
@include responsive($bp_medium){
2018-10-02 21:36:22 +13:00
position: absolute;
2019-08-17 21:57:06 +12:00
top: -8px;
2018-10-02 21:36:22 +13:00
right: 0px;
bottom: auto;
width: 100vw;
& > .control {
display: none;
}
&__inner {
2018-10-02 21:36:22 +13:00
top: auto;
2018-06-01 20:44:30 +12:00
right: 0;
2018-10-02 21:36:22 +13:00
bottom: 0;
left: 0;
width: auto;
2018-10-13 14:28:46 +13:00
padding: 0;
2018-10-02 21:36:22 +13:00
border-radius: 0;
2021-10-27 20:11:21 +13:00
max-height: calc(100vh - 140px);
overflow-y: auto;
@include theme('dark') {
2019-12-11 07:07:27 +13:00
box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.6);
}
@include theme('light') {
2019-12-11 07:07:27 +13:00
box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.1);
}
2018-06-01 20:44:30 +12:00
&:after {
2018-10-02 21:36:22 +13:00
display: none;
}
&--no-results {
display: none;
}
}
&__output {
2018-10-02 21:36:22 +13:00
@include clearfix();
padding: 0;
2018-10-02 21:36:22 +13:00
&:not(:first-child){
2019-08-13 21:34:30 +12:00
border-color: rgba(128,128,128,0.05);
2018-10-02 21:36:22 +13:00
}
&__name {
font-weight: 400;
width: 30%;
float: left;
font-size: 12px;
padding-top: 2px;
}
&__controls {
width: 70%;
float: right;
}
2018-06-01 20:44:30 +12:00
}
}
}