Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (122 loc) · 2.8 KB
/
Copy pathstyle.css
File metadata and controls
127 lines (122 loc) · 2.8 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
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
:root{
--color-active: #005AB5;
}
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
background-color: #f5f5f5;
padding-top: 20px;
}
.input-object {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
fieldset {
border: 1px solid black;
}
.titles {
margin-top: 5px; /* 增加間距 */
/* font-weight: bold; */
}
.video-container {
display: grid;
margin: 0 auto;
position: relative;
}
.radio-container {
width: 18px;
height: 18px;
}
.navigation-container {
display: flex;
justify-content: center; /* 讓內容置中 */
align-items: center;
width: 100%;
margin-top: 20px; /* 增加一點留白 */
}
#prev_button {
position: absolute;
left: 0; /* 與 fieldset 的左邊界對齊 */
bottom: 10px; /* 調整垂直位置 */
background-color: black;
color: white;
border: none;
padding: 15px 25px;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
}
#next_button {
position: absolute;
right: 0; /* 與 fieldset 的右邊界對齊 */
bottom: 10px; /* 調整垂直位置 */
background-color: black;
color: white;
border: none;
padding: 15px 25px;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
}
#num_page {
font-size: 18px;
font-weight: bold;
}
.video-row {
display: flex;
justify-content: center; /* 讓內容置中 */
gap: 20px; /* 影片之間的間距 */
}
/* check style */
.check-group{
input[type="checkbox"], input[type="radio"]{
display: none;
+ label{
vertical-align: middle;
}
+ .btn-check{
position: relative;
display: inline-block;
width: 0.9rem;
height: 0.9rem;
border: 2px solid #ccc;
border-radius: .25rem;
background-color: #eee;
background-size: 60%;
background-position: 50% 50%;
background-repeat: no-repeat;
}
&:checked + .btn-check{
background-color: var(--color-active);
background-image: url(https://im1010ioio.github.io/super-easy-css/59/check-mark.svg);
border-color: var(--color-active);
}
}
input[type="radio"] + .btn-check{
border-radius: 50%;
}
}
/* hover and other style */
.check-group{
display: inline-block;
.btn-check, .text-check{
cursor: pointer;
transition: .3s;
}
&:hover {
input[type="checkbox"], input[type="radio"]{
+ .btn-check{
border-color: var(--color-active);
}
+ .text-check{
color: var(--color-active);
}
}
}
}