_panel.scss 1.65 KB
Newer Older
1
.panel-items.js-masonry {
Naomi Guyer's avatar
Naomi Guyer committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    margin-left: -3%; //take away left margin added again by .panel
    margin-bottom: 100px; //buffer
    .panel {
        width: 30.3%;
        float:left;
        margin-left:3%;
        margin-bottom: 35px;
        @media (max-width: $screen-sm-min) {
            width: 50 - 3%;
        }
        @media (max-width: $screen-xs-min) {
            width: 97%;
        }
        &.double {
            width: 30.3% * 2 + 3%;
        }
    }
19
20
}

Naomi Guyer's avatar
Naomi Guyer committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.panel-items {
    form {
        margin:0;
    }
    table {
        font-size: 0.9em;
    }
    small {
        margin-top:5px;
        line-height: 1.5em;
        font-size: 0.8em;
        color: $gray;
        display: block;
    }
35

Naomi Guyer's avatar
Naomi Guyer committed
36
37
38
39
40
41
42
43
44
45
    dl {
        dt {
            font-weight:normal;
            clear: both;
            margin-right:10px;
        }
        dd, dt {
            display:inline-block;
            float:left;
        }
46

Naomi Guyer's avatar
Naomi Guyer committed
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
        dd {
            color: $gray;
            line-height: 1.5em;
        font-size: 0.9em;
        }
    }
    .nav-pills {
        margin: 0;
    }
}

.panel-half {
    width: 48%;
    float: left;
    margin-left: 4%;
    &.first {
        margin-left:0;
    }
    @media (max-width: $screen-sm-min) {
        width: 100%;
        margin-left:0;
    }
}

a.panel-footer {
Naomi Guyer's avatar
Naomi Guyer committed
72
73
74
75
76
77
78
79
    text-align:center;
    color: #555;
    display: block;
    &:hover {
        color: #222;
        background: $gray-lighter;
        .fa {
            color: $link-color;
Naomi Guyer's avatar
Naomi Guyer committed
80
        }
Naomi Guyer's avatar
Naomi Guyer committed
81
82
83
84
85
86
87
88
89
90
91
92
93
94
    }
    .fa.pull-right {
        margin-top: 3px;
    }
}

//Dispaly ul's in panels differentyly
.panel-body {
    ul {
        padding-left: 20px;
        margin: 0 0 20px;
        font-size: 0.9em;
    }
}