Simple Backround Logo

Simple Backround Logo

by Adi Jaya

HTML

<div class="square">
  <div></div>
</div>

<h2>JS <span>Fiddle</span></h2>
<p>
Test your JavaScript, CSS, HTML or CoffeeScript online <br>with JSFiddle code editor.
</p>

SCSS

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow: hidden;
    margin: 10px;
    width: 100%;
    background: #27a1b5;
    text-align: center;
}
body {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.square {
    height: 78px;
    width: 78px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    -webkit-transform: rotate(45deg) translate(-50%, -50%);
    transform: rotate(45deg) translate(-50%, -50%);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
.square:before, .square:after, .square div:before, .square div:after {
    background-color: #ffffff;
    position: absolute;
    content: "";
    display: block;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    -moz-box-shadow: 0px 0px 20px 15px #ffffff;
    -webkit-box-shadow: 0px 0px 20px 15px #ffffff;
    box-shadow: 0 0 20px 2px #ffffff;
}
.square:before,.square:after {
    width: 65%;
    height: 2px;
}
.square:before, .square div:before {
    left: 0;
    top: 0;
}

.square:after,.square div:after {
    bottom: 0;
    right: 0;
}

.square div:before,.square div:after {
    width: 2px;
    height: 65%;
}

h2 {
    font-weight: 400;
    left: 0;
    right: 0;
    letter-spacing: -1px;
    margin: 0 auto;
    position: absolute;
    bottom: 50%;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
    text-shadow: 3px 0px #8a8a89;
    font-size: 2.5em;
}


h2:hover + p {
    display: block;
}

h2 span {
    font-weight: 700;
}
p {
    display: none;
    font-weight: normal;
    left: 0;
    right: 0;
    letter-spacing: -1px;
    margin: 0 auto;
    position: absolute;
    bottom: 25%;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
    text-transform: uppercase;
    font-size: 12px;
    color: #d8d5d5;
}