首页 > 解决方案 > 我在 css 中不断收到预期的 RBRACE 错误

问题描述

我试图将此代码用作 Discord 中的主题,但我在所有行上都出现错误。它说Expected RBRACE at line x col x。它也这么说Rule is empty

:root {
    --white: white;
    --black: black;
    --sidebarServers: #353945;
    --sidebarChannels: #383C4a;
    --text: #7a8b94;
    --textLowContrast: #bbbcbd;
    --textDark: #d3dae3;
    --textDarkLowContrast: #767e83;
    --textAccent: white;
    --bgContent: #f5f6f7;
    --bgContentDark: #404552;
    --bgAccent: #5294e2;
    --bgInput: #fff;
    --bgInputDark: #1c212b;
    --bgChatInput: #e6e7e8;
    --bgChatInputDark: #383C4a;
    --bgToolbar: #353945;
    --bgMenu: #fff;
    --bgMenuDark: #383c4a;
    --bgDarker: #2d323d;
    --bgDarkest: #262a33;
    --buttonContent: #e6e7e8;
    --buttonContentDark: #4c5262;
    --buttonDarker: #4b5164;
    --buttonToolbar: #474d5d;
    --buttonAccent: #88b9f2;
    --mentionedDark: rgba(136,185,242,0.15);
    --online: #5294e2;
    --away: #e6b807;
    --busy: #ea0d0b;
    --dividerContent: #383C4a;
    --dividerChannel: rgba(0,0,0,0.2);
    --time: 0.1s;
}

标签: css

解决方案


推荐阅读