1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Switch from SASS to CSS variables

This commit is contained in:
Maximilian Mader 2023-11-04 18:07:34 +01:00 committed by Tim Düsterhus
parent 075ce3fa15
commit 837874d925
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF

View File

@ -172,7 +172,7 @@ #tpl_chat_log {
}
.chatRoomTopic {
border-left: 5px solid $wcfContentBorderInner;
border-left: 5px solid var(--wcfContentBorderInner);
padding: 5px 0px 5px 10px;
margin-bottom: 10px;
@ -352,7 +352,7 @@ #tpl_chat_log {
}
&.first {
border-top: 1px solid $wcfContentBorderInner;
border-top: 1px solid var(--wcfContentBorderInner);
.chatMessageContainer {
.chatMessageSide {
@ -406,14 +406,14 @@ #tpl_chat_log {
#chatInputContainer {
margin-top: 10px;
margin-bottom: 1.48 * $wcfFontSizeDefault; // 1.48 is the default line height
margin-bottom: calc(1.48 * var(--wcfFontSizeDefault)); // 1.48 is the default line height
clear: both;
.charCounter {
float: right;
color: $wcfContentDimmedText;
margin-bottom: -(1.48 * $wcfFontSizeDefault);
color: var(--wcfContentDimmedText);
margin-bottom: calc(-1.48 * var(--wcfFontSizeDefault));
}
textarea {
@ -511,12 +511,12 @@ #tpl_chat_log {
&.active,
&.active:hover {
color: $wcfButtonTextActive !important;
color: var(--wcfButtonTextActive) !important;
}
&:not(.active) {
background-color: transparent;
color: $wcfDropdownLink;
color: var(--wcfDropdownLink);
}
border-radius: 0;
@ -560,12 +560,12 @@ #tpl_chat_log {
flex-direction: column;
pointer-events: all;
background-color: $wcfContentBackground;
background-color: var(--wcfContentBackground);
.modalCloseButton {
border-top: 1px solid $wcfContentBorderInner;
background-color: $wcfSidebarBackground;
color: $wcfSidebarLink;
border-top: 1px solid var(--wcfContentBorderInner);
background-color: var(--wcfSidebarBackground);
color: var(--wcfSidebarLink);
display: block;
padding: 10px 20px;
text-align: center;
@ -588,7 +588,7 @@ #tpl_chat_log {
> li {
margin-right: 10px;
margin-bottom: 5px;
border-right: 1px solid $wcfContentBorderInner;
border-right: 1px solid var(--wcfContentBorderInner);
padding-right: 9px;
> a {
@ -608,8 +608,8 @@ #tpl_chat_log {
#smileyPickerContainer {
> .messageTabMenuContent {
background-color: $wcfContentContainerBackground;
border: 1px solid $wcfContentBorderInner;
background-color: var(--wcfContentContainerBackground);
border: 1px solid var(--wcfContentBorderInner);
padding: 20px;
margin-top: 20px;
margin-bottom: 20px;