summaryrefslogtreecommitdiffstats
path: root/webapp/sass/layout/_webhooks.scss
blob: 904c50ccc52d73133efe1a821cc3afcd726bdeb4 (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
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
@charset 'UTF-8';

.webhooks__container {
    @include border-radius(3px);
    @include alpha-property(background, $black, .1);
    border: 1px solid;
    margin-top: 10px;
    padding: 0 13px 15px;
}

.webhook__item {
    font-size: 13px;
    position: relative;

    &:last-child {
        .divider-light:last-child {
            display: none;
        }
    }

    .webhook__remove {
        color: #e05f5d;
        font-size: 22px;
        font-weight: bold;
        height: 30px;
        position: absolute;
        right: -7px;
        text-align: center;
        text-decoration: none;
        top: 8px;
        width: 30px;
    }

    .webhook__url {
        padding-right: 20px;
    }
}

.post {
    .attachment {
        .attachment__content {
            border-radius: 4px;
            border-style: solid;
            border-width: 1px;
            margin: 0 0 5px 0;
            padding: 2px 5px;
        }

        .attachment__thumb-pretext {
            background: transparent;
            border: none;
            margin-left: 5px;
        }

        .attachment__container {
            border-left-style: solid;
            border-left-width: 4px;
            padding: 10px;

            &.attachment__container--good {
                border-left-color: #00c100;
            }

            &.attachment__container--warning {
                border-left-color: #dede01;
            }

            &.attachment__container--danger {
                border-left-color: #e40303;
            }
            .sitename {
                color: #A3A3A3;
            }
        }

        .attachment__body {
            float: left;
            overflow-x: auto;
            overflow-y: hidden;
            padding-right: 5px;
            width: 80%;

            &.attachment__body--no_thumb {
                width: 100%;
            }
            .attachment__image {
                margin-bottom: 0;
                max-height: 150px;
                max-width: 150px;
                &.loading {
                    height: 150px;
                }
            }
        }

        .attachment__text p:last-of-type {
            display: inline-block;
        }

        .attachment__image {
            margin-bottom: 1em;
            max-height: 300px;
            max-width: 500px;
        }

        .attachment__author-name {
            @include opacity(.6);
        }

        .attachment__title {
            font-size: 14px;
            font-weight: 600;
            height: 22px;
            line-height: 18px;
            margin: 5px 0;
            padding: 0;

            &.has-link {
                color: #2f81b7;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
            }
        }

        .attachment-link-more {
            display: inline-block;
            font-size: .9em;
            margin: 5px 0;
        }

        .attachment__author-icon {
            @include border-radius(50px);
            height: 14px;
            margin-right: 5px;
            width: 14px;
        }

        .attachment__thumb-container {
            float: right;
            text-align: right;
            width: 80px;

            img {
                max-height: 75px;
                max-width: 100%;
            }
        }

        .attachment-fields {
            width: 100%;

            .attachment-field__caption {
                font-weight: 600;
                padding-top: .7em;
            }

            .attachment-field {
                p {
                    margin: 0;
                }
            }
        }
    }
}