Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
/*
|
| 2 |
* {
|
| 3 |
box-sizing: border-box;
|
| 4 |
}
|
|
@@ -44,6 +44,18 @@ h2 {
|
|
| 44 |
padding-bottom: 10px;
|
| 45 |
}
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
.quote-box {
|
| 48 |
background-color: #e0f7fa;
|
| 49 |
border-left: 5px solid #00796b;
|
|
@@ -56,22 +68,18 @@ h2 {
|
|
| 56 |
/* 圖片容器樣式 */
|
| 57 |
.figure-container {
|
| 58 |
text-align: center;
|
| 59 |
-
margin:
|
| 60 |
-
/* 確保容器本身不會有不必要的內邊距影響寬度 */
|
| 61 |
padding: 0;
|
| 62 |
}
|
| 63 |
|
| 64 |
-
/* --- 修改開始 (更強制的圖片縮放規則) --- */
|
| 65 |
.figure-container img {
|
| 66 |
-
max-width: 100%;
|
| 67 |
-
height: auto;
|
| 68 |
-
display: block;
|
| 69 |
-
margin: 15px auto;
|
| 70 |
border: 1px solid #ccc;
|
| 71 |
border-radius: 4px;
|
| 72 |
}
|
| 73 |
-
/* --- 修改結束 --- */
|
| 74 |
-
|
| 75 |
|
| 76 |
.figure-container figcaption {
|
| 77 |
margin-top: 10px;
|
|
@@ -86,7 +94,7 @@ h2 {
|
|
| 86 |
|
| 87 |
/* 表格樣式 */
|
| 88 |
.table-container {
|
| 89 |
-
overflow-x: auto;
|
| 90 |
}
|
| 91 |
|
| 92 |
table {
|
|
@@ -118,6 +126,36 @@ td.category {
|
|
| 118 |
text-align: center;
|
| 119 |
}
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
.app-grid {
|
| 122 |
display: grid;
|
| 123 |
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
@@ -130,6 +168,7 @@ td.category {
|
|
| 130 |
border-left: 5px solid #0a9396;
|
| 131 |
}
|
| 132 |
|
|
|
|
| 133 |
footer {
|
| 134 |
text-align: center;
|
| 135 |
padding: 20px;
|
|
@@ -137,3 +176,4 @@ footer {
|
|
| 137 |
background: #333;
|
| 138 |
color: #fff;
|
| 139 |
}
|
|
|
|
|
|
| 1 |
+
/* 全域設定 */
|
| 2 |
* {
|
| 3 |
box-sizing: border-box;
|
| 4 |
}
|
|
|
|
| 44 |
padding-bottom: 10px;
|
| 45 |
}
|
| 46 |
|
| 47 |
+
h3 {
|
| 48 |
+
color: #00796b;
|
| 49 |
+
text-align: center;
|
| 50 |
+
font-size: 1.8rem;
|
| 51 |
+
margin-top: 40px;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
h4 {
|
| 55 |
+
color: #005f73;
|
| 56 |
+
font-size: 1.3rem;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
.quote-box {
|
| 60 |
background-color: #e0f7fa;
|
| 61 |
border-left: 5px solid #00796b;
|
|
|
|
| 68 |
/* 圖片容器樣式 */
|
| 69 |
.figure-container {
|
| 70 |
text-align: center;
|
| 71 |
+
margin: 20px 0;
|
|
|
|
| 72 |
padding: 0;
|
| 73 |
}
|
| 74 |
|
|
|
|
| 75 |
.figure-container img {
|
| 76 |
+
max-width: 100%;
|
| 77 |
+
height: auto;
|
| 78 |
+
display: block;
|
| 79 |
+
margin: 15px auto;
|
| 80 |
border: 1px solid #ccc;
|
| 81 |
border-radius: 4px;
|
| 82 |
}
|
|
|
|
|
|
|
| 83 |
|
| 84 |
.figure-container figcaption {
|
| 85 |
margin-top: 10px;
|
|
|
|
| 94 |
|
| 95 |
/* 表格樣式 */
|
| 96 |
.table-container {
|
| 97 |
+
overflow-x: auto;
|
| 98 |
}
|
| 99 |
|
| 100 |
table {
|
|
|
|
| 126 |
text-align: center;
|
| 127 |
}
|
| 128 |
|
| 129 |
+
/* --- 新增樣式 --- */
|
| 130 |
+
.section-divider {
|
| 131 |
+
border: 0;
|
| 132 |
+
height: 1px;
|
| 133 |
+
background: #e9ecef;
|
| 134 |
+
margin: 40px 0;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.method-details {
|
| 138 |
+
display: grid;
|
| 139 |
+
grid-template-columns: 1fr; /* 預設單欄,適用手機 */
|
| 140 |
+
gap: 40px; /* 項目之間的間距 */
|
| 141 |
+
margin-top: 20px;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
/* 在螢幕寬度大於768px時,變為兩欄 */
|
| 145 |
+
@media (min-width: 768px) {
|
| 146 |
+
.method-details {
|
| 147 |
+
grid-template-columns: 1fr 1fr;
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
.method-item {
|
| 152 |
+
background-color: #f8f9fa;
|
| 153 |
+
padding: 20px;
|
| 154 |
+
border-radius: 8px;
|
| 155 |
+
border: 1px solid #e9ecef;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
/* 工程應用 */
|
| 159 |
.app-grid {
|
| 160 |
display: grid;
|
| 161 |
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
|
|
| 168 |
border-left: 5px solid #0a9396;
|
| 169 |
}
|
| 170 |
|
| 171 |
+
/* 頁腳 */
|
| 172 |
footer {
|
| 173 |
text-align: center;
|
| 174 |
padding: 20px;
|
|
|
|
| 176 |
background: #333;
|
| 177 |
color: #fff;
|
| 178 |
}
|
| 179 |
+
|