-
Notifications
You must be signed in to change notification settings - Fork 28
/
sidebar.html
134 lines (110 loc) · 2.39 KB
/
sidebar.html
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
<html>
<head>
<style>
body{
font-size: 11px;
margin: 0;
user-select: none;
font-family: Menlo, monospace;
}
.properties{
box-sizing: border-box;
padding: 6px 4px 2px;
list-style: none;
color: rgb(48, 57, 66);
}
.properties li{
white-space: auto;
padding-left: 30px;
}
.value{
line-height: 1.6em;
}
.property{
margin-left: -20px;
color: rgb(200, 0, 0);
}
.js-action{
display: inline-block;
margin: 0;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
padding: 0.1em 0.15em;
vertical-align: middle;
position: relative;
}
.js-action[disabled]{
display: none;
}
.js-action,
nav a{
cursor: pointer;
-webkit-user-select: none;
user-select: none;
}
.js-active{
background: rgb(255, 220, 80);
}
.js-action--create{
background-image: url(images/icon_2876.svg);
background-size: auto 60%;
margin: 0 1px 0 0;
}
.js-action--edit{
background-image: url(images/icon_39925.svg);
background-size: auto 80%;
}
nav {
display: none;
position: absolute;
background: rgb(55, 121, 217);
top: 1.4em;
margin-left: -0.5em;
z-index: 2;
/* mask for the arrow head tooltip*/
-webkit-clip-path: polygon(nonzero, 0 0.8em, 0.6em 0.8em, 1.2em 0.2em, 1.8em 0.8em, 100% 0.8em, 100% 100%, 0px 100%);
}
.js-action--create.js-active > nav{
display: flex;
}
nav a{
text-decoration: none;
padding: 1.4em 0.5em 0.5em;
color: white;
height: 1.2em;
}
nav a:hover{
background-color: rgba(38, 84, 150, 0.8);
}
nav :first-child,
nav :last-child{
padding: 1.4em 0.75em 0.5em;
}
.warning{
background: #fcffd5;
padding: 1em;
line-height: 1.5em;
height: 100%;
display: none;
}
.ico{
width: 1.2em;
height: 1.2em;
background-repeat: no-repeat;
background-position: center;
}
.ico:not(.js-active):hover{
background-color: #eee;
}
</style>
</head>
<body>
<div class="warning js-support">
It looks like this browser does not support CSS Shapes.<br >
Learn about <a href="https://github.com/oslego/chrome-css-shapes-editor/wiki/CSS-Shapes-Feature-Support" target="_blank">feature support</a>.
</div>
<ol class="properties">
<!-- filled in dynamically with #template build from selected element's computed style / shape properties -->
</ol>
</body>
</html>