summaryrefslogtreecommitdiff
path: root/web/css/libs/_classic-box.scss
blob: c2d53db50575463059331df38c811d2c2dba9998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
65
66
67
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
@import "compass";

.box {
    background: map-get($classic-box, background);
    box-shadow: 3px 3px 0 rgba(map-get($classic-box, border-color), .6);
    margin-bottom: 15px;
    border: 1px solid map-get($classic-box, border-color);
    padding: 2px;

    .box-header {
        background-color: map-get($classic-box, color);
        height: map-get-deep($classic-box, header, height);
        
        h1 {
            color: map-get-deep($classic-box, header, color);
            float: left;
            font-size: map-get-deep($classic-box, header, font-size);
            font-weight: bold;
            line-height: map-get-deep($classic-box, header, height) - 2px;
            padding-left: 10px;
            text-transform: uppercase;
            /*text-shadow: rgba(0, 0, 0, 1) 0 1px 0;*/
            
            &:first-letter {
                font-size: map-get-deep($classic-box, header, font-size) + 6px;
            }
        }
        ul {
            float: right;
            list-style-type: none;
            
            li {
                display: inline;
                margin-left: -3px;
                
                a {
                    color: lighten(map-get-deep($classic-box, header, color), 10%);
                    font-size: map-get-deep($classic-box, header, font-size) + 6px;
                    line-height: map-get-deep($classic-box, header, height);
                    padding: 4px 10px;
                    
                    text-decoration: none;
                    
                    &:hover:not(.disabled) {
                        background: lighten(map-get($classic-box, color), 20%);
                        color: map-get($classic-box, color) !important;
                    }

                    &.disabled {
                        /*opacity: .4;*/
                        
                        &:hover {
                            cursor: default;
                        }
                    }
                }

                &:first-child {
                    margin-left: 0;
                }
                &:last-child a {
                    border-right: none;
                }
                &.active a {
                    background: #fafafa;
                    cursor: default;
                }
            }
        }
    }

    .box-content {
        padding: 6px;
        
        table a {
            text-decoration: none;
            color: map-get($classic-box, color);
            
            &:hover {
                color: lighten(map-get($classic-box, color), 20%);
            }
        }

        &.faded {
            opacity: .4;
        }
    }

    .box-footer {
        background: #e8e8e8;
        padding: 7px;
        
        span[class^="icon-"] {
            font-size: 14px;
            margin-right: 5px;
        }
    }
}



/* --------------------- */
/*  ==     THEMES        */
/* --------------------- */
@each $name, $datas in $themes {
    body.theme-#{""+$name+""} {

        .box {
            box-shadow: 3px 3px 0 rgba(lighten(map-get($datas, main-color), 16%), .6);
            border-color: lighten(map-get($datas, main-color), 16%);
            
            .box-header {
                background-color: darken(map-get($datas, main-color), 7%);
                
                ul li a {
                    &:hover:not(.disabled) {
                        background: lighten(darken(map-get($datas, main-color), 7%), 20%);
                        color: darken(map-get($datas, main-color), 7%) !important;
                    }
                }
            }
            .box-content {
                table a {
                    color: darken(map-get($datas, main-color), 7%);
                    
                    &:hover {
                        color: lighten(darken(map-get($datas, main-color), 7%), 20%);
                    }
                }
            }
        }
    }
}