From 9de8a3f384d523e6fc69d1d384e3e60c2190c58b Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Tue, 15 Mar 2016 18:19:56 -0700 Subject: [PATCH] Fixed a CSS bug in the album editor. --- resources/assets/styles/account-albums.less | 63 +++++++++++++++++++ resources/assets/styles/app.less | 1 + .../styles/components/track-editor.less | 44 ------------- 3 files changed, 64 insertions(+), 44 deletions(-) create mode 100644 resources/assets/styles/account-albums.less diff --git a/resources/assets/styles/account-albums.less b/resources/assets/styles/account-albums.less new file mode 100644 index 00000000..f1c9fef4 --- /dev/null +++ b/resources/assets/styles/account-albums.less @@ -0,0 +1,63 @@ +/** + * Pony.fm - A community for pony fan music. + * Copyright (C) 2016 Peter Deltchev + * + * 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 . + */ + +@import 'base/bootstrap/bootstrap'; +@import 'mixins'; + +.album-track-listing { + padding: 0; + clear: both; + margin: 10px 0 0; + list-style: none; + + li { + overflow: hidden; + line-height: normal; + padding: 0; + margin: 0; + font-size: 8pt; + border-bottom: 1px dashed #ddd; + + div { + padding: 2px; + } + + span { + display: block; + float: left; + margin-left: 5px; + margin-top: 2px; + } + + .btn { + line-height: normal; + padding: 2px 5px; + margin: 0; + } + + &.ui-sortable-helper { + #gradient> .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%)); + border: none; + color: #fff; + } + + &.ui-sortable-placeholder { + background: @yellow; + } + } +} diff --git a/resources/assets/styles/app.less b/resources/assets/styles/app.less index 2cee70af..92413476 100644 --- a/resources/assets/styles/app.less +++ b/resources/assets/styles/app.less @@ -23,6 +23,7 @@ @import 'mixins'; @import 'layout'; @import 'account-content'; +@import 'account-albums'; @import 'admin'; @import 'components/components'; @import 'forms'; diff --git a/resources/assets/styles/components/track-editor.less b/resources/assets/styles/components/track-editor.less index 24c498a9..d8486fdc 100644 --- a/resources/assets/styles/components/track-editor.less +++ b/resources/assets/styles/components/track-editor.less @@ -27,50 +27,6 @@ } } - .album-track-listing { - padding: 0px; - clear: both; - margin: 0px; - margin-top: 10px; - list-style: none; - - li { - overflow: hidden; - line-height: normal; - padding: 0px; - margin: 0px; - font-size: 8pt; - border-bottom: 1px dashed #ddd; - - div { - padding: 2px; - } - - span { - display: block; - float: left; - margin-left: 5px; - margin-top: 2px; - } - - .btn { - line-height: normal; - padding: 2px 5px; - margin: 0px; - } - - &.ui-sortable-helper { - #gradient> .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%)); - border: none; - color: #fff; - } - - &.ui-sortable-placeholder { - background: @yellow; - } - } - } - .show-songs, .album { .btn { display: block;