summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/modal/modal.component.less
blob: c87162afb0f8a078026a33f6867da9aa8583e2c8 (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
@import '../../../../assets/styles/variables';
@import '../../../../assets/styles/mixins';
@import '../../../../assets/styles/sprite-old';
/deep/ modal {
    display: none;

    .custom-modal {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        overflow: auto;
        margin: auto;
        display: flex;
        align-items: center;

        .ng2-modal-content {
            background: #fff;
            width: 100%;
            box-shadow: 0 5px 15px rgba(0,0,0,.5);
            border-radius: 4px;
            .ng2-modal-body{
                padding: 20px;
            }

            .ng2-modal-header{
                .m_18_m;
                font-weight: bold;
                -webkit-box-flex: 1;
                -ms-flex-positive: 1;
                flex-grow: 1;
                height: 50px;
                line-height: 50px;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                text-align: left;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                margin: 0px 20px;

                &.modal-type-standard {
                    border-bottom: solid 3px @main_color_a;
                }

                &.modal-type-error {
                    border-bottom: solid 3px @func_color_q;
                }

                &.modal-type-alert{
                    border-bottom: solid 3px @main_color_h;
                }

                .title{
                    .s_18_m;
                    -webkit-box-flex: 999;
                    -ms-flex-positive: 999;
                    flex-grow: 999;
                }
                .close-button{
                    .sprite;
                    .sprite.x-btn-black;
                    cursor: pointer;
                }
            }

            .ng2-modal-footer{
                background-color: @tlv_color_t;
                padding: 17px 30px;
                clear: both;
                -webkit-box-flex: 1;
                -ms-flex-positive: 1;
                flex-grow: 1;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-pack: end;
                -ms-flex-pack: end;
                justify-content: flex-end;
                border-radius: 4px;
                button{
                    margin: 0 12px 0 6px;
                }
            }
        }
    }

    .modal-background {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: #000;
        opacity: 0.5;
        z-index: 900;
    }
}

.xl {
    width: 1200px;
}

.l {
    width: 875px;
}

.md {
    width: 650px;
}

.sm {
    width: 552px;
}

.xsm {
    width: 432px;
}

body.modal-open {
    overflow: hidden;
}