Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 1 | body { |
| 2 | background-image: url('https://images.unsplash.com/photo-1428196457394-f0c4aec5f574?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80'); |
| 3 | background-size: cover; |
| 4 | } |
| 5 | |
| 6 | header { |
| 7 | margin-top: 25px; |
| 8 | margin-bottom: 100px; |
| 9 | font-family: 'Open Sans'; |
| 10 | display: block; |
| 11 | } |
| 12 | |
| 13 | header a { |
| 14 | font-size: 40px; |
| 15 | text-decoration: none; |
| 16 | } |
| 17 | |
| 18 | header #leftlinks { |
| 19 | padding-left: 20px; |
| 20 | float: left; |
| 21 | } |
| 22 | |
| 23 | header #rightlinks { |
| 24 | margin-right: 20px; |
| 25 | float: right; |
| 26 | } |
| 27 | |
| 28 | div#outter-container { |
| 29 | width: 95%; |
| 30 | margin: 32px auto; |
| 31 | } |
| 32 | |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 33 | #inner-container { |
| 34 | background-color: white; |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 35 | padding: 25px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | p { |
| 39 | font-size: 16px; |
| 40 | text-align: justify; |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 41 | display: none; |
| 42 | width: 95%; |
| 43 | margin: auto; |
| 44 | margin-bottom: 25px; |
| 45 | } |
| 46 | |
| 47 | #table-container { |
| 48 | overflow: scroll; |
| 49 | } |
| 50 | |
| 51 | div#table-container { |
| 52 | display: inline-block; |
| 53 | width: 100%; |
| 54 | margin: 0 auto; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | table#ranking { |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 58 | font-size: 48px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 59 | text-align: center; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 60 | font-family: 'Open Sans'; |
Andreu | 779c3b7 | 2019-09-24 03:14:35 +0200 | [diff] [blame] | 61 | margin: 25px auto; |
| 62 | width: 95%; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | table#ranking td { |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 66 | padding: 15px; |
| 67 | height: 50px; |
| 68 | |
| 69 | max-width: 400px; |
| 70 | text-overflow: ellipsis; |
| 71 | white-space: nowrap; |
| 72 | overflow: hidden; |
| 73 | } |
| 74 | |
| 75 | td div.username { |
| 76 | font-size: 40px; |
| 77 | } |
| 78 | |
| 79 | td div.userinfo { |
| 80 | font-size: 36px; |
| 81 | color: rgb(100,100,100); |
| 82 | } |
| 83 | |
| 84 | td.name { |
| 85 | text-align: left; |
| 86 | } |
| 87 | |
| 88 | tr#header th { |
| 89 | text-align: center; |
| 90 | padding-top: 10px; |
| 91 | padding-bottom: 10px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | tr.gold { |
| 95 | background-color: rgba(255, 225, 0, 0.3); |
| 96 | } |
| 97 | |
| 98 | tr.silver { |
| 99 | background-color: rgba(200, 200, 200, 0.3); |
| 100 | } |
| 101 | |
| 102 | tr.bronze { |
| 103 | background-color: rgba(200, 125, 50, 0.3); |
| 104 | } |
| 105 | |
| 106 | tr.me { |
| 107 | background-color: rgba(50, 50, 255, 0.3); |
| 108 | } |
| 109 | |
| 110 | tr.top3 td:first-child::before { |
| 111 | content: ''; |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame] | 112 | background-size: 48px 48px; |
| 113 | width: 48px; |
| 114 | height: 48px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 115 | float: left; |
| 116 | position: relative; |
| 117 | top: 0px; |
| 118 | left: 5px; |
| 119 | } |
| 120 | |
| 121 | tr.gold td:first-child::before { |
| 122 | background-image: url('../bin/images/first.png'); |
| 123 | } |
| 124 | |
| 125 | |
| 126 | tr.silver td:first-child::before { |
| 127 | background-image: url('../bin/images/second.png'); |
| 128 | } |
| 129 | |
| 130 | |
| 131 | tr.bronze td:first-child::before { |
| 132 | background-image: url('../bin/images/third.png'); |
| 133 | } |