-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
115 lines (107 loc) · 2.33 KB
/
index.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
background-color: #454545;
padding: 20px;
overflow: hidden;
}
.container {
display: flex;
width: 100%;
height: 100%;
resize: both; /* Enable resizing for the container */
overflow: auto; /* Enable scrolling if content overflows */
border: 1px solid #ccc;
}
.editor-con {
flex: 1;
padding: 10px;
display: flex;
flex-direction: column;
resize: both; /* Enable resizing for the editor */
overflow: auto; /* Enable scrolling if content overflows */
}
.editor {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
}
.preview {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
background-color: #ccc;
color: black;
resize: both; /* Enable resizing for the preview iframe */
overflow: auto; /* Enable scrolling if content overflows */
}
.editor-toolbar {
background-color: black;
padding: 5px;
border-bottom: 1px solid #ccc;
display: flex;
justify-content: end;
}
.editor-toolbar button {
padding: 5px 10px;
margin-right: 10px;
cursor: pointer;
}
textarea {
background-color: #1f1f1f;
font-size: 18px;
border: none;
outline: none;
}
.html {
color: rgba(0, 0, 255, 0.7);
}
.css {
color: rgba(255, 68, 0, 0.7);
}
.js {
color: rgba(255, 166, 0, 0.7);
}
.editor-title {
background-color: black;
display: flex;
padding: 3px 10px;
color: #fff;
align-items: center;
}
.editor-title img {
width: 20px;
height: 20px;
object-fit: cover;
}
/* Style for the scrollable element */
.scrollable-element {
height: 200px; /* Set the height of the scrollable element */
overflow-y: scroll; /* Enable vertical scrollbar */
border: 1px solid #ccc;
padding: 10px;
}
/* Style for the scrollbar */
.scrollable-element::-webkit-scrollbar {
width: 10px; /* Set the width of the scrollbar */
}
/* Style for the scrollbar track */
.scrollable-element::-webkit-scrollbar-track {
background-color: #f1f1f1; /* Color of the track */
}
/* Style for the scrollbar thumb */
.scrollable-element::-webkit-scrollbar-thumb {
background-color: #000; /* Color of the thumb */
}
/* Style for the scrollbar thumb on hover */
.scrollable-element::-webkit-scrollbar-thumb:hover {
background-color: #555; /* Color of the thumb on hover */
}