Pony.fm/public/styles/layout.less

619 lines
8.5 KiB
Text
Raw Normal View History

2013-07-25 23:33:04 +02:00
@import 'base/bootstrap/bootstrap';
@import 'mixins';
html, body {
height: 100%;
}
html body {
height: 100%;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
2013-07-28 23:51:35 +02:00
background: url('http://mlpforums.com/public/style_images/mlp/bg1.png');
}
.background-color {
background: rgba(42, 42, 42, 1);
position: fixed;
left: 0px;
top: 0px;
width: 50%;
height: 100%;
z-index: -5;
}
.background-one, .background-two {
z-index: -4;
background-repeat: no-repeat;
background-position: bottom right;
height: 100%;
width: 350px;
position: fixed;
background-size: 35%;
}
html .background-one {
background-image: url('/images/octavia.png');
background-position: bottom right;
opacity: .1;
}
html .background-two {
background-image: url('/images/vinyl.png');
background-position: bottom left;
opacity: .1;
display: none;
2013-07-25 23:33:04 +02:00
}
.site-content {
.perspective();
position: relative;
}
.site-content-animate-enter, .site-content-animate-leave {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.site-content-animate-enter {
.transition(all 400ms ease-out);
2013-07-28 20:50:02 +02:00
.transform(translate(0, -100%));
2013-07-25 23:33:04 +02:00
}
.site-content-animate-enter.site-content-animate-enter-active {
2013-07-28 20:50:02 +02:00
.transform(translate(0, 0));
2013-07-25 23:33:04 +02:00
}
.site-content-animate-leave {
.transition(all 400ms ease-out);
.transform(translate(0, 0));
}
.site-content-animate-leave.site-content-animate-leave-active {
2013-07-28 20:50:02 +02:00
.transform(translate(0, 100%));
2013-07-25 23:33:04 +02:00
}
header {
.clearfix();
2013-07-28 23:51:35 +02:00
background: #222;
2013-07-25 23:33:04 +02:00
> div {
max-width: 1200px;
margin: auto;
}
position: relative;
color: #fff;
h1 {
font-size: 14pt;
margin: 0px;
padding: 0px 10px;
line-height: 47px;
float: left;
width: 130px;
a {
text-decoration: none;
color: rgba(255, 255, 255, .6);
&:hover {
color: #aaa;
text-decoration: none;
}
}
}
.now-playing {
.clearfix();
margin-top: 5px;
2013-07-28 23:51:35 +02:00
padding-left: 5px;
margin-left: 149px;
2013-07-25 23:33:04 +02:00
background: #222;
.current-track {
margin-top: 4px;
}
.image {
float: left;
width: 35px;
height: 35px;
background: #aaa;
}
.transport {
2013-07-28 23:51:35 +02:00
display: none;
2013-07-25 23:33:04 +02:00
margin-top: 5px;
margin-left: 6px;
height: 5px;
background: #555;
position: relative;
margin-right: 6px;
.bar {
background: #fd8500;
position: absolute;
height: 100%;
top: 0px;
left: 0px;
}
}
.title {
margin-left: 45px;
.artist, .song {
.ellipsis();
display: block;
line-height: normal;
a:hover {
text-decoration: none;
color: #3587CC;
}
}
.artist a {
color: #ddd;
font-size: 8pt;
}
.song a {
color: #fff;
}
}
.buttons {
float: right;
margin: 0px;
padding: 0px;
list-style: none;
margin-top: 6px;
margin-right: 6px;
li {
float: left;
margin: 0px;
padding: 0px;
a {
display: block;
float: left;
font-size: 16px;
padding: 5px 10px;
color: #ddd;
}
&:hover {
#gradient>.vertical(#fff, #ddd);
a {
text-decoration: none;
color: #000;
}
}
}
}
}
nav ul {
.navigation-list-horiz();
float: left;
margin-top: 19px;
li {
line-height: 28px;
}
a {
position: relative;
padding: 0px 20px;
color: #ddd;
z-index: 1;
overflow: hidden;
.not-selectable();
border: none;
&:after {
#gradient>.vertical(#fff, #ddd);
}
&:before {
.transition(250ms top ease-out);
#gradient>.vertical(#5b9fdc, #1f79c2);
}
&:after, &:before {
position: absolute;
top: -100%;
left: 0px;
width: 100%;
height: 100%;
content: " ";
z-index: -1;
}
}
li.selected, li.selected:hover {
a {
cursor: default;
color: #fff;
&:after {
display: none;
}
&:before {
top: 0px;
}
}
}
li:hover {
a {
text-decoration: none;
color: #000;
&:after {
top: 0px;
}
}
}
}
}
.site-body {
max-width: 1200px;
margin: auto;
.sidebar {
height: 100%;
float: left;
width: 148px;
z-index: 2000;
nav {
h3 {
color: rgba(255, 255, 255, .6);
font-size: 12px;
padding: 5px;
2013-07-28 23:51:35 +02:00
background: #222;
2013-07-25 23:33:04 +02:00
line-height: normal;
font-weight: bold;
margin: 0px;
2013-07-28 19:45:21 +02:00
position: relative;
a {
.not-selectable();
display: block;
position: absolute;
right: 0px;
top: 0px;
padding: 5px;
line-height: normal;
text-decoration: none;
font-size: 12px;
width: 22px;
text-align: center;
color: rgba(255, 255, 255, .7);
&.selected, &.selected:hover {
color: @blue;
cursor: default;
}
&:hover {
color: #fff;
}
&.view-all {
right: 22px;
}
}
2013-07-25 23:33:04 +02:00
}
2013-07-28 19:45:21 +02:00
> ul {
2013-07-25 23:33:04 +02:00
margin: 0px;
padding: 0px;
list-style: none;
2013-07-28 19:45:21 +02:00
> li {
2013-07-25 23:33:04 +02:00
margin: 0px;
padding: 0px;
line-height: normal;
2013-07-28 19:45:21 +02:00
.dropdown-menu {
width: 148px;
min-width: 148px;
}
> a {
2013-07-25 23:33:04 +02:00
.border-radius(0px);
.not-selectable();
2013-07-28 19:45:21 +02:00
.ellipsis();
2013-07-25 23:33:04 +02:00
font-size: 12px;
margin: 0px;
border: none;
color: rgba(255, 255, 255, .7);
font-weight: bold;
padding: 8px 5px;
line-height: normal;
display: block;
text-decoration: none;
i {
float: right;
width: 22px;
text-align: center;
}
2013-07-28 19:45:21 +02:00
&:hover {
color: #fff;
}
&.menu {
float: right;
font-size: 15px;
display: none;
}
}
&:hover {
> a.menu {
display: block;
}
2013-07-25 23:33:04 +02:00
}
&.selected, &.selected:hover {
2013-07-28 19:45:21 +02:00
> a:not(.menu) {
color: @blue;
2013-07-25 23:33:04 +02:00
cursor: default;
}
}
&.none {
span {
display: block;
padding: 8px 12px;
color: #555;
font-style: italic;
font-size: 8pt;
}
}
}
}
}
}
.site-content {
overflow: hidden;
2013-07-28 23:51:35 +02:00
border: 5px solid #222;
2013-07-25 23:33:04 +02:00
border-top: none;
border-bottom: none;
height: 100%;
margin-left: 148px;
> div {
2013-07-28 23:51:35 +02:00
.box-sizing(border-box);
2013-07-25 23:33:04 +02:00
overflow: hidden;
width: 100%;
height: 100%;
background: #fff;
2013-07-28 23:51:35 +02:00
padding: 0px 15px;
padding-top: 10px;
2013-07-25 23:33:04 +02:00
}
}
}
.site-content {
h1 {
2013-07-28 23:51:35 +02:00
border: none;
background: none;
color: #747474;
font-weight: 300;
font-size: 24px;
2013-07-25 23:33:04 +02:00
line-height: normal;
font-weight: normal;
2013-07-28 23:51:35 +02:00
margin: 0px;
padding: 5px 0px;
a {
display: block;
float: right;
font-size: 10pt;
margin-top: 8px;
text-decoration: none;
}
2013-07-25 23:33:04 +02:00
}
> div > .tabs {
.clearfix();
list-style: none;
2013-07-28 23:51:35 +02:00
border-bottom: 4px solid #ddd;
2013-07-25 23:33:04 +02:00
margin: 0px;
padding: 0px;
li {
margin: 0px;
padding: 0px;
float: left;
a {
display: block;
2013-07-28 23:51:35 +02:00
border: none;
background: none;
color: #747474;
font-weight: 300;
font-size: 15px;
line-height: normal;
font-weight: normal;
padding: 5px 10px;
2013-07-25 23:33:04 +02:00
&:hover {
color: #000;
text-decoration: none;
}
}
&.active {
a {
color: #000;
2013-07-28 23:51:35 +02:00
border-bottom: 4px solid orange;
margin-bottom: -4px;
2013-07-25 23:33:04 +02:00
cursor: default;
}
}
}
}
}
.file-over-notice {
display: none;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .8);
color: #fff;
z-index: 10000;
p {
width: 300px;
margin: auto;
display: table-cell;
vertical-align: middle;
text-align: center;
font-size: 24pt;
font-weight: bold;
}
}
body.file-over {
.file-over-notice {
display: table;
}
}
html {
.modal-backdrop {
background: rgba(0, 0, 0, .9);
}
.modal {
.border-radius(0px);
}
.modal-header, .modal-footer {
.border-radius(0px);
}
}
.overlay {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .9);
}
.overlay.upload-dialog .inner {
.box-sizing(border-box);
max-width: 550px;
padding: 0px 20px;
padding-top: 10px;
height: 100%;
overflow-y: auto;
margin: auto;
h2 {
color: #fff;
font-size: 12pt;
margin: 0px;
span {
display: block;
float: right;
font-size: 9pt;
color: #ddd;
text-decoration: underline;
}
}
.close-button {
.border-radius(0px);
width: auto;
margin-bottom: 10px;
float: none;
display: block;
}
.uploads {
margin: 0px;
padding: 0px;
list-style: none;
li {
margin-bottom: 5px;
background: #000;
font-size: 9pt;
position: relative;
z-index: 1;
color: #fff;
border: 2px solid #444;
p {
margin: 5px;
padding: 0px;
}
.bar {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
background: @green;
z-index: -1;
}
&.has-error {
border-color: @red;
.bar {
display: none;
}
}
&.is-processing {
border-color: @blue;
.bar {
display: none;
}
}
}
}
}
.upload-queue-leave {
.transition(400ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all);
position: absolute;
display: block;
}
.upload-queue-leave.upload-queue-leave-active, .upload-queue-enter {
.transform(scale(0));
opacity: 0;
}
.upload-queue-leave {
.transform(scale(1));
}