-
Notifications
You must be signed in to change notification settings - Fork 1
/
onlycss-modal-css.sublime-snippet
91 lines (91 loc) · 1.93 KB
/
onlycss-modal-css.sublime-snippet
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
<snippet>
<content><![CDATA[/* OnlyCss Modal */
.ocModal-show{
background: #f1f1f1;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
padding: 5px 10px;
}
.ocModal input{
height: 0;
overflow: hidden;
}
.ocModal input:checked ~ .ocModal-modal-opacity{
height: 100%;
opacity: 0.8;
}
.ocModal input:checked ~ .ocModal-modal{
height: auto;
opacity: 1;
}
.ocModal .ocModal-modal-opacity{
background: #282828;
height: 0;
left: 0;
opacity: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 998
}
.ocModal .ocModal-modal{
background: #fff;
border: #ccc;
border-radius: 5px;
color: #282828;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
height: 0;
left: 50%;
margin: 0 0 100px -300px;
overflow: hidden;
position: absolute;
top: 200px;
width: 600px;
z-index: 999
}
.ocModal .ocModal-modal-header,
.ocModal .ocModal-modal-body,
.ocModal .ocModal-modal-footer{
box-sizing: border-box;
padding: 10px 20px;
}
.ocModal .ocModal-modal-header{
border-bottom: 1px solid #ccc;
position: relative;
}
.ocModal .ocModal-modal-header h4,
.ocModal .ocModal-modal-body p{
margin: 0;
}
.ocModal .ocModal-modal-header h4{
width: 520px;
}
.ocModal .ocModal-modal-header label{
cursor: pointer;
font-weight: bold;
font-size: 18px;
position: absolute;
right: 20px;
top: 7px;
}
.ocModal .ocModal-modal-footer{
border-top: 1px solid #ccc;
overflow: hidden;
}
.ocModal .ocModal-modal-footer label{
background: #f1f1f1;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
float: right;
padding: 5px 10px;
}
]]></content>
<tabTrigger>oc-modal</tabTrigger>
<description>OnlyCss Modal</description>
<scope>source.css</scope>
</snippet>