summaryrefslogtreecommitdiffstats
path: root/webapp/sass/layout/_webhooks.scss
blob: 61658ea5eedfed0ba607f8aed7da38e05ac7a821 (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
@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;
    }
}


.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;
        }
    }

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

        &.attachment__body--no_thumb {
            width: 100%;
        }
    }

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

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

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

    .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__image {
        margin-bottom: 1em;
        max-width: 100%;
    }

    .attachment__thumb-container {
        float: right;
        width: 20%;

        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;
            }
        }
    }
}