tabs
This commit is contained in:
parent
1f052d4c31
commit
bda7e621fd
1 changed files with 160 additions and 130 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#app.navbar {
|
#app.navbar {
|
||||||
--navigationBarHeight: 38px;
|
--navigationBarHeight: 38px;
|
||||||
}
|
}
|
||||||
|
@ -6,49 +5,79 @@
|
||||||
#app.twopanel {
|
#app.twopanel {
|
||||||
--chromeHeight1: 46px;
|
--chromeHeight1: 46px;
|
||||||
--chromeHeight2: 90px;
|
--chromeHeight2: 90px;
|
||||||
--chromeHeight: calc(var(--chromeHeight1) + var(--chromeHeight2));
|
--chromeHeight : calc(var(--chromeHeight1) + var(--chromeHeight2));
|
||||||
|
|
||||||
.modular-fs .app-drawer .lyric-footer {
|
.modular-fs .app-drawer .lyric-footer {
|
||||||
bottom: var(--chromeHeight2);
|
bottom: var(--chromeHeight2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-chrome {
|
.app-chrome {
|
||||||
|
|
||||||
&:not(.chrome-bottom) {
|
&:not(.chrome-bottom) {
|
||||||
.app-chrome--center {
|
.app-chrome--center {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
.top-nav-group {
|
.top-nav-group {
|
||||||
background: @baseColor;
|
background : @baseColor;
|
||||||
border: 1px solid lighten(@baseColor, 8);
|
border : 1px solid lighten(@baseColor, 8);
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
display: flex;
|
display : flex;
|
||||||
height: 32px;
|
height : 32px;
|
||||||
|
|
||||||
.app-sidebar-item {
|
.app-sidebar-item {
|
||||||
background-color: @baseColor;
|
background-color: @baseColor;
|
||||||
border-radius: 10px!important;
|
border-radius : 10px !important;
|
||||||
border:0px;
|
border : 0px;
|
||||||
min-width: 120px;
|
min-width : 120px;
|
||||||
padding:6px;
|
padding : 6px;
|
||||||
justify-content: center;
|
justify-content : center;
|
||||||
align-items: center;
|
align-items : center;
|
||||||
margin: 0px;
|
margin : 0px;
|
||||||
height: 100%;
|
height : 100%;
|
||||||
|
position : relative;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
--dist : 1px;
|
||||||
|
content : '';
|
||||||
|
position : absolute;
|
||||||
|
top : var(--dist);
|
||||||
|
left : var(--dist);
|
||||||
|
right : var(--dist);
|
||||||
|
bottom : var(--dist);
|
||||||
|
background-color: #fff;
|
||||||
|
opacity : 0;
|
||||||
|
border-radius : 10px;
|
||||||
|
transform : scale(0.5);
|
||||||
|
transition : transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten(@baseColor, @colorMixRate * 5);
|
background-color: transparent;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
|
||||||
|
opacity : .1;
|
||||||
|
transform : scale(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background-color: lighten(@baseColor, @colorMixRate * 5);
|
background-color: transparent;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
opacity : .2;
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.md-btn-primary {
|
&.md-btn-primary {
|
||||||
box-shadow: 0px 0px 0px 1px lighten(@baseColor, @colorMixRate * 8);
|
box-shadow : 0px 0px 0px 1px lighten(@baseColor, @colorMixRate * 8);
|
||||||
background-color: lighten(@baseColor, @colorMixRate * 5);
|
background-color: lighten(@baseColor, @colorMixRate * 5);
|
||||||
z-index: 1;
|
z-index : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +85,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-mainmenu {
|
.app-mainmenu {
|
||||||
width: 30px;
|
width : 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,10 +96,10 @@
|
||||||
height: var(--chromeHeight1);
|
height: var(--chromeHeight1);
|
||||||
|
|
||||||
&.chrome-bottom {
|
&.chrome-bottom {
|
||||||
background: var(--color2);
|
background : var(--color2);
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
height: var(--chromeHeight2);
|
height : var(--chromeHeight2);
|
||||||
box-shadow: 0px -2px 6px rgb(20 20 20 / 12%),
|
box-shadow : 0px -2px 6px rgb(20 20 20 / 12%),
|
||||||
0px -1px 0px 0px rgb(200 200 200 / 12%);
|
0px -1px 0px 0px rgb(200 200 200 / 12%);
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
||||||
|
@ -82,33 +111,33 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-sm-auto {
|
.col-sm-auto {
|
||||||
width: 4em;
|
width : 4em;
|
||||||
display: flex;
|
display : flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items : center;
|
||||||
font-size: 0.8em;
|
font-size : 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=range] {
|
input[type=range] {
|
||||||
appearance: none;
|
appearance : none;
|
||||||
width: 100%;
|
width : 100%;
|
||||||
height: 5px;
|
height : 5px;
|
||||||
background-color: rgb(200 200 200 / 10%);
|
background-color: rgb(200 200 200 / 10%);
|
||||||
border-radius: 6px;
|
border-radius : 6px;
|
||||||
box-shadow: 0px 0px 0px 1px rgba(0 0 0 / 10%);
|
box-shadow : 0px 0px 0px 1px rgba(0 0 0 / 10%);
|
||||||
align-self: center;
|
align-self : center;
|
||||||
|
|
||||||
&::-webkit-slider-thumb {
|
&::-webkit-slider-thumb {
|
||||||
opacity: 0;
|
opacity : 0;
|
||||||
transform: scale(1);
|
transform : scale(1);
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance : none;
|
||||||
width: 16px;
|
width : 16px;
|
||||||
height: 16px;
|
height : 16px;
|
||||||
border-radius: 100%;
|
border-radius : 100%;
|
||||||
background: var(--keyColor);
|
background : var(--keyColor);
|
||||||
cursor: default;
|
cursor : default;
|
||||||
transition: opacity .10s var(--appleEase), transform .10s var(--appleEase);
|
transition : opacity .10s var(--appleEase), transform .10s var(--appleEase);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -134,38 +163,38 @@
|
||||||
|
|
||||||
.playback-button.play,
|
.playback-button.play,
|
||||||
.playback-button.pause,
|
.playback-button.pause,
|
||||||
.playback-button.stop{
|
.playback-button.stop {
|
||||||
width: 42px;
|
width : 42px;
|
||||||
height: 42px;
|
height : 42px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: 6px;
|
margin : 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-chrome--center {
|
.app-chrome--center {
|
||||||
display: flex;
|
display : flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.app-chrome-playback-controls {
|
.app-chrome-playback-controls {
|
||||||
display: flex;
|
display : flex;
|
||||||
z-index: 1;
|
z-index : 1;
|
||||||
// margin-bottom: 12px;
|
// margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-chrome-playback-duration {
|
.app-chrome-playback-duration {
|
||||||
position: relative;
|
position : relative;
|
||||||
width: 80%;
|
width : 80%;
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
height: 16px;
|
height : 16px;
|
||||||
|
|
||||||
.song-progress {
|
.song-progress {
|
||||||
@bgColor: transparent;
|
@bgColor : transparent;
|
||||||
height: 16px;
|
height : 16px;
|
||||||
position: absolute;
|
position : absolute;
|
||||||
bottom: 4px;
|
bottom : 4px;
|
||||||
left: 0px;
|
left : 0px;
|
||||||
right: 4px;
|
right : 4px;
|
||||||
background: @bgColor;
|
background: @bgColor;
|
||||||
z-index: 0;
|
z-index : 0;
|
||||||
|
|
||||||
|
|
||||||
.song-duration {
|
.song-duration {
|
||||||
|
@ -174,41 +203,41 @@
|
||||||
|
|
||||||
.song-duration p {
|
.song-duration p {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 10px;
|
font-size : 10px;
|
||||||
height: 1.2em;
|
height : 1.2em;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
overflow: hidden;
|
overflow : hidden;
|
||||||
margin: 0 0 0 0.25em;
|
margin : 0 0 0 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
> input[type=range] {
|
>input[type=range] {
|
||||||
&::-webkit-slider-thumb {
|
&::-webkit-slider-thumb {
|
||||||
opacity: 1;
|
opacity : 1;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
z-index: 1;
|
z-index : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=range] {
|
input[type=range] {
|
||||||
appearance: none;
|
appearance : none;
|
||||||
width: 100%;
|
width : 100%;
|
||||||
height: 4px;
|
height : 4px;
|
||||||
background-color: rgb(200 200 200 / 10%);
|
background-color: rgb(200 200 200 / 10%);
|
||||||
border-radius: 2px;
|
border-radius : 2px;
|
||||||
|
|
||||||
&::-webkit-slider-thumb {
|
&::-webkit-slider-thumb {
|
||||||
opacity: 0;
|
opacity : 0;
|
||||||
transform: scale(0.5);
|
transform : scale(0.5);
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance : none;
|
||||||
width: 12px;
|
width : 12px;
|
||||||
height: 12px;
|
height : 12px;
|
||||||
border-radius: 100%;
|
border-radius : 100%;
|
||||||
background: var(--keyColor);
|
background : var(--keyColor);
|
||||||
cursor: default;
|
cursor : default;
|
||||||
transition: opacity .10s var(--appleEase), transform .10s var(--appleEase);
|
transition : opacity .10s var(--appleEase), transform .10s var(--appleEase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -217,21 +246,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-chrome--left {
|
.app-chrome--left {
|
||||||
width: 30%;
|
width : 30%;
|
||||||
justify-content: flex-start;
|
justify-content : flex-start;
|
||||||
align-items: flex-start;
|
align-items : flex-start;
|
||||||
-webkit-app-region: no-drag !important;
|
-webkit-app-region: no-drag !important;
|
||||||
|
|
||||||
.playback-controls {
|
.playback-controls {
|
||||||
-webkit-app-region: no-drag !important;
|
-webkit-app-region: no-drag !important;
|
||||||
|
|
||||||
.artwork {
|
.artwork {
|
||||||
--offset: 20px;
|
--offset : 20px;
|
||||||
--marginOffset: 2;
|
--marginOffset: 2;
|
||||||
--size: calc(var(--chromeHeight2) - var(--offset));
|
--size : calc(var(--chromeHeight2) - var(--offset));
|
||||||
width: var(--size);
|
width : var(--size);
|
||||||
height: var(--size);
|
height : var(--size);
|
||||||
margin: 0 calc(var(--offset) / var(--marginOffset)) 0 calc(var(--offset) / var(--marginOffset));
|
margin : 0 calc(var(--offset) / var(--marginOffset)) 0 calc(var(--offset) / var(--marginOffset));
|
||||||
|
|
||||||
.mediaitem-artwork,
|
.mediaitem-artwork,
|
||||||
img {
|
img {
|
||||||
|
@ -241,20 +270,21 @@
|
||||||
|
|
||||||
.playback-info {
|
.playback-info {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin: 6px;
|
margin : 6px;
|
||||||
|
|
||||||
.song-name {
|
.song-name {
|
||||||
text-align: left;
|
text-align : left;
|
||||||
font-size: 0.98em;
|
font-size : 0.98em;
|
||||||
font-weight: 500;
|
font-weight : 500;
|
||||||
width: 100%;
|
width : 100%;
|
||||||
-webkit-mask-image: linear-gradient(-90deg, transparent 0%, transparent 10%, black 20%);
|
-webkit-mask-image: linear-gradient(-90deg, transparent 0%, transparent 10%, black 20%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.song-artist, .song-album {
|
.song-artist,
|
||||||
|
.song-album {
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
opacity: 0.8;
|
opacity : 0.8;
|
||||||
cursor: pointer;
|
cursor : pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
@ -267,23 +297,23 @@
|
||||||
|
|
||||||
.song-artist-album-content {
|
.song-artist-album-content {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: 12px;
|
font-size : 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
width: 100%;
|
width : 100%;
|
||||||
height: 100%;
|
height : 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
border: 0px;
|
border : 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-chrome--right {
|
.app-chrome--right {
|
||||||
width: 30%;
|
width : 30%;
|
||||||
flex: 0 0 auto;
|
flex : 0 0 auto;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue