gitile.css
| 1 | :root { |
| 2 | --blue: #6eaee6; |
| 3 | --darkblue: #176ECB; |
| 4 | --lightblue: #a1d9f4; |
| 5 | --darkwhite: #faf5f0; |
| 6 | --black: #333; |
| 7 | --white: #fff; |
| 8 | --darkgreen: #2cae0e; |
| 9 | --gray: #ccc; |
| 10 | --darkerwhite: #eae5e0; |
| 11 | } |
| 12 | |
| 13 | html, body { |
| 14 | margin: 0; |
| 15 | padding: 0; |
| 16 | min-height: 100%; |
| 17 | background: var(--darkwhite); |
| 18 | } |
| 19 | |
| 20 | body { |
| 21 | display: flex; |
| 22 | flex-direction: column; |
| 23 | color: var(--black); |
| 24 | height: 100%; |
| 25 | } |
| 26 | |
| 27 | #content { |
| 28 | flex: 1; |
| 29 | width: 1200px; |
| 30 | margin: auto; |
| 31 | text-align: justify; |
| 32 | line-height: 1.5em; |
| 33 | padding: 2em; |
| 34 | } |
| 35 | |
| 36 | header { |
| 37 | background: var(--blue); |
| 38 | } |
| 39 | |
| 40 | footer { |
| 41 | background: var(--darkerwhite); |
| 42 | } |
| 43 | |
| 44 | header, footer { |
| 45 | text-align: center; |
| 46 | } |
| 47 | |
| 48 | a { |
| 49 | text-decoration: none; |
| 50 | } |
| 51 | |
| 52 | header ul { |
| 53 | list-style: none; |
| 54 | margin: 0; |
| 55 | } |
| 56 | |
| 57 | header li { |
| 58 | display: inline-block; |
| 59 | } |
| 60 | |
| 61 | header li a { |
| 62 | display: inline-block; |
| 63 | padding: 1em; |
| 64 | color: var(--white); |
| 65 | } |
| 66 | |
| 67 | header li a:hover { |
| 68 | background-color: var(--darkblue); |
| 69 | } |
| 70 | |
| 71 | header li.first { |
| 72 | margin-right: 2em; |
| 73 | } |
| 74 | |
| 75 | footer a { |
| 76 | color: var(--darkgreen); |
| 77 | } |
| 78 | |
| 79 | .content { |
| 80 | display: flex; |
| 81 | flex-direction: row; |
| 82 | align-items: center; |
| 83 | } |
| 84 | |
| 85 | .content p:first-child { |
| 86 | flex: 1; |
| 87 | } |
| 88 | |
| 89 | .content img { |
| 90 | max-height: 1.5em; |
| 91 | max-width: 1.5em; |
| 92 | } |
| 93 | |
| 94 | .content p { |
| 95 | margin: 0; |
| 96 | } |
| 97 | |
| 98 | .content, thead { |
| 99 | background: var(--darkerwhite); |
| 100 | padding: 0.5em; |
| 101 | margin: 0; |
| 102 | border: 1px solid var(--gray); |
| 103 | border-bottom: none; |
| 104 | } |
| 105 | |
| 106 | pre { |
| 107 | border: 1px solid var(--gray); |
| 108 | border-top: none; |
| 109 | padding: 0.5em; |
| 110 | margin: 0; |
| 111 | background: var(--white); |
| 112 | line-height: 1em; |
| 113 | font-size: 0.85em; |
| 114 | font-family: monospace, monospace; |
| 115 | } |
| 116 | |
| 117 | table { |
| 118 | background: var(--white); |
| 119 | border-collapse: collapse; |
| 120 | width: 100%; |
| 121 | border: 1px solid var(--gray); |
| 122 | } |
| 123 | |
| 124 | tbody tr { |
| 125 | transition-duration: 300ms; |
| 126 | } |
| 127 | |
| 128 | tbody tr:hover { |
| 129 | background: var(--lightblue); |
| 130 | } |
| 131 | |
| 132 | td { |
| 133 | padding: 0.5em; |
| 134 | } |
| 135 | |
| 136 | .commit-info { |
| 137 | border: 1px solid var(--gray); |
| 138 | margin-top: 1em; |
| 139 | margin-bottom: 1em; |
| 140 | padding: 1em; |
| 141 | display: flex; |
| 142 | flex-direction: row; |
| 143 | justify-content: center; |
| 144 | align-content: center; |
| 145 | background: var(--white); |
| 146 | } |
| 147 | |
| 148 | .commit-info .commit { |
| 149 | flex: 1 |
| 150 | } |
| 151 | |
| 152 | .commit-info .message { |
| 153 | font-weight: bold; |
| 154 | } |
| 155 | |
| 156 | .commit-info .author, .commit-info .date { |
| 157 | display: inline-block; |
| 158 | padding: 0.5em 0; |
| 159 | } |
| 160 | |
| 161 | .commit-info img { |
| 162 | max-width: 64px; |
| 163 | max-height: 64px; |
| 164 | margin-right: 1em; |
| 165 | } |
| 166 | |
| 167 | .commit-info .commit-id { |
| 168 | margin-left: 1em; |
| 169 | border: 1px solid var(--gray); |
| 170 | border-radius: 10px; |
| 171 | padding: 0; |
| 172 | background: var(--darkerwhite); |
| 173 | height: 2.5em; |
| 174 | display: flex; |
| 175 | flex-direction: row; |
| 176 | align-items: center; |
| 177 | } |
| 178 | |
| 179 | .commit-info .commit-id .short-id { |
| 180 | background: var(--darkwhite); |
| 181 | display: inline-block; |
| 182 | padding: 0.5em; |
| 183 | border-bottom-left-radius: 10px; |
| 184 | border-top-left-radius: 10px; |
| 185 | border-right: 1px solid var(--gray); |
| 186 | font-family: monospace, monospace; |
| 187 | font-size: 0.85em; |
| 188 | } |
| 189 | |
| 190 | .commit-info p { |
| 191 | margin: 0; |
| 192 | } |
| 193 | |
| 194 | .commit-info .commit-id button { |
| 195 | background: none; |
| 196 | border: none; |
| 197 | cursor: pointer; |
| 198 | } |
| 199 | |
| 200 | .commit-info .commit-id img { |
| 201 | max-width: 1.5em; |
| 202 | max-height: 1.5em; |
| 203 | margin-right: 0.3em; |
| 204 | } |
| 205 | |
| 206 | .commit-info .date { |
| 207 | font-style: italic; |
| 208 | margin-left: 1em; |
| 209 | } |
| 210 | |
| 211 | .commit-info .author::before { |
| 212 | content: "Authored by: "; |
| 213 | } |
| 214 | |
| 215 | h1 { |
| 216 | text-align: center; |
| 217 | } |
| 218 | |
| 219 | code { |
| 220 | background: var(--darkerwhite); |
| 221 | display: inline-block; |
| 222 | padding: 3px; |
| 223 | font-family: monospace, monospace; |
| 224 | font-size: 0.85em; |
| 225 | } |
| 226 | |
| 227 | .clone { |
| 228 | text-align: right; |
| 229 | } |
| 230 | |
| 231 | .icon-link { |
| 232 | display: flex; |
| 233 | flex-direction: row; |
| 234 | align-content: center; |
| 235 | } |
| 236 | |
| 237 | .icon-link img { |
| 238 | height: 1em; |
| 239 | width: 1em; |
| 240 | margin-right: 0.3em; |
| 241 | } |
| 242 | |
| 243 | .path-box a { |
| 244 | display: inline-block; |
| 245 | padding: 0.5em; |
| 246 | } |
| 247 | |
| 248 | .button-row a { |
| 249 | display: inline-block; |
| 250 | background: var(--white); |
| 251 | padding: 0.5em; |
| 252 | border: 1px solid var(--gray); |
| 253 | margin: 0.5em; |
| 254 | } |
| 255 | |
| 256 | |
| 257 | @media screen and (max-width: 1250px) { |
| 258 | #content { |
| 259 | width: auto; |
| 260 | } |
| 261 | } |
| 262 |