<a class="boxy" href="#">
Çok Renkliyim
</a>
<a class="boxy red" href="#">
Çok Neşeliyim
</a>
<a class="boxy green" href="#">
Bunu zaten biliyorsun
</a>
<a class="boxy la" href="#">
Istanbul ✈ Tokyo
</a>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);
@mixin bggrad( $c1, $c2, $angle: 155 ) {
background: linear-gradient( #{$angle}deg, $c1 0%, $c2 100%);
}
@mixin borgrad( $c1, $c2, $angle: 155 ) {
border-image: linear-gradient( #{$angle}deg, $c1 0%, $c2 100%) 1 round;
}
@mixin someColor( $c1, $c2 ) {
@include borgrad( $c1, $c2, 155 );
@include bggrad( $c1, $c2, 155 );
&:hover {
box-shadow:
0 0 0px 1px rgba(255,255,255,0.5),
2px 2px 6px rgba(red($c2), green($c2), blue($c2),0.4),
-2px -2px 6px rgba(red($c1), green($c1), blue($c1),0.4);
}
background-clip: text;
background-clip: text;
}
$purple: #fb83fa;
$aqua: #31bcb8;
$red: #fc5c3c;
$orange: #ffb638;
$green: #AAFFA9;
$cyan: #06e5de;
$istanbul: #F0C27B;
$tokyo: #ad1ba3;
.boxy {
font-family: "Open Sans";
font-weight: 400;
font-size: 1.5em;
color: rgba(255,255,255,0);
display: inline-block;
cursor: pointer;
text-decoration: none;
padding: 0.6em 1.6em;
margin: 0.6em;
border-style: solid;
border-width: 1px;
transition: all 0.2s ease;
@include someColor( $purple, $aqua );
&:hover {
color: rgba(255, 255, 255,0.1);
text-shadow: 0 0 1px rgba(255, 255, 255,0.4);
}
&.red {
@include someColor( $red, $orange );
}
&.green {
@include someColor( $cyan, $green );
}
&.istanbul {
text-transform: uppercase;
font-weight: 300;
letter-spacing: 0.05em;
font-size: 3em;
padding: 0.3em;
border-width: 2px;
display: block;
width: 70%;
margin: 0.6em auto;
@include someColor( $istanbul, $tokyo );
}
}
body {
padding: 50px;
background: linear-gradient(135deg, #313b53 0%,#213037 100%);
text-align: center;
}
body, html {
min-height: 100%;
}
p{ color: rgba(255,255,255,0.7); margin: 30px; }
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.