Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / static / im / css / styles.less @ 27993be5

History | View | Annotate | Download (9.6 kB)

1
@import "../less/bootstrap.less";
2
@import "../less/django_forms.less";
3
@import "../less/tables.less";
4

    
5

    
6
@gradCol: #ddd;
7
body {
8
    #font.main();
9
}
10

    
11
.topbar {
12
    background-color: @shadowColor;
13
    .head {
14
        float: left;    
15
            padding: @gridGutterWidth/2-5;
16
    }
17
    .links {
18
        .clearfix();
19
        a {
20
            color: @black;
21
            text-decoration: none;
22
            display: block;
23
            float: left;
24
            margin-left: 10px;
25
            padding: @gridGutterWidth/2+1;
26

    
27
            &:hover {
28
                background-color: lighten(@black, 10%);
29
                color: @white;
30
            }
31
        }
32

    
33
        float: right;    
34
    }
35
}
36

    
37
// default link styles
38
section a, p a, form a, .section a {
39
    color: @black;
40
    text-decoration: none;
41
    border-bottom: 1px solid @linkColor;
42

    
43
    &:hover {
44
        color: @linkColor;
45
    }
46

    
47
    &.noborder {
48
        border: none;   
49
    }
50

    
51
    em {
52
        color: @blue;    
53
    }
54
}
55

    
56
a.action {
57
    color: @linkColor;
58
    border-bottom: none;
59
}
60

    
61
a img {
62
    border-bottom: none;
63
}
64

    
65
// body borders
66
.content-border {
67
    border-right: 1px solid @mainBorderColor;
68
    border-left: 1px solid @mainBorderColor;
69
}
70

    
71
.hidden {
72
    display: none !important;
73
}
74

    
75
// container sizing
76
.container, .topbar, .footer {
77
    .fixed-container();
78
    .content-border();
79
    padding: 0 @siteWhiteSpace;
80
}
81

    
82
.container {
83
    padding-bottom: @siteWhiteSpace;
84
    background-color: @white;
85
}
86

    
87
.topbar {
88
}
89

    
90

    
91
div.header {
92
    position: relative;
93
    margin-top: 4*@gridGutterWidth;
94
    margin-bottom: @gridGutterWidth;
95
    h1 {
96
        color: @shadowColor;
97
        display: inline;
98
        font-size: 2.3em;
99
        border-bottom: 1px solid @shadowColor;
100
        padding-bottom: 3px;
101
    }
102
}
103
.mainlogo {
104
    img {
105
        margin-left: -10px;
106
    }
107
}
108

    
109
.footer {
110
    border-bottom: 1px solid @mainBorderColor;
111
    border-top: 1px solid lighten(@mainBorderColor, 15%);
112
    padding-top: @gridGutterWidth;
113
    padding-bottom: @gridGutterWidth;
114
}
115

    
116
ul.inline {
117
    .clearfix();
118
    li {
119
        display: block;    
120
        float: left;
121
        margin-right: 1em;
122
    }
123
}
124

    
125
.mainnav.quicknav {
126
    position: absolute;
127
    right: 0;
128
    top: -2.6*@gridGutterWidth;
129
    margin:0;
130

    
131
    li {
132
        margin-right:0;
133
        margin-left: 1em;
134
    }
135
}
136

    
137

    
138
.mainnav {
139
    font-size: 1.1em;
140
    
141
    &.subnav {
142
        margin-bottom: -@gridGutterWidth;
143
        li {
144
            margin-top: @gridGutterWidth/2;
145
        }
146
    }
147

    
148
    li {
149
        margin-top: 3*@gridGutterWidth;
150
    }
151

    
152
    li.active {
153
        a {
154
            /*border-bottom: 1px solid @linkColor;*/
155
            border-bottom: none;
156
            color: @linkColor;
157
        }
158
    }
159
    a {
160
        color: @black;
161
        text-decoration: none;
162

    
163
        &:hover {
164
            border-bottom: 1px solid @linkColor;
165
        }
166

    
167
        &.active, &:active {
168
            border-bottom: 1px solid @linkColor;
169
            color: @linkColor;
170
        }
171
    }
172
}
173

    
174
.page {
175
    .makeRow();
176
    margin-top: 6*@gridGutterWidth;
177
    font-size: 1.1em;
178
    .page-inner {
179
        position: relative;    
180
    }
181
}
182

    
183
// columnlayout
184
.maincol {
185
    .makeColumn(5);
186
    
187
    &.wide {
188
        .makeColumn(6);    
189
    }
190

    
191
    &.full {
192
        .makeRow();
193
        margin-left: 0;
194
        .makeColumn(10);
195
    }
196
}
197

    
198
.appbar {
199
    height: 30px;
200
    background-color: @blue;
201
}
202

    
203
.rightcol {
204
    .offset(6.5);
205
    .columns(4);
206

    
207
    &.narrow {
208
        .offset(7.5);
209
        .columns(3);    
210
    }
211
    input[type=text], input[type=password] {
212
        width: 3*@gridColumnWidth + 4*@gridGutterWidth + 5;    
213
    }
214
}
215

    
216
/* generic form styles */
217
input, textarea, .form-widget {
218
    background-color: @white;
219
    color: @black;
220
    border-color: @black;
221
}
222

    
223
.checkbox-widget.checked {
224
    background-color: #f00;
225
    background-image: url("../images/checkbox.png");
226
    background-position: 50% 50%;
227
}
228

    
229
.checkbox-widget {
230
    border: 1px solid @gray;
231
    width: 25px;
232
    height: 25px;
233
    display: block;
234
    float: left;
235
    cursor: pointer;
236
    margin-top: @gridGutterWidth/2 - 2;
237
}
238

    
239
#forms {
240
    .input, input {
241
        #font.main();
242
        border: 1px solid @gray;
243
        margin-bottom: -1px;
244
        padding: 0.8em;
245
        padding-left: 1.5em;
246
        z-index: 2;
247

    
248
        &:focus {
249
            position: relative;
250
            border: 1px solid #000;
251
            z-index: 100;
252
        }
253
    }
254
}
255

    
256
.altcol {
257
    background-color: @altColor !important;
258

    
259
    &:hover {
260
        background-color: @linkColor !important;
261
    }
262
}
263

    
264
.section {
265

    
266
    &.positioned {
267
        
268
        .content {
269
            .makeColumn(4);
270
        }
271

    
272
        img {
273
        }
274

    
275
        &.withimg {
276
            .img {
277
                .makeColumn(4);
278
            }
279

    
280
            img {
281
                float: left;    
282
            }
283
        }
284
        
285
        h3 {
286
            margin-bottom: @gridGutterWidth;    
287
        }
288

    
289
        .text {
290
            color: @black;    
291
        }
292
    }
293

    
294
    margin-bottom: 2em; 
295

    
296
    .left, .right {
297
        width: 50%;
298
        float: left;
299
    }
300

    
301
    &.imagelist {
302
        margin-top: 2em;
303
        .clearfix();
304
        img {
305
            float: left;    
306
            margin-right: 4em;
307
            vertical-align: middle;
308
        }    
309
    }
310
}
311

    
312
input[readonly=true] {
313
    background-color: #ddd;
314
    color: darken(#ddd, 70%);
315
}
316

    
317
form.withlabels {
318
    label {
319
        width: 3*@gridColumnWidth + 2*@gridGutterWidth;
320
        display: block;
321
        float: left;
322
        padding-top: 1em;
323
    }
324

    
325
    input[type=text], input[type=password], textarea {
326
        width: 3*@gridColumnWidth + 2*@gridGutterWidth;
327

    
328
        &.long {
329
            width: 3*@gridColumnWidth + 2*@gridGutterWidth;
330
        }
331
    }
332
}
333

    
334

    
335
@errorColor: lighten(@red, 30%);
336
// forms
337
form {
338
    
339
    &.login {
340
        margin-bottom: 3em; 
341
    }
342

    
343
    h2 {
344
        color: @black;
345
        margin-bottom: @gridGutterWidth;
346
        font-size: 1.1em;
347

    
348
        span {
349
            padding-bottom: 3px;
350
        }
351
    }
352

    
353
    .form-row {
354
        min-height: 2*@gridGutterWidth;
355
        position: relative;
356
        &.submit {
357
            margin-top: @gridGutterWidth;
358
        }
359

    
360
        .extra-link {
361
            color: @gray;
362
            text-decoration: none;
363
            border: none;
364
            font-size: 0.8em;
365
            margin-top: 1.3em;
366
            float: right;
367
        }
368
    }
369
    
370
    &.innerlabels label { 
371
        position: absolute;
372
        top:1em;
373
        left:1.5em;
374
        color: #aaa;
375
    }
376

    
377
    &.innerlabels p {
378
        position: relative;    
379
    }
380

    
381
    textarea, input.text, input[type="text"], input[type="password"] {
382
        #forms.input();
383
    }
384

    
385
    input.submit, input[type="submit"] {
386
        .button();
387
    }
388

    
389
    
390
    .with-errors {
391
        input, textarea, select {
392
            color: @red;
393
        }
394
        label {
395
            color: @errorColor;
396
        }
397
    }
398
}
399

    
400
.form-error {
401
    background-color: @red;
402
    color: #fff;
403
    font-size: 0.8em;
404
    padding: 5px 5px;
405
}
406

    
407
.form-errors.all {
408
    .form-error {
409
        position: relative;
410
        border-radius: 0;
411
        margin-bottom: 1.3em;
412
        padding: 0.5em;
413
    }
414
}
415

    
416
div.form-stacked {
417
    margin-bottom: 4em;
418
}
419
// content types
420
.section {
421
    h2 {
422
        font-size: 1.1em;
423
        margin-bottom: 1.5*@gridGutterWidth;    
424

    
425
        a {
426
            color: #4085A6;
427
            border: none;
428
        }
429
    }
430

    
431
    p {
432
        line-height: 1.7em;    
433
    }
434
}
435

    
436

    
437
// page messages
438
.messages {
439
    .makeColumn(10);
440

    
441
    margin-bottom: 2em;
442
    background-color: #ddd;
443

    
444
    li {
445
        padding: 1em;    
446

    
447
        &.success { background-color: @green; color: @white }
448
        &.error { background-color: @red; color: @white }
449
        &.warning { background-color: @yellow; color: @black }
450
    }
451

    
452
}
453

    
454
// accounts specific styles
455
.service-desc {
456
    margin-top: 4em;    
457

    
458
}
459

    
460

    
461
// invitations table
462
table {
463

    
464
    td.consumed {
465
        color: @red;
466
    }
467

    
468
    tr.consumed {
469
        td.consumed {
470
            color: @green;    
471
        }
472
    }
473
}
474

    
475

    
476
.row { .makeRow() }
477

    
478
// footer
479
.footer {
480
    .makeRow()
481
    
482
    &:hover {
483
        a {
484
            color: @gray !important;
485
            .transit();
486
        }
487
    }
488

    
489
    a {
490
        color: lighten(@gray, 20%);    
491
        .transit();
492
        text-decoration: none;
493

    
494
        &:hover {
495
            color: darken(@gray, 50%);    
496
        }
497
    }
498

    
499
    li {
500
        margin-bottom: @gridGutterWidth/2;
501

    
502
        &.header {
503
            margin-bottom: @gridGutterWidth;    
504
        }
505
    }
506

    
507
    .col {
508
        .makeColumn(4);
509
        &:last-child, &.last {
510
            width: 140px;
511
            margin-right:0;
512
        }
513
    }
514

    
515
    .bottom.row {
516
        .col {
517
            .makeColumn(2);    
518
            &:last-child, &.last {
519
                width: 140px;
520
                margin-right:0;
521
            }
522
        }
523
    }
524
}
525

    
526

    
527
/*pagination*/
528

    
529

    
530
/*blog styles*/
531
.blog-entries {
532

    
533
}
534

    
535
.blog-entry {
536

    
537
    .section();
538
    .clearfix();
539
    margin-bottom: 2*@gridGutterWidth;    
540

    
541
    .title {
542
        margin-bottom: 1em;    
543
        font-size: 1.1em;
544
    }    
545

    
546
    .media {
547
        img {
548
            border: 1px solid @gray;    
549
        }    
550
    }
551
    
552
    .intro-content, .content {
553
        margin-top: @gridGutterWidth;
554

    
555
        object {
556
            margin: @gridGutterWidth 0;    
557
        }
558
    }
559

    
560
    .entry-info {
561
        font-size: 0.7em;
562
        margin-top: @gridGutterWidth;    
563
    }
564

    
565
    &.single {
566
        .entry-info {
567
            margin-top: 0;
568
            margin-bottom: @gridGutterWidth;
569
        }    
570
    }
571
}
572

    
573
.section.twitter-feed {
574
    
575
    .tweet {
576
        line-height: 1.3em;
577
        font-size: 0.9em;
578
        margin-bottom: @gridGutterWidth;
579
        color: @gray;
580

    
581
        .date {
582
            display: block;
583
            font-size: 0.7em;
584
            a {
585
                text-decoration: none !important;
586
                border: none;
587
            }
588
        }
589
    }
590
}