Pony.fm/resources/assets/styles/layout.less

337 lines
5.6 KiB
Text
Raw Normal View History

/**
* Pony.fm - A community for pony fan music.
* Copyright (C) 2015 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 <http://www.gnu.org/licenses/>.
*/
2015-09-12 13:19:18 +02:00
@import 'base/bootstrap/bootstrap';
@import 'mixins';
@import 'variables';
html body {
height: 100%;
2016-07-11 01:42:39 +02:00
background: #fff;
2016-07-11 02:49:34 +02:00
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
2015-09-12 13:19:18 +02:00
padding: 0px !important;
2016-05-31 01:59:04 +02:00
overflow-x: hidden;
2015-09-12 13:19:18 +02:00
}
header {
2015-10-25 03:35:37 +01:00
2015-09-12 13:19:18 +02:00
.user-details {
2015-10-25 03:35:37 +01:00
float: right;
2016-07-11 01:41:32 +02:00
margin-right: 20px;
2015-10-25 03:35:37 +01:00
margin-top: 9px;
2016-07-11 01:41:32 +02:00
position: absolute;
top: 0;
right: 0;
2015-10-25 03:35:37 +01:00
.avatar {
display: block;
float: right;
cursor: pointer;
2016-05-20 02:10:31 +02:00
text-decoration: none;
2016-07-11 01:41:32 +02:00
border-radius: 22px;
box-shadow: 0 0 0 transparent;
transition: box-shadow 0.3s @swift-ease-out;
2015-10-25 03:35:37 +01:00
2016-07-11 01:41:32 +02:00
&:hover {
.light-material-shadow(1);
2015-10-25 03:35:37 +01:00
}
2016-07-11 01:41:32 +02:00
&:focus {
.light-material-shadow(2);
2015-10-25 03:35:37 +01:00
}
}
.dropdown-menu {
2016-05-21 20:29:07 +02:00
left: auto !important;
2015-10-25 03:35:37 +01:00
right: 0px;
}
img {
2016-07-11 01:41:32 +02:00
height: 44px;
width: 44px;
border-radius: 22px;
2015-10-25 03:35:37 +01:00
}
2015-09-12 13:19:18 +02:00
}
}
.now-playing {
height: 64px;
background: #fff;
border-bottom: 1px solid #bcbcbc;
2016-07-11 01:41:32 +02:00
position: fixed;
2016-07-12 01:58:40 +02:00
width: ~"calc(100% - 180px)";
right: 0;
2016-07-11 01:41:32 +02:00
bottom: 0;
z-index: 1010;
2016-07-12 01:08:43 +02:00
box-shadow: 0 0 6px rgba(0,0,0,0.3);
2015-09-12 13:19:18 +02:00
}
.sidebar {
> a {
display: block;
float: left;
width: (@pfm-sidebar-size);
height: 64px;
line-height: 42px;
2016-07-11 01:41:32 +02:00
background: @pfm-logo-purple;
color: #fff;
font-size: 24pt;
font-weight: lighter;
position: relative;
z-index: 600;
font-family: 'Josefin Sans', sans-serif;
position: relative;
&:hover {
2016-07-11 01:41:32 +02:00
background: darken(@pfm-logo-purple, 15%);
color: #fff;
text-decoration: none;
}
img.logo {
padding-left: 6px;
width: 100%;
max-width: 94%;
padding-top: 13px;
}
}
2015-09-12 13:19:18 +02:00
background: #515151;
width: @pfm-sidebar-size;
height: 100%;
list-style: none;
padding: 0px;
margin: 0px;
font-size: 10pt;
position: absolute;
bottom: 0;
left: 0;
2016-07-11 01:41:32 +02:00
.material-shadow(3);
2015-09-12 13:19:18 +02:00
li {
2015-10-25 03:35:37 +01:00
margin: 0px;
padding: 0px;
line-height: normal;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
&.selected {
background: #fff;
2015-09-12 13:19:18 +02:00
2015-10-25 03:35:37 +01:00
> a, > a:hover {
cursor: default;
color: #000;
}
}
2015-09-12 13:19:18 +02:00
&.x-attribution {
position: absolute;
bottom: 0;
max-width: 100%;
margin: 0;
padding: 0;
text-align: right;
img {
width: 100%;
}
a {
padding: 10px;
}
span {
font-size: 90%;
text-transform: lowercase;
margin: 7px 0;
display: block;
}
}
2015-10-25 03:35:37 +01:00
h3 {
padding: 10px 25px;
padding-right: 10px;
margin: 0px;
font-size: 10pt;
color: #eee;
background: darken(#515151, 5%);
line-height: normal;
a {
display: block;
float: right;
width: 20px;
text-align: center;
color: #fff;
&:hover {
text-decoration: none;
color: #000;
}
}
}
.dropdown-menu a {
color: #000;
}
&:hover > a.dropdown-toggle {
display: block;
}
> a.dropdown-toggle {
float: right;
padding: 10px 0px;
display: none;
}
> a {
display: block;
2016-07-11 02:49:34 +02:00
padding: 12px 0 12px 22px;
2015-10-25 03:35:37 +01:00
overflow: hidden;
color: fadeout(#fff, 20%);
2016-07-11 03:04:53 +02:00
font-size: 14px;
2015-10-25 03:35:37 +01:00
&:hover {
color: #fff;
}
> i {
display: block;
float: right;
width: 20px;
text-align: center;
margin-right: 10px;
}
&:hover {
text-decoration: none;
}
}
2015-09-12 13:19:18 +02:00
}
li.none {
2015-10-25 03:35:37 +01:00
span {
display: block;
padding: 5px 25px;
color: #555;
font-style: italic;
}
2015-09-12 13:19:18 +02:00
}
}
.site-content {
2016-07-11 01:41:32 +02:00
overflow: hidden;
margin-left: @pfm-sidebar-size;
background: #fff;
height: 100%;
z-index: 100;
}
.site-body {
margin-top: @pfm-top-bar-size;
2015-09-12 13:19:18 +02:00
}
.file-over-notice {
2016-07-11 01:41:32 +02:00
display: none;
2015-09-12 13:19:18 +02:00
}
2016-05-03 14:01:50 +02:00
.chart-container {
2016-05-04 00:20:55 +02:00
width: 50%;
2016-05-03 14:01:50 +02:00
}
2016-05-04 00:20:55 +02:00
.chart-btn-container {
2016-05-03 14:01:50 +02:00
margin-bottom: 10px;
}
2016-07-11 01:41:32 +02:00
.top-bar {
display: block;
position: absolute;
2016-07-11 01:41:32 +02:00
z-index: 599;
background: @pfm-logo-purple;
height: @pfm-top-bar-size;
width: 100%;
top: 0;
2016-07-12 01:08:43 +02:00
.material-shadow(1);
2016-07-11 01:41:32 +02:00
.burger-wrapper {
top:20px;
left: 20px;
position: absolute;
display: none;
}
.logo {
display: none;
}
}
.burger {
width: 25px;
height: 20px;
top: 20px;
left: 20px;
}
.bun-top,.meat,.bun-bottom {
position: absolute;
display: block;
border-radius: 4px;
background: white;
width: 25px;
height: 2px;
}
.bun-top {
top: 0;
}
.meat {
top: 9px;
}
.bun-bottom {
bottom: 0;
}
2016-05-21 20:29:07 +02:00
.playlist-form .modal-footer {
margin-top: 20px;
}
2016-07-11 03:30:01 +02:00
.modal-content {
.material-shadow(3);
border: 0;
2016-07-12 00:23:44 +02:00
border-radius: 4px;
2016-07-11 03:30:01 +02:00
}
.modal-header {
border-bottom: 0;
padding: 15px 20px;
h4 {
margin-bottom: 0;
font-weight: 700;
}
}
.modal-body {
padding: 20px;
}
.modal-footer {
padding: 20px;
border-top: 0;
}