base.less 9.6 KB
Newer Older
Dányi Bence committed
1 2 3 4 5
html
{
    min-height: 100%;
    position: relative;
}
6 7 8 9 10 11 12 13 14
body
{
    min-height:100%;
    font-family: 'Titillium Web', sans-serif;
    font-size:.9em;
    background:#dadada url(/static/image/site_bgr.png) repeat-x;
    background-position:80px 0;
    margin:0;
    padding:0;
Bence Dányi committed
15
    overflow-y: scroll;
16 17 18 19
}

#content
{
Bence Dányi committed
20
    width:80%;
21 22
    text-align:left;
    margin:0 auto;
Dányi Bence committed
23
    padding-bottom: 100px;
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
}

.contentblock
{
    background-color:#ccc;
    border-radius:4px;
    border:1px solid #aaa;
    box-shadow:0 0 30px rgba(0,0,0,0.3);
    margin:20px;
    p,dl
    {
        margin:0;
        padding:5px;
    }
    h2
    {
        background-color:#000;
        background-image:url(/static/image/hexabar.png);
        background-position:right center;
        background-repeat:no-repeat;
        border-radius:4px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        color:#eee;
        font-size:1.5em;
        margin-top:0;
        padding:10px;
        position: relative;
    }
    &.wide {
        margin-right: 30px;
    }
    &.note {
        background-color: #ffc;
    }
    ol {
        margin-left: 2em;
        li.done {
            color: #aaa;
        }
    }
Őry Máté committed
65 66 67
    img {
        max-width: 100%;
    }
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
}
.big {
    font-size: 2em;
}

ul.messagelist
{
    text-align:left;
    margin:0;
    padding:0 0 5px;
}

ul.messagelist li
{
    font-size:12px;
    display:block;
    border-bottom:1px solid #ddd;
    color:#666;
    background:#ffc url(/static/admin/img/icon_success.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

ul.messagelist li.warning
{
    background-image:url(/static/admin/img/icon_alert.gif);
}

ul.messagelist li.error
{
    background-image:url(/static/admin/img/icon_error.gif);
}
input.validated {
    padding-right: 15px;
    background-image: url(/static/admin/img/icon_success.gif);
    background-repeat: no-repeat;
    background-position: right center;
    &.error
    {
        background:#fcc url(/static/admin/img/icon_error.gif) right center no-repeat;
        padding-right: 15px;
    }
}

.errornote
{
    font-size:12px!important;
    display:block;
    border:1px solid red;
    color:red;
    background:#ffc url(/static/admin/img/icon_error.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

.errorlist li
{
    font-size:12px!important;
    display:block;
    border:1px solid red;
    color:#FFF;
    background:red url(/static/admin/img/icon_alert.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

.errorlist li a
{
    color:#FFF;
    text-decoration:underline;
}

td ul.errorlist li
{
    margin:0!important;
}

.errors
{
    background:#ffc;
}

.errors input,.errors select,.errors textarea
{
    border:1px solid red;
}

div.system-message
{
    background:#ffc;
    font-size:.8em;
    margin:10px;
    padding:6px 8px;
}

div.system-message p.system-message-title
{
    color:red;
    background:#ffc url(/static/admin/img/icon_error.gif) 5px .3em no-repeat;
    margin:0;
    padding:4px 5px 4px 25px;
}

small {
  font-size: 0.8em;
}

input {
    border-radius: 2px;
    border: 1px solid #777;
    padding: 2px;
    margin: 1px 5px;
    background: rgba(0,0,0,0.1);
    font-family: 'Titillium Web', sans-serif;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
    &:hover{
        border: 1px solid #666;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(255,255,0,0.5);
    };
    &:focus{
        border: 1px solid #555;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,0,0.8);
    }
}

input[type=submit], input[type=button], input[type=reset]{
    border: 1px solid #777;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: background 0.5s;
    -moz-transition: background 0.5s;
    -o-transition: background 0.5s;
    transition: background 0.5s;
    &:hover{
        background: rgba(0,0,0,0.2);
    };
}
input:disabled {
    background-color: rgba(255,0,0,0.2);
    color: #222;
    &:hover {
        background-color: rgba(255,0,0,0.5);
    }
}

textarea {
    border-radius: 2px;
    border: 1px solid #777;
    padding: 5px;
    margin: 10px 5px;
    width: 300px;
    height: 100px;
    background: rgba(0,0,0,0.1);
    font-family: 'Titillium Web', sans-serif;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
    &:hover{
        border: 1px solid #666;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(255,255,0,0.5);
    };
    &:focus{
        border: 1px solid #555;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,0,0.8);
    }
}
.hilight {
    background-color: #ff6;
}

.hidden-password {
    padding-right: 25px;
    background-image: url(/static/icons/eye-half.png);
    background-repeat: no-repeat;
    background-position: right center;
    cursor: pointer;
    &.shown {
        background-image: url(/static/icons/eye.png);
    }
}

@placeholderColor: #444;
input::-webkit-input-placeholder{
    color: @placeholderColor;
}
input:-moz-placeholder{
    color: @placeholderColor;
}
input::-moz-placeholder{
    color: @placeholderColor;
}
input:-ms-input-placeholder{
    color: @placeholderColor;
}
textarea::-webkit-input-placeholder{
    color: @placeholderColor;
}
textarea:-moz-placeholder{
    color: @placeholderColor;
}
textarea::-moz-placeholder{
    color: @placeholderColor;
}
textarea:-ms-input-placeholder{
    color: @placeholderColor;
}
282 283

body > footer {
Dányi Bence committed
284 285 286
    z-index: 999;
    position: absolute;
    bottom: 0;
287 288 289 290 291 292
    width: 100%;
    text-align: center;
    border-top: 1px solid #888;
    box-shadow:0 0 30px rgba(0,0,0,0.4);
    margin:0;
    background-color: white;
Bence Dányi committed
293
    height: 30px;
294
}
295 296 297 298 299 300 301 302 303 304

#http-error {
    margin: 20px auto;
    width: 500px;
    border-radius: 4px;
    border: 1px solid #888;
    background: #FFFF66;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
}
Bence Dányi committed
305

Őry Máté committed
306
.irasmu {
Őry Máté committed
307
    line-height: 1.8em;
Őry Máté committed
308 309 310 311 312 313 314
    section {
        border-radius: 4px;
        border: 1px solid #888;
        background: #ccc;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 20px;
        margin: 10px;
Bence Dányi committed
315 316 317
        &.teacher {
            border-left: 3px solid #0b4599;
        }
Őry Máté committed
318 319
    }
    p {
320 321 322 323
        margin-bottom: 10px;
        &:last-child {
            margin-bottom: 0px;
        }
Bence Dányi committed
324 325 326
        &.desc {
            margin-left: 2em;
        }
327

Őry Máté committed
328
    }
Bence Dányi committed
329
    p.teacher {
Őry Máté committed
330 331 332 333
        background: #ddd;
        padding: 20px;
        border-left-width: 3px;
        border-left-style: solid;
334
        border-left-color: #0b4599;
Őry Máté committed
335
    }
336
    p.teacher + p.teacher {
Őry Máté committed
337 338 339
        margin-top: 0;
        padding-top: 0;
    }
Őry Máté committed
340 341 342 343 344 345 346
    h4 {
        margin: 0;
        padding: 0;
        font-size: 1em;
        float: left;
    }
    h4:after {
347
        content: " ♦ ";
Őry Máté committed
348 349 350 351 352 353 354
    }
    h4 + p {
        margin-top: 0;
    }
    h2 {
        background-color:#000;
        background-image:url(/static/image/hexabar.png);
355
        background-position: right center;
Őry Máté committed
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
        background-repeat:no-repeat;
        color:#eee;
        font-size:1.5em;
        border-radius: 4px;
        border: 1px solid #888;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 10px;
        margin: 10px;
        margin-bottom: 0;
        border-bottom-style: none;
    }
    h2 + section {
        border-radius: 0 0 4px 4px;
        border-top-style: none;
        margin-top: 0;
    }
    p.figure {
        text-align: center;
        &.figure-small img {
            height: 200px;
376 377 378
            transition: 1s 300ms;
            -webkit-transition: 1s 300ms;
            -moz-transition: 1s 300ms;
Bence Dányi committed
379 380 381 382 383 384 385
            -o-transition: 1s 300ms;
            -ms-transition: 1s 300ms;
            transform-origin: center center;
            -webkit-transform-origin: center center;
            -moz-transform-origin: center center;
            -ms-transform-origin: center center;
            -o-transform-origin: center center;
Őry Máté committed
386
            &:hover {
Bence Dányi committed
387
                height: 390px;
Őry Máté committed
388 389 390 391 392 393
            }
        }
    }
    ol, ul {
        margin-left: 1em;
    }
394 395 396 397 398 399
    nav {
        background: #ddd;
        padding: 10px;
        border-left-width: 3px;
        border-left-style: solid;
        border-left-color: #ff6;
Őry Máté committed
400
        line-height: 1.2em;
401 402 403 404 405 406 407 408
        li {
            list-style-type: none;
            ul li {
                list-style-type: square;
                margin-left: 1em;
            }
        }
    }
Őry Máté committed
409 410 411 412 413 414 415 416 417 418 419
    em {
        white-space: nowrap;
    }
    strong {
        background-image: url(/static/image/hilite.png);
        background-repeat: repeat;
        font-style: normal;
        font-weight: normal;
        padding: 0 .4em;
        margin-bottom: 2px;
    }
Bence Dányi committed
420
}
Bence Dányi committed
421

422 423 424 425 426 427 428 429 430
.host-toggle {
    .v6 {
        display: none;
    }
}
.ipv4host {
    display: none;
}

Bence Dányi committed
431 432 433 434 435 436 437
@media (max-width: 900px) {
    #content {
        width: 100%;
    }
    .boxes {
        width: 100% !important;
    }
438 439 440 441 442
    #modal-container{
        width: 90%;
        left: 0 !important;
        margin-left: 2% !important;
    }
Őry Máté committed
443 444 445 446 447 448
    .contentblock {
        margin:5px;
    }
    body {
        font-size: 1.1em;
    }
Bence Dányi committed
449
}
450 451 452 453 454 455 456

.vendor (@prop, @val) {
    -foo: ~"bar; -webkit-@{prop}: @{val}; -moz-@{prop}: @{val}; -ms-@{prop}: @{val}; -o-@{prop}: @{val}; @{prop}: @{val};";
}
.vendorVal (@prop, @val, @arg) {
    -foo: ~"bar; @{prop}: -webkit-@{val}(@{arg}); @{prop}: -moz-@{val}(@{arg}); @{prop}: -ms-@{val}(@{arg}); @{prop}: -o-@{val}(@{arg}); @{prop}: @{val}(@{arg});";
}