forked from Aditya-269/BloggingSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.css
163 lines (143 loc) · 3.21 KB
/
blog.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Georgia', serif;
color: #333;
line-height: 1.8;
background: #fafafa;
transition: background 0.3s ease, color 0.3s ease;
}
a {
text-decoration: none;
color: #333;
transition: color 0.3s ease;
}
a:hover {
color: #1a73e8;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 1rem 0;
}
/* Page Wrapper */
.page-wrapper {
display: flex;
justify-content: center;
align-items: flex-start;
margin-top: 3rem;
padding: 0 1rem;
}
.content {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
}
.main-content {
background: #fff;
border: 1px solid #e6e6e6;
padding: 2.5rem;
border-radius: 12px;
width: 100%;
max-width: 800px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease;
position: relative; /* Added to ensure positioning context for the Quill editor */
}
.main-content:hover {
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 2.2rem;
margin-bottom: 2rem;
font-weight: bold;
color: #333;
text-align: center;
letter-spacing: 0.5px;
}
/* Form Styling */
form {
display: flex;
flex-direction: column;
gap: 1.8rem;
}
label {
font-size: 1.2rem;
font-weight: 600;
color: #333;
margin-bottom: 0.5rem;
}
input[type="text"],
input[type="date"], /* Add date input styling */
textarea {
padding: 1rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1.1rem;
color: #333;
width: 100%;
box-sizing: border-box;
transition: border 0.3s ease;
}
input[type="text"]:focus,
input[type="date"]:focus, /* Add date input focus styling */
textarea:focus {
border-color: #1a73e8;
outline: none;
}
textarea {
height: 160px;
resize: vertical;
}
#blog-body {
border: 1px solid #ddd;
border-radius: 8px;
padding: 12px;
resize: vertical;
}
/* Button Styling */
button {
background: #1a73e8;
color: #fff;
font-size: 1.1rem;
padding: 1rem 1.8rem;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
margin-top: 1.5rem;
width: 100%;
font-weight: bold;
}
button:hover {
background: #0056a6;
transform: scale(1.05);
}
/* Quill Editor Styling */
.ql-container {
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px; /* Added padding for better spacing */
box-sizing: border-box;
max-height: 400px; /* Added max-height to control overflow */
overflow-y: hidden; /* Added to allow scrolling inside the editor */
}
.ql-editor {
min-height: 200px;
font-size: 1.1rem;
color: #333;
padding: 12px; /* Added padding for inner spacing */
overflow: auto; /* Prevent text from overflowing */
box-sizing: border-box; /* Include padding in the height/width calculation */
word-wrap: break-word; /* Ensure long words break properly */
}
/* Add slight padding and shadow to input fields and Quill editor for a cleaner look */
input[type="text"], input[type="date"], textarea, #blog-body {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}