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 | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 61 | margin: auto; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | table#ranking td { |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame^] | 65 | padding: 15px; |
| 66 | height: 50px; |
| 67 | |
| 68 | max-width: 400px; |
| 69 | text-overflow: ellipsis; |
| 70 | white-space: nowrap; |
| 71 | overflow: hidden; |
| 72 | } |
| 73 | |
| 74 | td div.username { |
| 75 | font-size: 40px; |
| 76 | } |
| 77 | |
| 78 | td div.userinfo { |
| 79 | font-size: 36px; |
| 80 | color: rgb(100,100,100); |
| 81 | } |
| 82 | |
| 83 | td.name { |
| 84 | text-align: left; |
| 85 | } |
| 86 | |
| 87 | tr#header th { |
| 88 | text-align: center; |
| 89 | padding-top: 10px; |
| 90 | padding-bottom: 10px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | tr.gold { |
| 94 | background-color: rgba(255, 225, 0, 0.3); |
| 95 | } |
| 96 | |
| 97 | tr.silver { |
| 98 | background-color: rgba(200, 200, 200, 0.3); |
| 99 | } |
| 100 | |
| 101 | tr.bronze { |
| 102 | background-color: rgba(200, 125, 50, 0.3); |
| 103 | } |
| 104 | |
| 105 | tr.me { |
| 106 | background-color: rgba(50, 50, 255, 0.3); |
| 107 | } |
| 108 | |
| 109 | tr.top3 td:first-child::before { |
| 110 | content: ''; |
Andreu | ae44f20 | 2019-09-23 23:15:56 +0200 | [diff] [blame^] | 111 | background-size: 48px 48px; |
| 112 | width: 48px; |
| 113 | height: 48px; |
Andreu | 2211ab2 | 2019-09-23 18:13:26 +0200 | [diff] [blame] | 114 | float: left; |
| 115 | position: relative; |
| 116 | top: 0px; |
| 117 | left: 5px; |
| 118 | } |
| 119 | |
| 120 | tr.gold td:first-child::before { |
| 121 | background-image: url('../bin/images/first.png'); |
| 122 | } |
| 123 | |
| 124 | |
| 125 | tr.silver td:first-child::before { |
| 126 | background-image: url('../bin/images/second.png'); |
| 127 | } |
| 128 | |
| 129 | |
| 130 | tr.bronze td:first-child::before { |
| 131 | background-image: url('../bin/images/third.png'); |
| 132 | } |