-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyle.css
More file actions
90 lines (82 loc) · 1.72 KB
/
Copy pathStyle.css
File metadata and controls
90 lines (82 loc) · 1.72 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
textarea {
width: 60%;
height: 100vh;
border: none;
background: transparent;
font-family: "Roboto", serif;
font-size: 1.2rem;
padding: 50px;
outline: none;
resize: none;
}
body {
background-color: #1f1e1e;
display: flex;
justify-content: center;
margin: 0;
}
#editor {
width: 100%;
max-width: 60%;
height: 100vh;
margin-top: 50px;
padding: 100px 20px;
padding-top: 20px;
font-family: "Roboto", serif;
font-size: 1.25rem;
line-height: 1.6;
outline: none;
resize: none;
background: #242424;
color: #dadada;
border-radius: 1%;
}
button {
position: fixed;
bottom: 20px;
opacity: 0;
transition: opacity 0.3s;
background: #0b4eca;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 35px;
}
#saveBtn {
right: 20px;
}
#loadBtn {
right: 130px;
}
body:hover button {
opacity: 1; /* Button appears only when you hover over the body */
}
#File {
position: fixed;
top: 15px;
width: 100%;
text-align: center;
font-family: sans-serif;
color: #e0e0e0;
pointer-events: none; /* Lets you click through it */
margin: 0;
}
/* Apply to both root elements to be safe */
html, body {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Chrome, Safari, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
display: none;
}
/* For screens smaller than 768px (phones) */
@media (max-width: 768px) {
textarea, #editor {
width: 95% !important; /* Take up most of the screen */
max-width: 95% !important;
padding: 20px !important; /* Reduce padding so more text fits */
}
}