前往
大廳
主題

麥卡貝直播聊天室改造 use Stylus擴充功能

Gemini_翔 | 2021-01-07 00:16:47 | 巴幣 0 | 人氣 225

使用到的擴充功能

Stylus extension

使用說明

打開要更改的網頁,點擊下圖中的網址,再把css程式碼貼上,ctrl+s儲存完成


不爽:直播畫面跟聊天室搶空間,使畫面沒有滿版
解法直播畫面滿版 + 聊天室移到上方
美感0分,我只想到把聊天室往上放
限制PC Chrome最大畫面 RWD的事有點懶的處理 效果如下




CSS如下
/* 上方bar移除 */
header {
    display: none;
    position: absolute;
}

/* 影片滿板 */
main {
    height: 100%;
    width: 100%;
    background: white;
}
.player {
    margin: 0;
    margin-top: -22px;
    height: 104%;
}



/* 聊天室 */
#online,
#view {
    background: black;
    color: #7FFFD4;
    opacity: 0.7;
    padding: 5px;
    margin: 0px;
    border: none;
}
.icon-eye, .icon-viewing {
    display: none;
}

.chatroom {
    position: fixed;
    top: 0px;
    left: 0;
    background: rgba(100, 100, 100, 0);
    min-height: 100px;
    height: 230px;
    width: 80%;
}

#chat-trigger-icon {
    height: 40px;
}
#message {
    max-height: 40px !important;
    height: 40px !important;
    font-size: 30px !important;
    color: rgba(0, 0, 0, 0.6) !important;
}

#chat-list > li {
    margin-bottom: 15px;
    background-color: rgba(0, 7, 17, 0.7);
    padding: 10px;
    border-radius: 10px;
    animation-name: GeminiXiang;
    animation-duration: 2s;
}

#chat-list > li > span {
    font-size: 20px;
    color: black;
}
@keyframes GeminiXiang {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chatNameInView {
    color: white !important;
    font-weight: 900;
}
.chat-text {
    margin: 0 20px;
    border: none;
}

.channel-live-chat {
    height: calc(100% - 115px);
    border: none;
}

#chat-list {
    display: flex;
    flex-wrap: wrap;
}
#chat-list > li {
    flex-grow: 0;
    margin: 5px;
}

/* 留言輸入位置 */
#chat-text-area {
    padding: 0px;
}
.chat-text-box {
    position: fixed;
    top: 6px;
    right: 0px;
    width: 19%;
    height: 130px;
}
#chat-text-area,
.chat-text {
    border-top: 0px;
    background-color: rgba(0, 0, 0, 0);
}
#chat-text-area {
    cursor: pointer;
    opacity: 0.2;
}
#chat-text-area:hover {
    opacity: 1;
}

/* icon及貼圖位置調整 */
#chat-text-area > i {
    margin-left: 27px;
}
.colorPanel-overflow {
    bottom: -140px;
}
.stickOverflow {
    bottom: -240px;
}
.chat-text-nickname,
.danmu-text {
    top: 100px;
}

/* 懸浮icon */
.emojis {
    right: 2%;
    bottom: 45%;
}
.emoji-block {
    bottom: 40px;
}

/* 影片控制bar */
#buttonbar {
    bottom: 50px;
}
#multiview-area div.view {
    margin-bottom: 40px;
}

/* 左下斗內 */
.donate {
    position: fixed;
    bottom: 0px;
    opacity: 0.5;
}

/* 左側清單隱藏 */
.chList-trigger {
    display: none;
}

創作回應

更多創作