123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- /* 全局页面样式 */
- body {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
- margin: 0;
- padding: 0;
- background-color: #f2f2f7; /* iOS风格的浅灰背景 */
- }
- /* 头部样式 */
- header {
- background-color: #ffffff;
- color: #333;
- padding: 20px;
- text-align: center;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
- }
- /* 容器布局:包含侧边栏和主内容 */
- .container {
- display: flex;
- height: calc(100vh - 70px); /* 视口高度减去头部高度 */
- }
- /* 侧边栏样式 */
- aside {
- width: 200px;
- background-color: #f2f2f7;
- color: #000;
- padding: 20px;
- height: 100%;
- }
- aside ul {
- list-style: none;
- padding: 0;
- }
- aside ul li {
- margin: 20px 0;
- cursor: pointer;
- }
- /* 主内容区域 */
- main {
- flex: 1; /* 占据剩余宽度 */
- padding: 20px;
- overflow-y: auto; /* 启用垂直滚动 */
- }
- /* 瀑布流容器样式,每行最多显示4个卡片 */
- .license-info-container {
- display: flex;
- flex-wrap: wrap;
- gap: 20px; /* 卡片之间的间距 */
- }
- /* 卡片样式 */
- .license-info-card {
- position: relative;
- width: calc(25% - 20px); /* 每行4个卡片,减去间距 */
- background-color: #ffffff; /* 白色背景 */
- border-radius: 15px; /* iOS风格的圆角 */
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 轻微柔和的阴影 */
- overflow: hidden;
- transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 过渡效果 */
- margin-bottom: 20px;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* iOS 系统字体 */
- padding-bottom: 20px; /* 添加底部填充,以防止内容溢出 */
- }
- /* 悬停效果 */
- .license-info-card:hover {
- transform: translateY(-3px); /* 悬停时轻微向上浮动 */
- box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1); /* 悬停时增加阴影效果 */
- }
- /* 卡片顶部蓝色区域 */
- .license-info-card-header {
- background-color: #007aff; /* iOS风格的蓝色 */
- height: 50px; /* 顶部蓝色部分的高度 */
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 10px;
- text-align: center;
- color: white; /* 项目名称字体颜色为白色 */
- }
- /* 标题样式:现在位于蓝色区域 */
- .card-title {
- font-size: 20px; /* 标题字体加大 */
- font-weight: 600; /* 标题字体加粗 */
- color: white; /* 项目名称字体颜色为白色,和背景颜色形成对比 */
- margin: 0;
- line-height: 1.2; /* 行间距 */
- }
- /* 副标题和其他文本样式 */
- .license-info-card-content {
- padding: 20px;
- color: #333;
- }
- .card-text {
- margin: 10px 0; /* 增加字段之间的间距 */
- font-size: 18px; /* 提高字体大小 */
- color: #3a3a3c; /* 中灰色,符合iOS风格 */
- line-height: 1.6; /* 行间距调整,确保更好的可读性 */
- }
- /* 许可证状态的颜色 */
- .license-status-green {
- color: #34c759; /* iOS的绿色 */
- }
- .license-status-yellow {
- color: #ffcc00; /* iOS的黄色 */
- }
- .license-status-red {
- color: #ff3b30; /* iOS的红色 */
- }
- /*这部分代码仅在设备屏幕宽度小于或等于 768 像素时生效
- */
- @media (max-width: 768px) {
- .license-info-modal-content.show {
- width: 90vw;
- height: 90vh;
- }
- /* 小屏幕下卡片调整为每行显示2个 */
- .license-info-card {
- width: calc(50% - 20px);
- height: auto; /* 调整小屏幕下的高度 */
- }
- }
- /*-----------------*/
|