/* CSS Reset */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
ol,
li,
form,
label,
fieldset,
legend {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
box-sizing: border-box;
}
/* Additional Resets */
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
}
a {
text-decoration: none;
color: inherit;
}
/* CSS Reset End */
:root {
--main-color: #C39F68;
--sub-color: #E9F1F4;
}
* {
font-family: 'Noto Sans TC', sans-serif;
}
input:focus-visible {
outline: 2px solid (var(--sub-color));
}
.search {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: end;
position: relative;
span {
position: relative;
}
input {
padding: 5px 15px;
border-radius: 100px;
border: 1px solid #ccc;
background-color: #fff;
// box-shadow: 1px 1px 3px #ccc;
}
button {
position: absolute;
right: 10px;
left: 0;
top: 3px;
img {
width: 25px;
position: absolute;
top: 2px;
right: 0;
}
}
.error {
position: absolute;
bottom: -30px;
}
}
.college-bg-img {
width: 100vw;
background-image: url("@/assets/img/college-group/background.png");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.college-banner {
display: flex;
justify-content: center;
position: relative;
top: -8vw;
right: 0;
left: 0;
z-index: 1;
img {
width: 100%;
}
h1 {
position: absolute;
top: 50%;
left: 11%;
font-size: 40px;
font-weight: 500;
word-wrap: break-word;
@media (max-width: 1200px) {
font-size: 36px;
}
@media (max-width: 960px) {
font-size: 24px;
}
@media (max-width: 600px) {
font-size: 20px;
top: 45%;
left: 5%;
}
}
}
.college-content {
padding: 0;
width: 1300px !important;
@media (max-width: 600px) {
width: 85%;
}
.main-block {
padding: 150px 80px;
margin-top: -30%;
background-color: #fff;
@media (max-width: 960px) {
padding: 100px 50px;
}
@media (max-width: 600px) {
padding: 50px 20px;
}
h2 {
font-size: 30px;
font-weight: 500;
line-height: 32px;
margin-left: 10px;
@media (max-width: 960px) {
font-size: 24px;
}
@media (max-width: 600px) {
margin-left: 0;
margin-bottom: 50px;
}
}
.title {
margin: 80px 0;
@media (max-width: 960px) {
margin: 50px 0;
}
}
.v-breadcrumbs {
position: relative;
z-index: 100;
justify-content: flex-start;
@media (max-width: 600px) {
justify-content: center;
}
}
}
}
.main-card {
letter-spacing: 1px;
border-radius: 10px;
box-shadow: 2px 2px 10px #aaaaaa;
background-color: var(--sub-color);
.card-title {
height: 80px;
padding: 15px;
margin-bottom: 15px;
display: flex;
justify-content: center;
align-items: center;
border-bottom: 2px solid #fff;
h3 {
font-size: 18px;
font-weight: 400;
text-align: center;
line-height: 24px;
}
}
ul {
padding: 20px;
}
.card-title h3,
.card-info p {
// 超過兩行則省略
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-break: after-white-space;
}
.card-info {
padding: 0 15px;
.cover-img {
height: 220px;
width: 100%;
object-fit: cover;
}
span {
height: 60px;
p {
line-height: 20px;
}
}
}
}