cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="bg">
    <a href="#" class="btn yellow">商品をみる</a>
</div>

<div class="bg bg-gray">
    <a href="#" class="btn brown">一覧をみる</a>
</div>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">
            
          
!
            
              .btn {
    font-size: 13px;
    font-weight: bold;
    line-height: 56px;
    position: relative;
    display: block;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    width: 200px;
    height: 56px;
    cursor: pointer;
    -webkit-transition: .3s;
            transition: .3s;
    text-align: center;
    text-decoration: none;
    text-indent: .1em;
    letter-spacing: .1em;
    color: #fff;
    &:before {
        font-family: 'Material Icons';
        position: absolute;
        right: 20px;
        bottom: 0;
        content: '\E317';
        -webkit-transition: .3s;
                transition: .3s;
        -webkit-transform: rotate(180deg);
                transform: rotate(180deg);
    }
    &:hover:before {
        right: 0;
        opacity: 0;
    }
    &:after {
        font-family: 'Material Icons';
        position: absolute;
        right: 40px;
        bottom: 0;
        content: '\E317';
        -webkit-transition: .5s;
                transition: .5s;
        -webkit-transform: rotate(180deg);
                transform: rotate(180deg);
        opacity: 0;
    }
    &:hover:after {
        right: 20px;
        opacity: 1;
    }
}

.yellow {
    background: #fcb314;
    -webkit-box-shadow: 0 0 0 1px #cc8c00 inset;
            box-shadow: 0 0 0 1px #cc8c00 inset;
    &:hover {
        background: #ffc444;
    }
}

.brown {
    background: #543729;
    -webkit-box-shadow: 0 0 0 1px #452617 inset;
            box-shadow: 0 0 0 1px #452617 inset;
    &:hover {
        background: #705549;
    }
    &:after {
        left: 0;
        text-align: right;
    }
    &:hover:after {
        left: 20px;
    }
}

@import url(//fonts.googleapis.com/earlyaccess/notosansjapanese.css);
html,
body {
    font-family: 'Noto Sans Japanese';
    height: 100%;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    .bg {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
            flex-direction: column;
        width: 100%;
        height: 50%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .bg-gray {
        background: #fafafa;
    }
}
            
          
!
999px
Loading ..................

Console