Main Page/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 88: | Line 88: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.container p a { | .container p a.external:visited { | ||
flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */ | flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */ | ||
height: 64px; | height: 64px; | ||
Line 100: | Line 100: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
margin: 5px; /* Space between items */ | margin: 5px; /* Space between items */ | ||
text-decoration: none; | |||
transition: all 0.15s ease-in; | |||
} | } |
Revision as of 19:58, 25 October 2024
.mainpage-title{ font-size:1.6em; font-weight: bold; } .text-container { position: relative; width: 100%; /* 可以根据需要调整 */ height: 64px; /* 可以根据需要调整 */ margin: 0 auto; /* 居中对齐 */ overflow: hidden; text-align: center; } .text-slide { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; animation: slide-animation 6s infinite; } .text-slide:nth-child(1) { animation-delay: 0s; } .text-slide:nth-child(2) { animation-delay: 2s; } .text-slide:nth-child(3) { animation-delay: 4s; } @keyframes slide-animation { 0%, 20% { opacity: 0; transform: translateX(0); } 25%, 45% { opacity: 1; transform: translateX(-1px); } 30%, 40% { transform: translateX(1px); } 50%, 100% { opacity: 0; transform: translateX(0); } } /*什么*/ .textbox { width: 100%; height: auto; padding: 20px 0; background-color: rgba(255, 255, 255, 0.25); display: flex; flex-wrap: wrap; } .left-child, .right-child { background-color: rgba(240, 240, 240, 0.25); flex: 1 1 100%; box-sizing: border-box; padding: 10px; } @media (min-width: 980px) { .left-child, .right-child { flex: 1; } .left-child { max-width:36%; } .left-child { border-right: 1px solid black; } } .container { width: 100%; } .container p{ display: flex; flex-wrap: wrap; width: 100%; } .container p a.external:visited { flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */ height: 64px; background-color: rgba(0, 0, 255, 0.8); /* 80% transparent blue */ border: 5px solid rgba(255, 0, 0, 0.8); /* 5px 80% transparent red */ color: white; font-weight: bold; display: flex; justify-content: center; align-items: center; box-sizing: border-box; margin: 5px; /* Space between items */ text-decoration: none; transition: all 0.15s ease-in; }