-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
138 lines (119 loc) · 2.62 KB
/
style.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
/* Custom styles */
:root {
--primary-color: #2e86c1;
--bg-color: #f9f9f9;
--text-color: white;
--input-border-color: #ccc;
--input-focus-border-color: #2e86c1;
--input-focus-shadow-color: rgba(0, 0, 0, 0.1);
--button-color: #1d5ea8;
--delete-color: #e74c3c;
}
/* Set background color */
body {
background-color: var(--bg-color);
padding: 20px;
}
.content-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* Style the header */
header {
background-color: var(--primary-color);
color: var(--text-color);
padding: 10px;
}
/* Style the navigation links */
nav a {
color: var(--text-color);
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
/* Style the form */
form {
background-color: var(--bg-color);
padding: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px var(--input-focus-shadow-color);
}
form label {
font-weight: bold;
}
form input[type="number"] {
border: 1px solid var(--input-border-color);
border-radius: 3px;
padding: 8px;
width: 100%;
margin-bottom: 10px;
font-size: 1.1em;
}
form input[type="number"]:focus {
outline: none;
border-color: var(--input-focus-border-color);
box-shadow: 0px 0px 5px var(--input-focus-shadow-color);
}
/* Style the chart container */
#habitChart {
display: block;
margin: 0 auto;
max-width: 600px;
height: auto;
}
.chartjs-render-monitor .chart-scatter .chart-point {
background-color: rgba(0, 0, 0, 0.8) !important; /* Darker color for points */
border-color: rgba(0, 0, 0, 0.8) !important; /* Darker color for point border */
width: 12px !important; /* Increase the size of points */
height: 12px !important; /* Increase the size of points */
margin-left: -6px !important; /* Adjust the position of points */
margin-top: -6px !important; /* Adjust the position of points */
}
/* Media queries for responsiveness */
@media (max-width: 600px) {
body {
padding: 10px;
}
form input[type="number"] {
width: 100%;
}
}
/* Center the content */
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
/* Center the navbar */
.navbar {
display: flex;
justify-content: center;
align-items: center;
}
/* Center the titles */
h1, h2 {
text-align: center;
}
/* Center the chart */
#graph {
text-align: center;
}
.proof-box {
background-color: var(--primary-color);
color: var(--text-color);
padding: 8px;
border-radius: 3px;
font-weight: bold;
text-align: center;
width: 100%;
margin-bottom: 10px;
}
.proof-text {
font-weight: bold;
margin-bottom: 5px;
}