Skip to content

Commit 947e3b3

Browse files
authored
Merge pull request #47 from chriskthomas/patch-preview
Live Preview Edits
2 parents fdde563 + 3b5101a commit 947e3b3

File tree

4 files changed

+205
-174
lines changed

4 files changed

+205
-174
lines changed

src/index.css

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
:root{
2-
--buttonSize: 70px;
3-
--buttonOffset: 10px;
4-
--buttonRadius: 10px;
5-
--previewWidth: 30vw;
6-
--previewHeight: 100vh;
7-
--previewXOffset: 0;
8-
--previewYOffset: 0;
9-
--animationDuration: 500ms;
1+
:root {
2+
--buttonSize: 70px;
3+
--buttonOffset: 10px;
4+
--buttonRadius: 10px;
5+
--previewWidth: 30vw;
6+
--previewHeight: 100vh;
7+
--previewXOffset: 0;
8+
--previewYOffset: 0;
9+
--animationDuration: 500ms;
1010
}
1111
#previewButton {
12-
position: fixed;
13-
width: var(--buttonSize);
14-
height: var(--buttonSize);
15-
bottom: var(--buttonOffset);
16-
right: var(--buttonOffset);
17-
border-radius: var(--buttonRadius);
18-
z-index: 2;
12+
position: fixed;
13+
width: var(--buttonSize);
14+
height: var(--buttonSize);
15+
bottom: var(--buttonOffset);
16+
right: var(--buttonOffset);
17+
border-radius: var(--buttonRadius);
18+
z-index: 2;
1919
}
2020

21-
#previewButton > *{
22-
width: 100%;
23-
height: 100%;
21+
#previewButton > * {
22+
width: 100%;
23+
height: 100%;
2424
}
2525

26-
#previewButton:hover{
27-
cursor: pointer;
28-
background-color: gray;
29-
transition: var(--animationDuration);
26+
#previewButton:hover {
27+
cursor: pointer;
28+
background-color: gray;
29+
transition: var(--animationDuration);
3030
}
3131

32-
#previewBlock{
33-
position: fixed;
34-
top: var(--previewYOffset);
35-
right: var(--previewXOffset);
36-
width: var(--previewWidth);
37-
height: var(--previewHeight);
38-
z-index: 1;
39-
transition: var(--animationDuration);
40-
right: -100%;
32+
#previewBlock {
33+
position: fixed;
34+
top: var(--previewYOffset);
35+
right: var(--previewXOffset);
36+
width: var(--previewWidth);
37+
height: var(--previewHeight);
38+
z-index: 1;
39+
transition: var(--animationDuration);
40+
right: -100%;
4141
}
4242

43-
@media screen and (max-width: 1200px){
44-
#previewBlock{
45-
width: 50vw;
46-
}
43+
@media screen and (max-width: 1200px) {
44+
#previewBlock {
45+
width: 50vw;
46+
}
4747
}
4848

49-
@media screen and (max-width: 700px){
50-
#previewBlock{
51-
width: 100vw;
52-
}
53-
}
49+
@media screen and (max-width: 700px) {
50+
#previewBlock {
51+
width: 100vw;
52+
}
53+
}

0 commit comments

Comments
 (0)