-
Notifications
You must be signed in to change notification settings - Fork 831
Expand file tree
/
Copy patheditable.css
More file actions
104 lines (88 loc) · 1.44 KB
/
editable.css
File metadata and controls
104 lines (88 loc) · 1.44 KB
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
* {
box-sizing: border-box;
}
body {
background-color: #EAEFF2;
padding: 0;
margin: 0;
}
#output {
width: 100%;
height: 200px;
background-color: white;
padding: 1em 0;
box-shadow: 0px 2px 5px -2px rgba(0,0,0,0.1);
}
#example-element {
max-width: 80%;
max-height: 80%;
display: block;
margin: 0 auto 0 auto;
}
#output {
overflow: hidden;
}
#example-element {
display: block;
color: #C13832;
}
.example-choice {
font-size: 14px;
transition: background-color .2s ease-out;
cursor: pointer;
padding: 0.25em;
display: inline-block;
width: 100%;
position: relative;
}
.example-choice:hover {
background-color: whitesmoke;
}
.example-choice.selected {
background-color: white;
transition: background-color .2s ease-in;
box-shadow: inset 0px 2px 2px -2px rgba(0,0,0,0.2);
cursor: text;
}
.example-choice>code {
width: 90%;
display: inline-block;
}
.reset {
display: none;
position: absolute;
top: .75em;
right: 1em;
}
.example-choice.selected>.reset {
display: unset;
}
.error {
max-height: 1em;
position: absolute;
top: .75em;
right: 5.5em;
cursor: pointer;
}
.hidden {
display: none;
}
[contenteditable]:focus {
outline: 0px solid transparent;
}
/*
Disable responsive mode,
as it doesn't work properly
inside an iframe
@media (min-width: 800px) {
#example-choice-list, #output {
float: left;
}
#example-choice-list {
width: 70%;
}
#output {
width: 30%;
}
}
*/