2016年7月10日 星期日

ChatBox CSS範本


TwitchAlerts

ChatBox

Theme : Custom CSS










body {
    background: $background_color;
    color: $text_color;
    font-size: $font_size;
}

.colon,.name {
    height: 24px;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#log {
    font: 0.8em 微軟正黑體,"Helvetica Neue",Helvetica,Arial,sans-serif; //字體
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 10px 10px;
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
    text-shadow:2px 2px 5px #000; //陰影
}

#log>div {
    padding-bottom: 0.4em;
    animation: fadeOut 1s ease $message_hide_delay forwards;
    -webkit-animation: fadeOut 1s ease $message_hide_delay forwards;
    word-wrap: break-word;
}

#log>div.deleted {
    visibility: hidden;
}

#log .emote {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
    padding: 4px;
}

#log .emote img {
    display: inline-block;
    height: 1em;
    opacity: 0;
}

.badge,.colon,.name {
    display: inline-block;
    vertical-align: top;
}

#log .meta {
    padding-right: 4px;
    position: relative;
    top: -1px;
}

.badge {
    margin-right: 4px;
    height: 1em;
    margin-top: 7px; //頭像高度 數值越大越低

}

.name {
    font-weight: 700;
    margin-left: 0.1em;
    text-shadow:2px 2px 1px #000;  //ID陰影
}