-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
192 lines (163 loc) · 4.65 KB
/
styles.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
body {
font-family: 'Arial', sans-serif;
background-image: url('https://f.yourl.jp/1d27fa70/');
background-size: cover; /* 背景画像を画面全体にカバー */
background-repeat: no-repeat; /* 背景画像を繰り返さない */
background-attachment: fixed; /* 背景画像を固定 */
background-position: center; /* 背景画像を中央に配置 */
margin: 0;
padding: 0;
}
/* Dashboard-specific styles */
.dashboard-container {
max-width: 1200px;
margin: 50px auto;
background-color: rgba(240, 255, 230, 0.9); /* 背景色を薄い黄緑にし、透明度を追加 */
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* 軽い影の効果 */
}
.dashboard-header {
text-align: center;
margin-bottom: 30px;
}
.dashboard-header h1 {
font-size: 28px;
color: #333333; /* ヘッダーのテキストの色 */
margin: 0;
}
.dashboard-main-content {
text-align: center;
}
.dashboard-main-content h2 {
font-size: 24px;
color: #333333; /* セクションタイトルの色 */
margin-bottom: 20px;
}
.dashboard-food-list {
background-color: rgba(212, 245, 161, 0.9); /* 食品リスト部分の背景色を薄い黄緑にし、透明度を追加 */
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.dashboard-food-list ul {
list-style-type: none;
padding: 0;
}
.dashboard-food-list li {
font-size: 16px;
color: #666666; /* リストアイテムのテキストの色 */
margin-bottom: 10px;
}
.dashboard-food-list input[type="checkbox"] {
margin-right: 10px;
}
.button {
padding: 10px 20px;
background-color: #a8e6cf; /* ボタンの背景色を薄い黄緑に */
color: #ffffff; /* ボタンのテキストの色 */
text-decoration: none;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #79d8a8; /* ホバーエフェクト */
}
.footer {
text-align: center;
margin-top: 30px;
font-size: 14px;
color: #666666; /* フッターのテキストの色 */
}
/* Default styles */
.container {
max-width: 800px;
margin: 50px auto;
background-color: rgba(240, 255, 230, 0.9); /* コンテンツの背景色を薄い黄緑にし、透明度を追加 */
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
margin-bottom: 20px;
}
.main-content {
text-align: center;
}
.form-group {
margin-bottom: 15px;
text-align: left;
}
label {
display: block;
margin-bottom: 5px;
color: #333;
}
input[type="text"],
input[type="date"] {
width: calc(100% - 20px);
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
}
button[type="submit"] {
display: inline-block;
padding: 10px 20px;
background-color: #a8e6cf; /* ボタンの背景色を薄い黄緑に */
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
background-color: #79d8a8; /* ホバーエフェクト */
}
.footer {
margin-top: 20px;
text-align: center;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #2bc98f; /* ボタンの背景色を薄い黄緑に */
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #79d8a8; /* ホバーエフェクト */
}
/* Camera styles */
#barcodeScanner {
width: 100%;
max-width: 600px; /* カメラ映像の最大幅を600pxに設定 */
margin: 0 auto; /* 中央揃え */
border: 1px solid #ddd; /* 枠線を追加 */
border-radius: 10px; /* 角を丸く */
box-sizing: border-box;
background-color: #000; /* 背景色を黒に */
}
#startScanButton {
display: block;
margin: 20px auto 10px; /* 上部に余白を追加 */
}
#captureButton {
display: block;
margin: 10px auto; /* カメラ映像のすぐ下に配置 */
padding: 10px 20px;
background-color: #a8e6cf; /* ボタンの背景色を薄い黄緑に */
color: #ffffff; /* ボタンのテキストの色 */
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#captureButton:hover {
background-color: #79d8a8; /* ホバーエフェクト */
}