-
Notifications
You must be signed in to change notification settings - Fork 2
/
command.css
147 lines (122 loc) · 2.04 KB
/
command.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
/*大標題*/
.title {
background-color: silver;
width: 98.7%;
text-align: center;
float: left;
padding:10px;
}
/*指令教學選擇卡*/
.card {
background-color: snow;
width:288px;
height:250px;
box-shadow:2px 2px 10px;
display: inline-block;
}
.card:hover {
outline:2px solid cornflowerblue;
box-shadow:2px 2px 10px rgb(15, 119, 255);
background-color: rgb(165, 227, 255);
}
.card img {
padding:5px;
width:280px;
height:170px;
}
.card a {
text-decoration: none;
color: black;
}
.card h3 {
font-size: 30px;
}
.allcard {
padding:10px;
}
/*導航欄*/
.list {
list-style-type:none;
margin: 0;
padding: 0;
overflow: hidden;
background-color:rgb(57, 57, 57);
left: 0px;
top: 0px;
list-style-position: inside;
position: sticky;
display: block;
}
.list-link {
display: block;
background-color:rgb(57, 57, 57);
color: seashell;
padding: 12px;
text-align: center;
display: inline;
float: left;
text-decoration: none
}
.list-link:hover {
background-color:rgb(83, 83, 83);
}
/* 布局模板 */
header {
background-color: rgba(0, 195, 255, 0.8);
text-align: center;
font-size: 35px;
color: white;
}
nav {
float: left;
width: 30%;
height: 300px;
background: #ccc;
padding: 20px;
}
nav ul {
list-style-type: none;
padding: 0;
}
article {
float: left;
padding: 20px;
width: 70%;
background-color: #f1f1f1;
height: 300px;
}
section::after {
content: "";
display: table;
clear: both;
}
footer {
background-color: #777;
padding: 10px;
text-align: center;
color: white;
}
/*響應式*/
@media only screen and (max-width: 800px) {
.card {
width:125px;
height:130px;
margin:10px;
}
.list-link {
width: 97%;
display: inline;
}
.card img {
padding:5px;
width:110px;
height:70px;
}
.newstext {
text-align:center;
float: none;
}
.title {
width: 95.7%;
}
}