-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
100 lines (86 loc) · 1.4 KB
/
style.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
90
91
92
93
94
95
96
97
98
99
100
* {
color: #666;
font-family: monospace;
font-size: 15px;
}
main {
display: flex;
flex-direction: column;
padding: 16px;
}
.untrimmed {
display: flex;
height: 400px;
}
.trimmed {
margin-top: 32px;
display: flex;
height: 400px;
}
.code {
flex-grow: 1;
background: #f4f4f4;
border: 1px solid #eee;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
resize: none;
outline: none;
}
.code:focus {
border: 1px solid #aaa;
}
.svg-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 400px;
margin-left: 16px;
border: 1px solid #eee;
}
.svg-container svg {
height: 100%;
width: auto;
border: 1px solid #aaa;
}
.output-container {
position: relative;
flex-grow: 1;
display: flex;
}
.output-container .copy-button {
position: absolute;
right: 16px;
bottom: 16px;
height: 40px;
width: auto;
cursor: pointer;
padding: 4px;
}
.output-container::before {
position: absolute;
top: calc(100% + 8px);
right: 16px;
content: 'Código copiado! ;D';
color: rgb(67, 145, 67);
font-size: 16px;
opacity: 0;
transition: 500ms;
}
.output-container.copied::before {
opacity: 1;
transition: 0ms;
}
.output-container .copy-button:hover {
transform: scale(1.06);
}
.output-container .copy-button:active {
transform: scale(1);
}