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陰影
}

2016年4月12日 星期二

Nightbot 天氣功能


可利用指令來設定你想查詢某地區的天氣




範例 1. $(weather 地名)

要注意的是 只能用英文名稱

$(weather Kaohsiung)



範例 2. $(weather $(query))

使用 !指令+地名 就可以查詢任意地區的天氣




使用起來很方便,

缺點是只有英文資訊,

可能不是這麼適合中文觀眾,

需不需要這個功能就自己斟酌囉