用户:Nannnnn/代码测试/common.css

来自Limbo Wiki Mirror
/*
body {
  background-color: #000080;
  opacity:0.3;
}
*/

/*button*/
.old {
    border-radius: 0;
    width: 4em;
    text-align: center;
    height: calc(1.4em + 4px);
    border-color: Gray; 
    background-color: Tomato; 
    color:#000080;
}

.green {
    border-top-right-radius: 10px;
    border-bottom-left-radius:2em;
    width: 6em;
    text-align: right;
    height: calc(2em + 6px);
    border-color: pink; 
    color:#230080;
	background-color:green;
}

.blue {
	border-top-left-radius: 3em;
	border-bottom-right-radius:2em;
    width: 2em;
    text-align: left;
    height: calc(1em + 2px);
    border-color: black; 
    color:#005080;
	background-color:blue;
}

.white {
    width: 20em;
    text-align: left;
    border-color: White; 
    background-color: White; 
    color:White;
}


/*ad*/
    .yeshu-center {
            margin: 0 .4rem;
            background-color: #FEEF50;
            padding: .1rem;
        }

        .yeshu-title {
            color: #000;
            height: 5%;
            font-size: 1.1rem;
        }

        .yeshu-inner {
            background-color: #0021FC;
            border: .04rem solid #000000;
            color: #ffffff;
            padding: .04rem .04rem .4rem;
        }

        .yeshu-zhengzong {
            font-size: 1.1rem;
            vertical-align: baseline;
            margin: .1rem 0;
        }

        .yeshu-brand {
            border: .04rem solid #FEEF50;
            border-radius: 0.5rem;
            background-color: #FD0000;
            padding: .1rem;

            font-size: 2.5rem;
        }

        .yeshu-year {
            margin: .1rem 0;
            text-shadow: -.04rem -.04rem 0 #000,
            .04rem -.04rem 0 #000,
            -.04rem .04rem 0 #000,
            .04rem .04rem 0 #000;
            font-size: 2.1rem;
        }

        .yeshu-island {
            color: #FEEF50;
            font-size: 1.2rem;
        }

        .yeshu-fresh {
            border: .08rem solid #FD0000;
            border-radius: .1rem;
            background-color: #FEEF50;
            color: #FD0000;
            margin: .1rem -.1rem;
            padding: .1rem;

            font-size: 1.2rem;
        }

        .yeshu-xianzha {
            color: #FEEF50;
            font-size: 2.7rem;
            text-shadow: -.04rem -.04rem 0 #000,
            .04rem -.04rem 0 #000,
            -.04rem .04rem 0 #000,
            .04rem .04rem 0 #000;
        }

        .yeshu-no-addon {
            border: .06rem solid #FEEF50;
            border-radius: 0.3rem;
            background-color: #FD0000;
            padding: .1rem;
            margin: -.1rem .1rem;
            color: #ffffff;
        }

        .yeshu-no-addon > p {
            line-height: 1;
            margin: 0;
            font-size: 1.2rem;
        }

        .yeshu-no-addon > p:first-child {
            font-size: 1.5rem;
        }


/*变色动效*/
#myDIV
{
	width:100px;
	height:100px;
	background:red;
	animation-name: mymove;
	animation-duration:5s;
	animation-iteration-count: infinite;
}

@keyframes mymove
	{
    0%   {background-color: red;}
    25%  {background-color: yellow;}
    50%  {background-color: green;}
    75%  {background-color: blue;}
    100% {background-color: red;}
}

#colorful
{
	background:black;
	animation-name: colorfulmove;
	animation-duration:5s;
	animation-iteration-count: infinite;
    animation-direction: alternate;  
}
@keyframes colorfulmove
	{
	from {background-color:black;color:white;}
	to {background-color:white;color:black;}
}

#ADmove
{
	animation-name: admove;
	animation-duration:3s;
	animation-iteration-count: infinite;
}

@keyframes admove
	{
  0%   {left:100px; top:100px;}
  25%  {left:200px; top:100px;}
  50%  {left:200px; top:200px;}
  75%  {left:100px; top:200px;}
  100% {left:100px; top:100px;}
}

/*rili*/
body{
    margin: 0; /*外边距*/
    padding: 0; /*内边距*/
    display: flex; /*盒模型*/
    justify-content: center; /*主轴居中*/
    align-items: center; /*项目居中*/
    height: 100vh; /*高度*/
    background-color: #352b48; /*背景颜色*/
    font-family: sans-serif; /*字体*/
}
.calendar{
    position: relative;
    background-color: #fff;
    width: 800px;
    height: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 15px solid #fff; /*边框*/
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.calendar .date{
    width: 400px;
    padding: 30px;
    box-sizing: border-box; /*盒子大小规则*/
}
.calendar .date {
    margin: 0 0 20px; 
    padding: 0;
    font-size: 24px; /*字体大小*/
    font-weight: 500; /*字体维度*/
    text-align: center; /*字体居中*/
    user-select: none; /*不可选中*/
    text-transform: capitalize; /*首字母大写*/
}
.calendar .date .days{
    display: flex;
    flex-wrap: wrap; /*可换行*/

}
.calendar .date .days .day,
.calendar .date .days .number{
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.calendar .date .days .day:first-child,
.calendar .date .days .number:nth-child(7n+1){ /*7个为一组,每组第一个*/
    color: #f44336;
    font-weight: 600;
}
.calendar .img{
    position: relative; /*定位*/
    top:0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: #000;
    user-select: none;
}
.calendar .img img{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 95vh; 
}

/*keep out*/
.ye1-rotate {
    transform: rotate(5deg);
    border-color: yellow; 
    background-color: black; 
    color:yellow;
    width: 100%;
    overflow: hidden; 
    height: 25px;
    margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    display: flex;
    align-items: center;
    background-repeat: repeat-x;
    background-size: 100px 100%;
    background-image: linear-gradient(-45deg, transparent 50%, yellow 50%, yellow 75%, transparent 75%, transparent);
}

.ye2-rotate {
    transform: rotate(-5deg);
    border-color: yellow; 
    background-color: black; 
    color:yellow;
    width: 100%;
    overflow: hidden; 
    height: 25px;
    margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    display: flex;
    align-items: center;
    background-repeat: repeat-x;
    background-size: 100px 100%;
    background-image: linear-gradient(45deg, transparent 50%, yellow 50%, yellow 75%, transparent 75%, transparent);
}

.ye3-rotate {
    width: 200px;
    transform: rotate(5deg);
    border-color: yellow; 
    background-color: black; 
    color:yellow;
    overflow: hidden; 
    width: 100%;
    height: 25px;
    display: flex;
    align-items: center;
    background-repeat: repeat-x;
    background-size: 100px 100%;
    background-image: linear-gradient(-45deg, transparent 50%, yellow 50%, yellow 75%, transparent 75%, transparent);
}

.ye4-rotate {
    width: 200px;
    transform: rotate(-5deg);
    border-color: yellow; 
    background-color: black; 
    width: 100%;
    overflow: hidden; 
    height: 25px;
    display: flex;
    align-items: center;
    background-repeat: repeat-x;
    background-size: 100px 100%;
    background-image: linear-gradient(45deg, transparent 50%, yellow 50%, yellow 75%, transparent 75%, transparent);
}

.before {
    color: #F8F8F8; 
    width: 50%;
    overflow: hidden; 
    float: left;
    filter: grayscale(1) contrast(999) invert(1)
}
.reverse {
    transform: rotate(180deg);
    color: #FFFFFF; 
    width: 50%;
    overflow: hidden; 
    float: right;
}
.tips{
    color: #FFFFFF; 
    width: 50%;
    overflow: hidden; 
    float: right;
}

/*大河马*/
#hipo
{
	background:transparent;
	animation-name: campus;
	animation-duration:0.5s;
	animation-iteration-count: infinite;
    animation-direction: alternate;  
}
@keyframes campus
	{
	from {color:white;}
	to {color:black;}
	}


/*流水灯*/
.lamp {
  /* 自适应尺寸 */
  display: inline-flex;        /* 改为行内弹性容器 */
  width: max-content;         /* 宽度根据内容扩展 */
  height: auto;               /* 高度自动适应内容 */

  /* 内容对齐 */
  justify-content: center;
  align-items: center;
  padding: 5px;
  width: max-content;
  min-width: 1em; /* 基于字体尺寸的最小宽度 */
  height: max-content;
  white-space: nowrap;
  padding: 0.5em 1em;
  /* 视觉样式 */
  background-color: #FFF;
  border-radius: 2vmin;
  color: #66ddf7;
  position: relative;
  overflow: hidden;
  z-index: 10;
  text-shadow: 
    -1px -1px 0 #22292f,
     1px -1px 0 #22292f,
    -1px 1px 0 #22292f,
     1px 1px 0 #22292f;
}

.lamp::before {
  content: '';
  width: 200%;
  height: 200%;
  background-color: #22292f;
  position: absolute;
  left: -50%;
  top: -50%;
  background-image: linear-gradient(
    to right,
    transparent,
    #66ddf7,
    transparent
  );
  z-index: -2;
  animation: rotate 5s linear infinite;
}

.lamp::after {
  content: '';
  position: absolute;
  top: 2%;
  right: 2%;
  bottom: 2%;
  left: 2%;
  background-color: #FFF;
  border-radius: 2vmin;
  z-index: -1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}