Pony.fm/resources/assets/styles/account-content.less

269 lines
4.6 KiB
Text
Raw Normal View History

/**
* Pony.fm - A community for pony fan music.
2018-04-21 06:25:36 +02:00
* Copyright (C) 2015 Feld0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2015-09-12 13:19:18 +02:00
@import 'base/bootstrap/bootstrap';
@import 'mixins';
ul.playlists {
overflow-y: auto;
margin: 0px;
padding: 0px;
list-style: none;
margin: 0px 5px;
margin-top: 10px;
li {
2015-10-25 03:35:37 +01:00
overflow: hidden;
margin: 0px;
padding: 0px;
height: 40px;
border-bottom: 1px solid #ddd;
img {
border-right: 1px solid #ddd;
padding: 0px;
display: block;
height: 40px;
width: 40px;
float: left;
}
.btn-group {
float: right;
display: block;
margin-top: 7px;
margin-right: 7px;
.btn {
.border-radius(0px);
}
}
a.main {
display: block;
text-decoration: none;
color: #444;
.is-public {
display: block;
float: right;
font-weight: bold;
margin-top: 10px;
margin-right: 10px;
font-size: 8pt;
}
.title {
.ellipsis();
margin-left: 50px;
line-height: 40px;
height: 40px;
display: block;
}
&:hover {
background: #eee;
}
}
2015-09-12 13:19:18 +02:00
}
}
.image-selector {
width: 500px;
max-height: 300px;
overflow-y: auto;
ul {
2015-10-25 03:35:37 +01:00
list-style: none;
padding: 0px;
margin: 0px;
li {
margin: 0px;
float: left;
width: 20%;
cursor: pointer;
img {
.transition(all 400ms);
display: block;
width: 100px;
height: 100px;
}
&:hover {
img {
opacity: .8;
}
}
}
2015-09-12 13:19:18 +02:00
}
}
html {
.two-pane-view.closed {
2015-10-25 03:35:37 +01:00
.account-albums-listing {
li {
.box-sizing(border-box);
width: 20%;
a {
padding: 15px;
.image {
.img-thumbnail();
2015-10-25 03:35:37 +01:00
position: relative;
left: -5px;
width: 100%;
height: auto;
float: none;
}
.title {
margin: 0px;
font-size: 12pt;
padding: 0px;
margin-top: 5px;
}
.published {
margin: 0px;
padding: 0px;
}
}
}
}
2015-09-12 13:19:18 +02:00
}
}
.account-tracks-listing, .account-albums-listing {
overflow-y: auto;
margin: 0px;
padding: 0px;
list-style: none;
li {
2015-10-25 03:35:37 +01:00
.box-sizing(border-box);
padding: 0px;
margin: 0px;
line-height: normal;
&.empty {
.alert();
float: none !important;
width: auto !important;
display: block;
padding: 5px;
font-size: 9pt;
}
&.is-not-published a {
background: fadeout(@brand-warning, 90%);
2015-10-25 03:35:37 +01:00
}
&.selected, &.selected:hover {
a {
background: @pfm-purple;
cursor: default;
color: #fff;
.published {
color: #eee;
}
}
}
a {
.transition(350px ease-out all);
display: block;
margin: 0px;
padding: 5px;
font-size: 9pt;
font-weight: normal;
overflow: hidden;
.image {
width: 32px;
height: 32px;
float: left;
display: block;
}
.title {
.ellipsis();
display: block;
margin-left: 37px;
}
.published {
display: block;
color: #777;
margin-left: 37px;
font-size: 8pt;
}
&:hover {
background: #ddd;
text-decoration: none;
}
}
2015-09-12 13:19:18 +02:00
}
}
// Used in the Accounts > Tracks area
2015-09-12 13:19:18 +02:00
.two-pane-view {
.editor {
2015-10-25 03:35:37 +01:00
display: none;
2015-09-12 13:19:18 +02:00
}
&.closed {
2015-10-25 03:35:37 +01:00
.account-tracks-listing, .account-albums-listing {
.clearfix();
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
li {
float: left;
width: 25%;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.empty {
}
}
}
2015-09-12 13:19:18 +02:00
}
&.open {
2015-10-25 03:35:37 +01:00
.list {
border-right: 2px solid #ddd;
width: 250px;
float: left;
}
.editor {
margin-left: 260px;
margin-right: 10px;
display: block;
.stretch-to-bottom {
padding-right: 10px;
}
}
2015-09-12 13:19:18 +02:00
}
}