-
Notifications
You must be signed in to change notification settings - Fork 0
/
texteditor.css
147 lines (120 loc) · 2.58 KB
/
texteditor.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
body {
padding: 5vh;
background-color: blueviolet;
}
.container {
width: 100%;
}
h1 {
font-family: sans-serif;
color: white;
}
.toolbar {
width: 50%;
display: flex;
gap: 10px;
flex-wrap: wrap;
background-color: #be3ff4;
padding: 2vh;
box-shadow: 0 0 4px 3px rgba(255, 255, 255, 0.424);
}
.textcolor {
display: flex;
justify-content: center;
}
input[type="color"] {
background-color: antiquewhite;
border: none;
cursor: pointer;
}
.font-family,
.textSize {
border: 4px solid;
border-top-color: rgb(199, 93, 232);
border-left-color: rgb(199, 93, 232);
border-right-color: rgb(145, 79, 238);
border-bottom-color: rgb(145, 79, 238);
border-style: groove;
padding: 5px;
}
select {
cursor: pointer;
}
.font-family option:nth-child(1) {
font-family: Arial;
}
.font-family option:nth-child(2) {
font-family: Helvetica;
}
.font-family option:nth-child(3) {
font-family: 'Times New Roman', Times, serif;
}
.font-family option:nth-child(4) {
font-family: 'Courier New', Courier, monospace;
}
.font-family option:nth-child(5) {
font-family: Georgia;
}
.font-family option:nth-child(6) {
font-family: Verdana;
}
.font-family option:nth-child(7) {
font-family: Tahoma;
}
.font-family option:nth-child(8) {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.textSize option:nth-child(1) {
font-size: small;
}
.textSize option:nth-child(2) {
font-size: medium;
}
.textSize option:nth-child(3) {
font-size: large;
}
.textSize option:nth-child(4) {
font-size: x-large;
}
button {
border: none;
font-size: xx-large;
background-color: #be3ff4;
cursor: pointer;
font-family: 'Courier New', Courier, monospace;
color: azure;
}
#editor {
height: 100%;
padding: 10px;
border: 1px solid #ccc;
resize: vertical;
overflow-y: auto;
}
#Published,
#publish {
border: 2px solid black;
font-family: Arial, Helvetica, sans-serif;
padding: 2vh;
font-size: large;
font-weight: bold;
margin-top: 5vh;
}
#publish {
background-color: rgb(259, 110, 110);
}
#Published {
background-color: rgb(58, 180, 58);
display: none;
}
#publishPost {
border: 2px solid black;
margin-top: 5vh;
padding: 2vh;
display: none;
}
h2 {
color: white;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}