-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.css
More file actions
79 lines (67 loc) · 1.74 KB
/
index.css
File metadata and controls
79 lines (67 loc) · 1.74 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
72
73
74
75
/* テーブルの装飾 */
table {
/* 電卓のサイズ */
width: 300px;
height: 400px;
/* 電卓が浮き出るように影を付ける */
border: solid 1px #dcdcdca4;
border-right: solid 4px #dcdcdca4;
border-bottom: solid 4px #dcdcdca4;
border-radius: 10px;
/* インライン要素を中央に配置 */
text-align: center;
/* 余白調整 */
padding: 8px;
margin: 20px;
}
input {
/* ボタンのサイズ */
width: 70px;
height: 70px;
/* ボタンの文字サイズ */
font-size: x-large;
/* 数字部分の背景色 */
background-color: #dcdcdca4;
/* ボタンの詳細設定 */
border: none;
border-radius: 20px;
/* クリック時の黒枠を消す */
outline: none;
}
/* ディスプレイの詳細設定 */
.display {
width: 250px;
text-align: right;
/* 文字を右詰めに */
/* 見た目の詳細設定 */
background: #ffffff;
border-top: solid #dcdcdca4 5px;
border-bottom: solid #dcdcdca4 5px;
border-right: solid #b6b6b6 6px;
border-left: solid #b6b6b6 6px;
border-radius: 5px;
}
/* 記号=の部分の背景色を上書きで設定 */
.equal {
background-color: #b6b6b6;
}
/* カーソルを上に乗せた時に色を濃くする */
input:hover {
background: #747373b9;
}
.display:hover {
background: #ffffff;
/* ディスプレイ部分は無効化 */
}
/* クリック時に色を濃くする */
input:active {
background: #5a5a5a;
}
/*
↓ 仕様変更① ↓※CSS分からない人も上の処理を参考にやってください!
演算子(operator)の背景色(background)を設定
電卓の右側の計算用のボタンは青系の色にする
default #87cefa 通常時
:hover #339cdd オンマウス
:active #2c80b4 クリック時
*/