-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.css
89 lines (83 loc) · 1.81 KB
/
editor.css
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
@keyframes fadeIn {
0% {
opacity: .2;
transform: translateY(-3.25em) rotateX(-90deg); }
100% {
opacity: 1;
transform: translateY(-2em) rotateX(0deg); } }
.menu {
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
color: #333;
display: none;
font-family: Arial, Helvetica, sans-serif;
list-style: none;
margin: -.5em 0 0;
padding: 0;
position: absolute;
transform: translateY(-2em);
white-space: nowrap;
z-index: 1000;
overflow: hidden; }
.menu.visible {
animation-duration: .2s;
animation-iteration-count: 1;
animation-name: fadeIn;
animation-timing-function: ease-in; }
.menu > * {
box-sizing: content-box;
cursor: pointer;
display: block;
float: left;
height: 1em;
line-height: 1em;
margin: 0;
padding: .5em .6em;
text-align: center;
transition: all .3s ease; }
.menu .action {
min-width: 1em; }
.menu .action.select {
padding: 0; }
.menu .separator {
border-right: 1px solid #ccc;
padding: .5em 0; }
.menu .action:hover {
background-color: #def; }
.menu .bold {
font-weight: bold; }
.menu .italic {
font-style: italic; }
.menu select {
height: 100%;
display: block;
margin: 0;
height: 2em;
border-radius: 0px;
border: 0px none;
padding-right: 25px; }
.menu select:hover {
background-color: #def; }
.menu select:focus {
border: 0px none; }
.menu select option {
background-color: #fff; }
body {
position: relative; }
.settings {
position: absolute;
top: 0;
right: 0;
line-height: 1;
font-size: 1.3em;
display: block; }
.settings > * {
cursor: pointer;
float: right;
margin: .8em .3em 0 0; }
.settings > *::before {
margin: 0; }
pre {
margin: 0; }