-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
71 lines (66 loc) · 2.32 KB
/
Copy pathstyle.css
File metadata and controls
71 lines (66 loc) · 2.32 KB
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
body {
font-family: sans-serif;
text-align: center;
margin: 0; /* デフォルトの margin を削除 */
background-image: url('background.jpg'); /* 画像のパスを指定 */
background-size: cover; /* 画面全体に画像をフィットさせる */
background-repeat: no-repeat; /* 画像を繰り返さない */
background-attachment: fixed; /* スクロールしても背景を固定する */
color: white; /* 全体的な文字色を白に */
min-height: 100vh; /* 画面の高さ全体をカバー */
display: flex; /* 子要素を中央に配置するための設定 */
justify-content: center; /* 水平方向中央揃え */
align-items: center; /* 垂直方向中央揃え */
}
#timer {
font-size: 4em; /* サイズを大きく */
background-color: rgba(255, 255, 255, 0.2); /* 半透明の白背景 */
padding: 30px 50px; /* 内側の余白 */
border-radius: 10px; /* 角を少し丸く */
margin-bottom: 30px; /* 下の要素との間隔 */
font-family: 'Orbitron', sans-serif; /* デジタルっぽいフォント (別途読み込みが必要かもしれません) */
}
div > label { /* label 要素のスタイル */
display: inline-block; /* 横並びにするため */
margin-right: 10px;
color: #ccc; /* 薄いグレーの文字色 */
}
input[type="number"] {
width: 80px;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: white;
color: #333;
text-align: center;
margin-right: 20px; /* 右側の入力欄との間隔 */
}
/* 最後の入力欄の右マージンを削除 */
div > input[type="number"]:last-child {
margin-right: 0;
}
/* 入力欄を囲む div 要素のスタイル */
body > div:nth-child(3) { /* Study Time の入力欄 */
margin-bottom: 10px;
}
body > div:nth-child(4) { /* Short Break の入力欄 */
margin-bottom: 20px;
}
button {
padding: 12px 25px;
margin: 5px;
border: none;
border-radius: 5px;
background-color: #007bff; /* 青色の背景 */
color: white;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}
button:hover {
background-color: #0056b3; /* ホバー時に少し濃い青色に */
}
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}