Pony.fm/public/styles/layout.less

697 lines
9.2 KiB
Text
Raw Normal View History

2013-07-31 13:47:16 +02:00
@import-once 'base/bootstrap/bootstrap';
@import-once 'mixins';
2013-07-25 23:33:04 +02:00
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;
}
2013-07-30 06:53:57 +02:00
ui-view {
display: block;
&:before {
.transition(opacity 250ms);
opacity: 0;
background: #fff;
content: ' ';
top: 0px;
left: 0px;
2013-07-31 13:47:16 +02:00
z-index: 999;
2013-07-30 06:53:57 +02:00
width: 0px;
height: 0px;
position: absolute;
display: block;
overflow: hidden;
}
&.loading {
position: relative;
&:before {
opacity: .8;
width: 100%;
height: 100%;
}
}
}
2013-07-25 23:33:04 +02:00
header {
.clearfix();
2013-07-31 13:47:16 +02:00
.box-shadow(0px 1px 8px rgba(0, 0, 0, 0.2));
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;
2013-08-01 10:57:08 +02:00
width: 40px;
height: 40px;
2013-07-25 23:33:04 +02:00
background: #aaa;
2013-08-01 10:57:08 +02:00
img {
display: block;
width: 100%;
height: 100%;
}
2013-07-25 23:33:04 +02:00
}
.transport {
2013-08-01 10:57:08 +02:00
margin-top: -3px;
margin-bottom: 3px;
margin-left: 46px;
2013-07-25 23:33:04 +02:00
height: 5px;
background: #555;
position: relative;
margin-right: 6px;
2013-08-01 10:57:08 +02:00
cursor: pointer;
2013-07-25 23:33:04 +02:00
2013-08-01 10:57:08 +02:00
&:hover {
}
.bar, .loader-bar {
2013-07-25 23:33:04 +02:00
position: absolute;
height: 100%;
top: 0px;
left: 0px;
}
2013-08-01 10:57:08 +02:00
.loader-bar {
background: #888;
z-index: 200;
}
.bar {
background: #fd8500;
z-index: 500;
}
2013-07-25 23:33:04 +02:00
}
.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;
2013-08-01 10:57:08 +02:00
margin-top: 3px;
margin-right: 5px;
2013-07-25 23:33:04 +02:00
li {
float: left;
margin: 0px;
padding: 0px;
2013-08-01 10:57:08 +02:00
position: relative;
2013-07-25 23:33:04 +02:00
a {
display: block;
float: left;
font-size: 16px;
padding: 5px 10px;
color: #ddd;
}
2013-08-01 10:57:08 +02:00
.volume-slider {
.box-shadow(0px 5px 9px rgba(50, 50, 50, 0.5));
position: absolute;
border-bottom: 1px solid #fff;
border-top: 3px solid #3366CC;
top: 30px;
background: #eee;
list-style: none;
margin: 0px;
display: none;
width: 100%;
padding: 10px 0px;
z-index: 300;
.bar {
width: 5px;
height: 180px;
background: #aaa;
margin: auto;
position: relative;
cursor: pointer;
.knob {
.border-radius(20px);
height: 15px;
width: 15px;
display: block;
background: #1F3D7B;
border: 2px solid #1F3D7B;
position: absolute;
top: 0px;
left: -7px;
font-size: 1px;
padding: 0px;
}
}
}
&:hover, &.keep-open {
2013-07-25 23:33:04 +02:00
#gradient>.vertical(#fff, #ddd);
2013-08-01 10:57:08 +02:00
.volume-slider {
display: block;
}
2013-07-25 23:33:04 +02:00
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 {
2013-07-29 22:54:53 +02:00
.perspective();
2013-07-25 23:33:04 +02:00
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;
2013-07-29 22:54:53 +02:00
position: relative;
2013-07-25 23:33:04 +02:00
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
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
}
}
}
2013-07-29 22:54:53 +02:00
.inner-view {
position: relative;
> div {
width: 100%;
height: 100%;
background: #fff;
position: relative;
}
}
2013-07-25 23:33:04 +02:00
.site-content {
h1, h2 {
2013-07-28 23:51:35 +02:00
border: none;
background: none;
color: #747474;
font-weight: 300;
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;
}
.subtitle {
font-size: 10pt;
display: block;
padding: 3px 0px;
a {
float: none;
display: inline;
}
}
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
border-bottom: 2px solid #ddd;
margin-bottom: 2px;
2013-07-25 23:33:04 +02:00
}
2013-08-01 04:47:21 +02:00
}
2013-07-25 23:33:04 +02:00
2013-08-01 04:47:21 +02:00
html {
.tabs {
2013-07-25 23:33:04 +02:00
.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));
}
.stretch-to-bottom {
overflow-y: auto;
2013-07-25 23:33:04 +02:00
}