User:Koshiyakanata/style.css:修订间差异

无编辑摘要
(// Edit via Wikiplus)
 
(未显示同一用户的3个中间版本)
第6行: 第6行:
    margin-left: 51%;
    margin-left: 51%;
}
}
/*  日历,测试 Start */
 
* {box-sizing:border-box;}
/*  横向滚动 Start */
ul {list-style-type: none;}
  .scroll {
body {font-family: Verdana,sans-serif;}
display:block;
text-align: center;
.month {
white-space: nowrap;
   padding: 70px 25px;
overflow-x: scroll;
   width: 100%;
overflow-y: hidden;
   background: #1abc9c;
width: 300px;
}
    }
/*  横向滚动 End */
.month ul {
   margin: 0;
   padding: 0;
}
.month ul li {
   color: white;
   font-size: 20px;
   text-transform: uppercase;
   letter-spacing: 3px;
}
.month .prev {
   float: left;
   padding-top: 10px;
}
.month .next {
   float: right;
   padding-top: 10px;
}
.weekdays {
   margin: 0;
   padding: 10px 0;
   background-color: #ddd;
}
.weekdays li {
   display: inline-block;
   width: 13.6%;
   color: #666;
   text-align: center;
}
  
.days {
   padding: 10px 0;
   background: #eee;
   margin: 0;
}
.days li {
   list-style-type: none;
   display: inline-block;
   width: 13.6%;
   text-align: center;
   margin-bottom: 5px;
   font-size:12px;
   color: #777;
}
.days li .active {
   padding: 5px;
   background: #1abc9c;
   color: white !important
}
/* 添加不同尺寸屏幕的样式 */
@media screen and (max-width:720px) {
   .weekdays li, .days li {width: 13.1%;}
}
@media screen and (max-width: 420px) {
   .weekdays li, .days li {width: 12.5%;}
   .days li .active {padding: 2px;}
}
@media screen and (max-width: 290px) {
   .weekdays li, .days li {width: 12.2%;}
}
/*  日历,测试 End */


/* Link-box Start */
/* Link-box Start */

2022年12月23日 (五) 18:00的最新版本

.left {
    float: left;
    width: 50%;
}
.right {
    margin-left: 51%;
}

/* 横向滚动 Start */
 .scroll {
	 display:block;
	 text-align: center;
	 white-space: nowrap;
	 overflow-x: scroll;
	 overflow-y: hidden;
	 width: 300px;
      }
/* 横向滚动 End */

/* Link-box Start */
.link-box {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: stretch;
	min-height: 90px;
	width: 300px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08),0 0 3px rgba(0,0,0,0.1);
	transition: box-shadow 0.2s ease-in-out;
}
.link-box:active {
	z-index: 1;
	box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 0 1px 0 rgba(0,0,0,0.15);
	transition: all 0.04s ease-in;
}
.img-box {
	flex: 0 0 110px;
	position: relative;
	z-index: 1;
	overflow: hidden;
	mask-image: linear-gradient(90deg, black 90px, transparent); /*-webkit不让加,在内联样式里面加*/
}
.img-box>img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.32, 0, 0.4, 1);
}
.txt-box {
	flex-grow: 1;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	margin-left: -20px;
	padding: 7px 10px 7px 27px;
	z-index: 2;
}
.txt-box>.title {
	display: block;
	font-weight: bold;
	color: #222
}
.txt-box>.text {
	display: block;
	color: #666;
	font-size: smaller;
}
.link-cover, .url-cover {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
}
/* Link-box End */