2015-12-13 04:42:28 +00:00
|
|
|
@mixin vertical-center() {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2016-02-08 12:21:24 +00:00
|
|
|
@mixin artist-album-wrapper() {
|
2015-12-13 04:42:28 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
display: flex;
|
2016-02-08 12:21:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin artist-album-card() {
|
2015-12-13 04:42:28 +00:00
|
|
|
.item {
|
|
|
|
flex-direction: column;
|
|
|
|
margin-bottom: 16px;
|
2016-03-17 09:28:43 +00:00
|
|
|
width: 23.5%;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1200px) {
|
|
|
|
width: 32%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 960px) {
|
|
|
|
width: 48%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 320px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.with-extra-panel & {
|
|
|
|
width: 32%;
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1200px) {
|
|
|
|
width: 48%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 960px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
|
|
|
|
.cover {
|
|
|
|
@include vertical_center();
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
2016-03-17 09:28:43 +00:00
|
|
|
width: 100%;
|
|
|
|
padding-top: 100%;
|
2015-12-13 04:42:28 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.control {
|
2016-03-17 09:28:43 +00:00
|
|
|
$playBtnWidth: 96px;
|
2015-12-13 04:42:28 +00:00
|
|
|
display: none;
|
2016-03-17 09:28:43 +00:00
|
|
|
width: $playBtnWidth;
|
|
|
|
height: $playBtnWidth;
|
2015-12-13 04:42:28 +00:00
|
|
|
text-align: center;
|
2016-03-17 09:28:43 +00:00
|
|
|
line-height: $playBtnWidth;
|
2015-12-13 04:42:28 +00:00
|
|
|
font-size: 54px;
|
|
|
|
background: #111;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-indent: 5px;
|
|
|
|
opacity: .7;
|
|
|
|
border: 1px solid transparent;
|
2016-03-17 09:28:43 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
left: calc(50% - #{$playBtnWidth/2});
|
2015-12-13 04:42:28 +00:00
|
|
|
|
|
|
|
transition: .3s;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
border-color: #fff;
|
2016-03-17 09:28:43 +00:00
|
|
|
transform: translateY(-50%) scale(1.1);
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|
2016-01-07 01:39:38 +00:00
|
|
|
|
|
|
|
html.touchevents & {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 0;
|
|
|
|
transition: .3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&:before {
|
|
|
|
background-color: rgba(0, 0, 0, .4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.control {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
|
|
|
padding: 16px;
|
|
|
|
background: #333;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.meta {
|
|
|
|
color: $color2ndText;
|
|
|
|
margin-top: 4px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
2016-02-08 12:21:24 +00:00
|
|
|
a.name, a.artist {
|
|
|
|
display: block;
|
|
|
|
color: $colorMainText;
|
2015-12-13 04:42:28 +00:00
|
|
|
|
2016-02-08 12:21:24 +00:00
|
|
|
&:hover {
|
|
|
|
color: $colorHighlight;
|
|
|
|
}
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin inset-when-pressed() {
|
|
|
|
&:active {
|
|
|
|
box-shadow: inset 0px 10px 10px -10px rgba(0,0,0,1);
|
|
|
|
}
|
|
|
|
}
|
2015-12-19 16:36:44 +00:00
|
|
|
|
|
|
|
@mixin button-group() {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2016-01-03 10:24:12 +00:00
|
|
|
min-width: 192px;
|
|
|
|
justify-content: flex-end;
|
2015-12-19 16:36:44 +00:00
|
|
|
|
|
|
|
button {
|
|
|
|
$buttonHeight: 28px;
|
2016-01-03 10:24:12 +00:00
|
|
|
|
2015-12-19 16:36:44 +00:00
|
|
|
font-size: 12px;
|
|
|
|
height: $buttonHeight;
|
|
|
|
padding: 0 16px;
|
|
|
|
line-height: $buttonHeight;
|
|
|
|
text-transform: uppercase;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
border-radius: $buttonHeight/2 0px 0px $buttonHeight/2;
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
border-top-right-radius: $buttonHeight/2;
|
|
|
|
border-bottom-right-radius: $buttonHeight/2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
2016-02-08 12:21:24 +00:00
|
|
|
|
2015-12-19 16:36:44 +00:00
|
|
|
i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-01-03 10:24:12 +00:00
|
|
|
|
|
|
|
@mixin context-menu() {
|
|
|
|
font-weight: $fontWeight_Thin;
|
|
|
|
font-size: $fontSize;
|
2016-03-05 09:01:12 +00:00
|
|
|
padding: 4px 0;
|
|
|
|
min-width: 144px;
|
2016-01-03 10:24:12 +00:00
|
|
|
color: #111;
|
|
|
|
background-color: rgb(232, 232, 232);
|
2016-03-05 09:01:12 +00:00
|
|
|
position: fixed;
|
2016-01-03 10:24:12 +00:00
|
|
|
border-radius: 5px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
2016-03-05 09:01:12 +00:00
|
|
|
z-index: 1001;
|
2016-01-03 10:24:12 +00:00
|
|
|
align-items: stretch;
|
|
|
|
text-align: left;
|
|
|
|
box-shadow: inset 0 0px 0 rgba(255,255,255,.6), 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 1px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
input[type="search"], input[type="text"], input[type="email"], input[type="url"] {
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: $colorDirtyInputBgr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|