Difference between revisions of "User:Loch210/Rufus style.css"

From City of Hope MUSH
Jump to navigation Jump to search
Line 1: Line 1:
* {
+
*{
   border: none;
+
   margin:0;
   margin: 0;
+
   padding:0;
 
}
 
}
html,
+
 
body {
+
.container{  padding-top: 20px;
   width: 100%;
+
  padding-bottom: 20px;}
   height: 100%;
+
body{
 +
  background-color: #111845;
 +
}
 +
 
 +
.background-img{
 +
  background-image: url("https://3.bp.blogspot.com/-piZWCW2uUbg/W2fPXxkWZgI/AAAAAAAAOu0/eydmMjTIqcwLMHEEr2H7imqoRTxMw4o9QCLcBGAs/s1600/among_trees_night_dribbble.png");
 +
height: 400px;
 +
   width: 800px;
 +
  background-repeat: no-repeat;
 +
  background-size: cover;
 +
  margin: 5% auto;
 +
  padding:20px;
 +
  border: 1px solid #2a3cad;
 +
  border-radius: 4px;
 +
  box-shadow: 0px 0px 5px #2a3cad;
 +
  position: relative;
 +
}
 +
 
 +
.content h2{ font-size:19px;}
 +
 
 +
.box{
 +
  position: absolute;
 +
  top: 50%;
 +
  left: 50%;
 +
  transform: translate(-50%, -50%);
 +
  width: 300px;
 +
   height: 300px;
 +
  background: #111845a6;
 +
  box-sizing: border-box;
 
   overflow: hidden;
 
   overflow: hidden;
 +
  box-shadow: 0 20px 50px rgb(23, 32, 90);
 +
  border: 2px solid #2a3cad;
 +
  color: white;
 +
  padding: 20px;
 +
}
 +
 +
.box:before{
 +
  content: '';
 +
  position:absolute;
 +
  top:0;
 +
  left:-100%;
 +
  width:100%;
 +
  height:100%;
 +
  background: rgba(255,255,255,0.1);
 +
  transition:0.5s;
 +
  pointer-events: none;
 +
}
 +
 +
.box:hover:before{
 +
  left:-50%;
 +
  transform: skewX(-5deg);
 
}
 
}
canvas {
+
 
   background: white;
+
 
   background: radial-gradient(#FFF, #DDD);
+
.box .content{
   transform-origin: 0 0;
+
   position:absolute;
 +
  top:15px;
 +
  left:15px;
 +
  right:15px;
 +
  bottom:15px;
 +
  border:1px solid #f0a591;
 +
   padding:20px;
 +
  text-align:center;
 +
  box-shadow: 0 5px 10px rgba(9,0,0,0.5);
 +
    
 +
}
 +
 
 +
.box span{
 +
  position: absolute;
 +
  top: 0;
 +
  left: 0;
 
   width: 100%;
 
   width: 100%;
 
   height: 100%;
 
   height: 100%;
 +
  display: block;
 +
  box-sizing: border-box;
 +
 
 
}
 
}
.ui {
+
 
  display: none;
+
.box span:nth-child(1)
  position: fixed;
+
{
  z-index: 5;
+
   transform:rotate(0deg);
  bottom: 0;
 
  left: 0;
 
  width: 120px;
 
  padding: 10px;
 
  background: rgba(255, 255, 255, 0.7);
 
}
 
.ui p {
 
   font-size: 11px;
 
  font-weight: 700;
 
 
}
 
}
.ui p.zoom {
+
 
   margin-bottom: 5px;
+
.box span:nth-child(2)
 +
{
 +
   transform:rotate(90deg);
 
}
 
}
.ui p.zoom span {
+
 
  margin-right: 5px;
+
.box span:nth-child(3)
  border: solid 1px #777;
+
{
   cursor: pointer;
+
   transform:rotate(180deg);
  border-radius: 2px;
 
 
}
 
}
.ui p.zoom span.zoomin {
+
 
   padding: 2px 5px;
+
.box span:nth-child(4)
 +
{
 +
   transform:rotate(270deg);
 
}
 
}
.ui p.zoom span.zoomout {
+
 
   padding: 2px 8px;
+
.box span:before
 +
{
 +
   content: '';
 +
  position: absolute;
 +
  width:100%;
 +
  height: 2px;
 +
  background: #50dfdb;
 +
  animation: animate 4s linear infinite;
 
}
 
}
.ui p.zoom span:hover {
+
 
  background: black;
+
@keyframes animate {
   color: white;
+
  0% {
 +
  transform:scaleX(0);
 +
  transform-origin: left;
 +
  }
 +
  50%
 +
  {
 +
    transform:scaleX(1);
 +
  transform-origin: left;
 +
  }
 +
  50.1%
 +
  {
 +
    transform:scaleX(1);
 +
  transform-origin: right;
 +
   
 +
  }
 +
 
 +
  100%
 +
  {
 +
    transform:scaleX(0);
 +
   transform-origin: right;
 +
   
 +
  }
 +
 
 +
 
 
}
 
}

Revision as of 13:51, 4 August 2020

*{
  margin:0;
  padding:0;
}

.container{  padding-top: 20px;
  padding-bottom: 20px;}
body{
  background-color: #111845;
}

.background-img{
  background-image: url("https://3.bp.blogspot.com/-piZWCW2uUbg/W2fPXxkWZgI/AAAAAAAAOu0/eydmMjTIqcwLMHEEr2H7imqoRTxMw4o9QCLcBGAs/s1600/among_trees_night_dribbble.png");
height: 400px;
  width: 800px;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 5% auto;
  padding:20px;
  border: 1px solid #2a3cad;
  border-radius: 4px;
  box-shadow: 0px 0px 5px #2a3cad;
  position: relative;
}

.content h2{ font-size:19px;}

.box{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: #111845a6;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(23, 32, 90);
  border: 2px solid #2a3cad;
  color: white;
  padding: 20px;
}

.box:before{
  content: '';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: rgba(255,255,255,0.1);
  transition:0.5s;
  pointer-events: none;
}

.box:hover:before{
  left:-50%;
  transform: skewX(-5deg);
}


.box .content{
  position:absolute;
  top:15px;
  left:15px;
  right:15px;
  bottom:15px;
  border:1px solid #f0a591;
  padding:20px;
  text-align:center;
  box-shadow: 0 5px 10px rgba(9,0,0,0.5);
  
}

.box span{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  
}

.box span:nth-child(1)
{
  transform:rotate(0deg);
}

.box span:nth-child(2)
{
  transform:rotate(90deg);
}

.box span:nth-child(3)
{
  transform:rotate(180deg);
}

.box span:nth-child(4)
{
  transform:rotate(270deg);
}

.box span:before
{
  content: '';
  position: absolute;
  width:100%;
  height: 2px;
  background: #50dfdb;
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
  transform:scaleX(0);
  transform-origin: left;
  }
  50%
  {
    transform:scaleX(1);
  transform-origin: left;
  }
  50.1%
  {
    transform:scaleX(1);
  transform-origin: right;
    
  }
  
  100%
  {
    transform:scaleX(0);
  transform-origin: right;
    
  }
  
  
}