1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/website/css/maloja.css

734 lines
9.7 KiB
CSS
Raw Normal View History

2018-12-08 02:01:44 +03:00
@import url('https://fonts.googleapis.com/css?family=Ubuntu');
body {
2018-12-16 19:52:13 +03:00
background-color:#333337;
2018-12-08 02:01:44 +03:00
color:beige;
font-family:"Ubuntu";
padding:15px;
2019-03-10 22:05:38 +03:00
padding-bottom:35px;
2019-03-06 19:50:36 +03:00
/**
padding-top:45px;
padding-bottom:25px;
**/
2019-04-07 14:12:54 +03:00
/*
font-size:1.65vh;
*/
2018-12-08 02:01:44 +03:00
}
2018-12-16 19:52:13 +03:00
a {
2018-12-17 18:33:26 +03:00
color:inherit;
2018-12-16 19:52:13 +03:00
text-decoration:none;
}
2019-03-04 19:39:21 +03:00
a.textlink {
color:gold;
}
2019-04-02 18:50:04 +03:00
a.hidelink:hover {
text-decoration:none;
}
2019-03-04 19:39:21 +03:00
2018-12-16 19:52:13 +03:00
a:hover {
text-decoration:underline;
}
2019-02-17 18:27:55 +03:00
input[type="date"] {
background-color:inherit;
color:inherit;
outline: none;
border:0px;
font-family: inherit;
font-size: inherit;
}
2019-02-17 18:27:55 +03:00
/**
2019-03-06 20:04:12 +03:00
Header (unused)
2019-03-06 19:50:36 +03:00
**/
2019-03-06 20:04:12 +03:00
/**
2019-03-06 19:50:36 +03:00
div.header {
position:fixed;
height:45px;
width:100%;
background-color:rgba(255,215,0,1);
top:0px;
left:0px;
padding:10px;
opacity:1;
2019-03-24 16:56:34 +03:00
2019-03-06 19:50:36 +03:00
color:black;
2019-03-24 16:56:34 +03:00
2019-03-06 19:50:36 +03:00
z-index:5;
}
div.header h1 {
margin:5px;
}
2019-03-06 20:04:12 +03:00
**/
2019-03-06 19:50:36 +03:00
/**
Footer
2019-02-17 18:27:55 +03:00
**/
div.footer {
position:fixed;
height:20px;
2019-03-06 19:50:36 +03:00
/**width:100%;**/
2019-03-10 19:38:33 +03:00
background-color:rgba(10,10,10,0.9);
2019-02-17 18:27:55 +03:00
bottom:0px;
left:0px;
2019-03-06 19:50:36 +03:00
right:0px;
2019-02-17 18:27:55 +03:00
padding:10px;
2019-03-06 21:35:35 +03:00
opacity:1;
2019-02-17 18:27:55 +03:00
}
2019-03-06 19:50:36 +03:00
div.footer div:nth-child(1) {
display:inline-block;
width:40%;
text-align:left;
}
div.footer div:nth-child(2) {
display:inline-block;
width:19%;
text-align:center;
color:gold;
2019-04-07 14:12:54 +03:00
font-size:110%;
2019-03-06 19:50:36 +03:00
}
div.footer div:nth-child(3) {
display:inline-block;
width:40%;
text-align:right;
}
2019-02-17 18:27:55 +03:00
div.footer span a {
padding-left:20px;
background-repeat:no-repeat;
background-size:contain;
background-position:left;
background-image:url("https://github.com/favicon.ico");
}
2019-03-06 19:50:36 +03:00
div.footer input {
background-color:inherit;
border:0px;
border-bottom:1px solid beige;
color:beige;
2019-04-07 14:12:54 +03:00
font-size:90%;
2019-03-06 19:50:36 +03:00
width:70%;
padding-left:5px;
padding-right:5px;
padding-top:2px;
padding-bottom:2px;
font-family:"Ubuntu";
}
div.footer input:focus {
outline:none;
/**background-color:rgba(245,245,220,0.05);**/
2019-03-24 16:56:34 +03:00
2019-03-06 19:50:36 +03:00
}
div.searchresults {
position:fixed;
bottom:50px;
right:20px;
width:500px;
background-color:rgba(10,10,10,0.99);
padding:15px;
}
div.searchresults>span {
font-size:20px;
font-weight:bold;
}
div.searchresults table {
width:100%;
2019-03-06 21:35:35 +03:00
border-spacing:0px 4px;
2019-03-06 19:50:36 +03:00
}
div.searchresults tr {
background-color:rgba(5,5,5,1);
margin-top:5px;
margin-bottom:5px;
height:50px;
cursor:pointer;
2019-03-24 16:56:34 +03:00
2019-03-06 19:50:36 +03:00
}
div.searchresults tr:hover {
background-color:rgba(35,35,35,1);
}
div.searchresults tr td.image {
height:50px;
width:50px;
background-size:cover;
background-position:center;
}
2019-03-06 21:35:35 +03:00
div.searchresults tr td:nth-child(2) {
padding-left:10px;
2019-03-06 19:50:36 +03:00
}
div.searchresults table.searchresults_tracks td span:nth-child(1) {
font-size:12px;
color:grey;
}
2019-04-07 14:12:54 +03:00
@media (max-width: 1000px) {
div.footer {
position:fixed;
/*height:30px;*/
/**width:100%;**/
background-color:rgba(10,10,10,0.9);
bottom:0px;
left:0px;
right:0px;
padding:3px;
2019-04-07 14:12:54 +03:00
opacity:1;
}
div.footer div:nth-child(1) {
display:none;
}
div.footer div:nth-child(2) {
display:inline-block;
width:20%;
text-align:center;
color:gold;
}
div.footer div:nth-child(3) {
display:inline-block;
width:70%;
text-align:right;
}
div.footer input {
width:90%;
}
}
2019-02-02 18:54:01 +03:00
/*
**
**
** TOP INFO TABLE
**
**
*/
2018-12-19 17:28:10 +03:00
2018-12-16 19:52:13 +03:00
table.top_info td.image {
padding:20px;
2018-12-17 01:56:30 +03:00
padding-left:0px;
padding-top:0px;
2018-12-16 19:52:13 +03:00
}
2018-12-17 18:33:26 +03:00
table.top_info td.image div {
background-size:cover;
background-position:center;
height:174px;
width:174px
}
2018-12-16 19:52:13 +03:00
table.top_info td.text {
vertical-align: top;
padding-left: 30px;
}
2018-12-17 01:56:30 +03:00
table.top_info td.text h1 {
display:inline;
padding-right:5px;
}
2018-12-26 19:42:55 +03:00
p.desc a {
padding-left:20px;
background-repeat:no-repeat;
background-size:contain;
background-position:left;
background-image:url("https://www.last.fm/static/images/lastfm_avatar_twitter.66cd2c48ce03.png");
}
2019-02-02 18:54:01 +03:00
2018-12-22 02:31:27 +03:00
/*
2019-02-02 18:54:01 +03:00
**
**
** SPECIAL TEXT BITS
**
**
2018-12-22 02:31:27 +03:00
*/
2019-02-02 18:54:01 +03:00
2018-12-22 02:31:27 +03:00
.stats {
color:grey;
}
.rank {
text-align:right;
color:grey;
}
.extra {
color:gray; /*sue me*/
font-size:80%;
}
2019-04-07 14:20:53 +03:00
input#apikey {
font-family:'Ubuntu';
outline:none;
border: 0px solid;
padding:2px;
}
2019-04-04 21:07:03 +03:00
2019-05-14 13:50:31 +03:00
input.simpleinput {
font-family:'Ubuntu';
color:beige;
outline:none;
border-top: 0px solid;
border-left: 0px solid;
border-right: 0px solid;
padding:2px;
background-color:inherit;
border-bottom: 1px solid beige;
}
a {
cursor:pointer;
}
2018-12-22 02:31:27 +03:00
2019-02-02 18:54:01 +03:00
span.stat_selector_pulse,span.stat_selector_topartists,span.stat_selector_toptracks {
2019-03-03 15:38:53 +03:00
cursor:pointer;
}
2019-04-02 18:50:04 +03:00
/* SHINY*/
.medal {
top:5px;
2019-04-02 17:53:57 +03:00
font-size:80%;
padding:3px;
margin:2px;
border-radius:2px;
}
2019-04-09 14:34:06 +03:00
.shiny {
overflow: hidden;
position:relative;
display: inline-block;
}
.shiny:after {
2019-04-02 18:50:04 +03:00
content: "";
position: absolute;
top: -110%;
left: -210%;
width: 200%;
height: 200%;
opacity: 0;
transform: rotate(30deg);
background: rgba(255, 255, 255, 0.13);
background: linear-gradient(
to right,
rgba(255, 255, 255, 0.13) 0%,
rgba(255, 255, 255, 0.13) 77%,
rgba(255, 255, 255, 0.5) 92%,
rgba(255, 255, 255, 0.0) 100%
);
}
2019-04-09 14:34:06 +03:00
.shiny:hover:after {
2019-04-02 18:50:04 +03:00
opacity: 1;
top: -30%;
left: -30%;
transition-property: left, top, opacity;
transition-duration: 0.7s, 0.7s, 0.15s;
transition-timing-function: ease;
}
2019-04-09 14:34:06 +03:00
.shiny:active:after {
2019-04-02 18:50:04 +03:00
opacity: 0;
2019-04-02 17:53:57 +03:00
}
2019-04-02 18:50:04 +03:00
a.gold {
2019-04-02 17:53:57 +03:00
background-color:gold;
color:black;
}
a.silver {
2019-04-02 17:53:57 +03:00
background-color:silver;
color:black;
}
a.bronze {
2019-04-03 12:59:34 +03:00
background-color:#cd7f32;
2019-04-02 17:53:57 +03:00
color:black;
}
img.certrecord {
height:30px;
vertical-align: text-bottom;
}
img.certrecord_small {
height:20px;
vertical-align: text-bottom;
}
2019-02-02 18:54:01 +03:00
/*
**
**
** LISTS
**
**
*/
table.twopart {
width:100%;
}
2019-05-08 12:13:44 +03:00
table.twopart>tbody>tr>td {
width:50%;
}
2019-02-02 18:54:01 +03:00
2018-12-22 02:31:27 +03:00
table.list {
border-collapse:collapse;
2019-03-24 16:56:34 +03:00
2018-12-22 02:31:27 +03:00
}
table.list tr td {
2018-12-22 02:31:27 +03:00
border-bottom:2px solid;
2019-02-15 17:17:29 +03:00
border-color:rgba(0,0,0,0);
white-space: nowrap;
overflow:hidden;
text-overflow:ellipsis;
padding-right:15px;
/*line-height: 140%;*/
2019-03-24 16:56:34 +03:00
2018-12-22 02:31:27 +03:00
}
2018-12-28 20:06:09 +03:00
table.list tr:nth-child(even) {
background-color:#37373B;
}
2018-12-28 20:06:09 +03:00
table.list tr:nth-child(5n) td {
2018-12-22 02:31:27 +03:00
border-color:rgba(120,120,120,0.2);
2019-03-24 16:56:34 +03:00
2018-12-22 02:31:27 +03:00
}
2018-12-28 20:06:09 +03:00
table.list tr:hover {
background-color:#404044;
}
2019-02-15 17:17:29 +03:00
table.list td.time {
width:11%;
2019-03-24 16:56:34 +03:00
color:gray;
}
2018-12-28 20:06:09 +03:00
2019-02-15 17:17:29 +03:00
2019-04-04 21:07:03 +03:00
table.list tr td.rank {
padding-right: 4px;
}
table.list tr td.rankup {
color:green;
padding-right: 8px;
2019-04-05 18:22:52 +03:00
font-size: 80%;
2019-04-04 21:07:03 +03:00
}
table.list tr td.rankdown {
color:red;
padding-right: 8px;
2019-04-05 18:22:52 +03:00
font-size: 80%;
2019-04-04 21:07:03 +03:00
}
table.list tr td.ranksame {
color:grey;
padding-right: 8px;
2019-04-05 18:22:52 +03:00
font-size: 80%;
2019-04-04 21:07:03 +03:00
}
2019-02-15 17:17:29 +03:00
table.list tr td.icon {
2019-02-03 18:52:37 +03:00
padding:0px;
2019-02-03 19:36:21 +03:00
padding-right:5px;
2019-02-15 17:17:29 +03:00
width:20px;
2019-02-03 18:52:37 +03:00
}
2019-02-15 17:17:29 +03:00
table.list td.icon div {
2018-12-28 20:06:09 +03:00
width:20px;
height:20px;
background-size:cover;
background-position:center;
}
2019-06-11 11:17:54 +03:00
table.list td.artists,td.artist,td.title,td.track {
2019-02-03 19:36:21 +03:00
min-width:100px;
2019-03-24 16:56:34 +03:00
}
2019-06-11 11:17:54 +03:00
table.list td.track span.artist_in_trackcolumn {
color:#bbb;
}
2019-03-24 16:56:34 +03:00
2019-03-24 18:19:45 +03:00
2018-12-23 01:19:52 +03:00
/*
table td.artists div {
overflow:hidden;
z-index:1;
position:relative;
}
table tr td.artists div span {
//text-overflow:ellipsis;
z-index:-2;
position:relative;
white-space:nowrap;
2019-03-24 16:56:34 +03:00
2018-12-23 01:19:52 +03:00
}
table tr:hover td.artists div span {
animation: bounce 3s linear infinite alternate;
}
2018-12-23 01:19:52 +03:00
@keyframes bounce {
0% {
2019-03-24 16:56:34 +03:00
2018-12-23 01:19:52 +03:00
}
100% {
//transform: translateX(-60px);
//margin-left:-60px;
margin-left:-100%;
}
}
**/
2019-02-15 17:17:29 +03:00
table.list td.amount {
2018-12-22 02:31:27 +03:00
width:50px;
text-align:right;
}
2019-02-15 17:17:29 +03:00
table.list td.bar {
width:500px;
background-color:#333337;
2019-02-15 17:17:29 +03:00
/* Remove 5er separators for bars */
/*border-color:rgba(0,0,0,0)!important;*/
2018-12-22 02:31:27 +03:00
}
2019-02-15 17:17:29 +03:00
table.list td.bar div {
2018-12-22 02:31:27 +03:00
background-color:beige;
height:20px; /* can only do this absolute apparently */
position:relative;
}
2019-02-15 17:17:29 +03:00
table.list tr:hover td.bar div {
2018-12-22 02:31:27 +03:00
background-color:yellow;
cursor:pointer;
}
2019-04-09 14:34:06 +03:00
table.list td.chart {
width:500px;
background-color:#333337;
/* Remove 5er separators for bars */
/*border-color:rgba(0,0,0,0)!important;*/
}
table.list td.chart div {
/*background-color:beige;
height:4px;
*/
height:20px;
background-color: rgba(0,0,0,0.1);
border-radius: 0px 30px 30px 0px;
background-image:url("/media/chartpos_normal.png");
background-position: right;
background-repeat:no-repeat;
2019-04-30 21:04:59 +03:00
background-size: auto 100%;
2019-04-09 14:34:06 +03:00
position:relative;
2019-04-09 14:34:06 +03:00
}
table.list tr:hover td.chart div {
cursor:pointer;
}
table.list tr td.chart div.gold {
/*background-color:gold;*/
background-image:url("/media/chartpos_gold.png");
2019-04-09 14:34:06 +03:00
}
table.list tr td.chart div.silver {
/*background-color:silver;*/
background-image:url("/media/chartpos_silver.png");
2019-04-09 14:34:06 +03:00
}
table.list tr td.chart div.bronze {
/*background-color:#cd7f32;*/
background-image:url("/media/chartpos_bronze.png");
2019-04-09 14:34:06 +03:00
}
2019-02-15 17:17:29 +03:00
table.list tr td.button {
width:200px;
cursor:pointer;
2019-02-15 17:17:29 +03:00
border-color:rgba(0,0,0,0)!important;
}
2019-02-15 17:17:29 +03:00
table.list td.button div {
background-color:yellow;
color:#333337;
padding:3px;
border-radius:4px;
}
td.button.important div {
background-color:red;
color:white;
}
2019-02-02 18:54:01 +03:00
2019-03-24 18:19:45 +03:00
table.misc {
margin-left:20px;
}
table.misc td {
padding-right:20px;
color:#bbbbaa;
}
2019-02-02 18:54:01 +03:00
2019-03-24 18:19:45 +03:00
table.misc th {
text-align: left;
}
table.misc td.interaction {
width:65px;
}
2019-02-02 18:54:01 +03:00
/*
**
**
** IMAGE TILES
**
**
*/
table.tiles_top td {
padding:0px;
border:0px;
}
2019-02-02 22:51:04 +03:00
table.tiles_top:hover td td {
2019-04-17 12:00:16 +03:00
opacity:0.5;
filter: grayscale(80%);
2019-02-02 20:54:06 +03:00
}
2019-02-02 22:51:04 +03:00
table.tiles_top:hover td td:hover {
2019-02-02 20:54:06 +03:00
opacity:1;
2019-04-17 12:00:16 +03:00
filter: grayscale(0%);
2019-02-02 20:54:06 +03:00
}
2019-02-02 18:54:01 +03:00
table.tiles_top, table.tiles_sub {
border-collapse: collapse;
}
table.tiles_top>tbody>tr>td {
height:300px;
width:300px;
}
table.tiles_sub {
height:100%;
width:100%;
}
2019-02-02 20:54:06 +03:00
table.tiles_top td {
2019-02-02 18:54:01 +03:00
background-size:cover;
background-position:center;
2019-02-02 20:54:06 +03:00
vertical-align:bottom;
}
table.tiles_top td span {
background-color:rgba(0,0,0,0.7);
2019-02-02 18:54:01 +03:00
}
2019-02-02 22:51:04 +03:00
table.tiles_1x1 td {
height:100%;
width:100%;
font-size:100%
}
2019-02-02 18:54:01 +03:00
table.tiles_2x2 td {
height:50%;
width:50%;
font-size:90%
}
table.tiles_3x3 td {
height:33.333%;
width:33.333%;
font-size:70%
}
2019-02-03 18:52:37 +03:00
/*
**
**
** Pulse / performance thingies
**
**
*/
2019-04-30 19:39:08 +03:00
span.stat_module_pulse, span.stat_module_topartists, span.stat_module_toptracks {
display: inline-block;
vertical-align: top;
}
2019-02-03 18:52:37 +03:00
/*
**
**
** SIDE LIST ON START PAGE
**
**
*/
@media (min-width: 1600px) {
2019-02-03 18:52:37 +03:00
div.sidelist {
position:absolute;
right:0px;
top:0px;
width:40%;
height:100%;
background-color:#444447;
padding-left:30px;
2019-02-15 17:17:29 +03:00
padding-right:30px;
2019-02-03 18:52:37 +03:00
}
}
2019-02-15 17:17:29 +03:00
div.sidelist table {
width:100%;
table-layout:fixed;
}
div.sidelist table.list td.time {
2019-03-24 16:56:34 +03:00
width:17%;
2019-02-15 17:17:29 +03:00
}