Stylelint: Update ruleset (#4769)
This commit is contained in:
parent
dd3c6bc70f
commit
aa2cda81c2
@ -4,7 +4,8 @@
|
|||||||
"@stylistic/stylelint-config"
|
"@stylistic/stylelint-config"
|
||||||
],
|
],
|
||||||
"ignoreFiles": [
|
"ignoreFiles": [
|
||||||
"dist/*.css"
|
"dist/*.css",
|
||||||
|
"src/styles/icons.scss"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@stylistic/stylelint-plugin",
|
"@stylistic/stylelint-plugin",
|
||||||
@ -47,6 +48,12 @@
|
|||||||
"@stylistic/string-quotes": null,
|
"@stylistic/string-quotes": null,
|
||||||
"@stylistic/color-hex-case": null,
|
"@stylistic/color-hex-case": null,
|
||||||
"@stylistic/selector-list-comma-newline-after": null,
|
"@stylistic/selector-list-comma-newline-after": null,
|
||||||
"@stylistic/block-closing-brace-newline-after": null
|
"@stylistic/block-closing-brace-newline-after": null,
|
||||||
|
"@stylistic/indentation": [2, { "ignore": ["value"] }],
|
||||||
|
"at-rule-empty-line-before": ["always", { "ignore": ["first-nested", "after-comment", "blockless-after-blockless"] }],
|
||||||
|
"rule-empty-line-before": ["always", {
|
||||||
|
"except": ["after-single-line-comment", "first-nested"],
|
||||||
|
"ignore": ["after-comment", "inside-block"]
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,6 +74,7 @@
|
|||||||
border-bottom: 0.0625rem solid transparent;
|
border-bottom: 0.0625rem solid transparent;
|
||||||
|
|
||||||
padding: 0.375rem 0.875rem;
|
padding: 0.375rem 0.875rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.875rem);
|
@include mixins.adapt-padding-to-scrollbar(0.875rem);
|
||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@ -139,6 +140,7 @@
|
|||||||
.participants {
|
.participants {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0.125rem 0.5rem 0;
|
margin: 0.125rem 0.5rem 0;
|
||||||
|
|
||||||
@include mixins.adapt-margin-to-scrollbar(0.5rem);
|
@include mixins.adapt-margin-to-scrollbar(0.5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -71,6 +71,7 @@
|
|||||||
|
|
||||||
&.icon-play {
|
&.icon-play {
|
||||||
margin-left: 0.1875rem;
|
margin-left: 0.1875rem;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
margin-left: 0.125rem;
|
margin-left: 0.125rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -477,6 +477,7 @@
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--color-green-darker);
|
background: var(--color-green-darker);
|
||||||
box-shadow: -0.375rem -0.25rem 0 -0.1875rem var(--color-background);
|
box-shadow: -0.375rem -0.25rem 0 -0.1875rem var(--color-background);
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
top: 0.5rem;
|
top: 0.5rem;
|
||||||
right: 0.5rem;
|
right: 0.5rem;
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
.content-inner & {
|
.content-inner & {
|
||||||
min-width: 14rem;
|
min-width: 14rem;
|
||||||
|
|
||||||
@media (max-width: 340px) {
|
@media (max-width: 340px) {
|
||||||
min-width: 11rem;
|
min-width: 11rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -106,6 +106,7 @@
|
|||||||
.hljs-name {
|
.hljs-name {
|
||||||
color: var(--color-keyword);
|
color: var(--color-keyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-link {
|
.hljs-link {
|
||||||
color: var(--color-link);
|
color: var(--color-link);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|||||||
@ -109,11 +109,13 @@
|
|||||||
|
|
||||||
.settings-main-menu {
|
.settings-main-menu {
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
|
|
||||||
> .ChatExtra {
|
> .ChatExtra {
|
||||||
padding: 0 0.5rem 0.3125rem;
|
padding: 0 0.5rem 0.3125rem;
|
||||||
margin: 0 -0.5rem 0.625rem;
|
margin: 0 -0.5rem 0.625rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
|
|
||||||
.ListItem.narrow {
|
.ListItem.narrow {
|
||||||
@ -125,6 +127,7 @@
|
|||||||
.settings-item-simple,
|
.settings-item-simple,
|
||||||
.settings-item {
|
.settings-item {
|
||||||
padding: 1.5rem 1.5rem 1rem;
|
padding: 1.5rem 1.5rem 1rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
grid-auto-rows: 1fr;
|
grid-auto-rows: 1fr;
|
||||||
grid-gap: 0.0625rem;
|
grid-gap: 0.0625rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -71,6 +71,7 @@
|
|||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
grid-auto-rows: 1fr;
|
grid-auto-rows: 1fr;
|
||||||
grid-gap: 0.0625rem;
|
grid-gap: 0.0625rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
&-fieldset {
|
&-fieldset {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-inline-start: 1rem;
|
margin-inline-start: 1rem;
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
margin-inline-start: 0;
|
margin-inline-start: 0;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
@media (max-height: 640px) {
|
@media (max-height: 640px) {
|
||||||
margin-bottom: 1.75rem;
|
margin-bottom: 1.75rem;
|
||||||
|
|
||||||
@at-root .has-footer #{&} {
|
@at-root .has-footer #{&} {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,6 +46,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0.25rem;
|
margin: 0.25rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
|
|
||||||
@media (max-width: 320px) {
|
@media (max-width: 320px) {
|
||||||
margin: 0.125rem;
|
margin: 0.125rem;
|
||||||
}
|
}
|
||||||
@ -97,6 +98,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
|
|
||||||
@media (max-width: 320px) {
|
@media (max-width: 320px) {
|
||||||
margin: 0.25rem;
|
margin: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
.no-composer & {
|
.no-composer & {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
width: calc(100% - 1rem);
|
width: calc(100% - 1rem);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,9 +61,11 @@
|
|||||||
@media screen and (min-width: 1276px) {
|
@media screen and (min-width: 1276px) {
|
||||||
transform: scaleX(0.73) !important;
|
transform: scaleX(0.73) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1921px) {
|
@media screen and (min-width: 1921px) {
|
||||||
transform: scaleX(0.8) !important;
|
transform: scaleX(0.8) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 2600px) {
|
@media screen and (min-width: 2600px) {
|
||||||
transform: scaleX(0.95) !important;
|
transform: scaleX(0.95) !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
padding: 0.1875rem 0.625rem;
|
padding: 0.1875rem 0.625rem;
|
||||||
max-height: 75vh;
|
max-height: 75vh;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.625rem);
|
@include mixins.adapt-padding-to-scrollbar(0.625rem);
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
|
|||||||
@ -10,10 +10,12 @@
|
|||||||
height: calc(100% - 3rem);
|
height: calc(100% - 3rem);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.5rem 0.75rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.75rem);
|
@include mixins.adapt-padding-to-scrollbar(0.75rem);
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
padding: 0.5rem 0.25rem;
|
padding: 0.5rem 0.25rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.25rem);
|
@include mixins.adapt-padding-to-scrollbar(0.25rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,10 +21,12 @@
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
||||||
padding: 0.5rem 0.25rem;
|
padding: 0.5rem 0.25rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.25rem);
|
@include mixins.adapt-padding-to-scrollbar(0.25rem);
|
||||||
|
|
||||||
&_customEmoji {
|
&_customEmoji {
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.5rem 0.75rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.75rem);
|
@include mixins.adapt-padding-to-scrollbar(0.75rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,7 @@
|
|||||||
@media (min-width: 1921px) {
|
@media (min-width: 1921px) {
|
||||||
--max-width: calc(30vw - 1rem);
|
--max-width: calc(30vw - 1rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
@ -110,6 +111,7 @@
|
|||||||
|
|
||||||
&.last-in-group {
|
&.last-in-group {
|
||||||
margin-bottom: 0.625rem;
|
margin-bottom: 0.625rem;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
margin-bottom: 0.4375rem;
|
margin-bottom: 0.4375rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -825,9 +825,12 @@
|
|||||||
@for $i from 1 through 7 {
|
@for $i from 1 through 7 {
|
||||||
&.emoji-only-#{$i} {
|
&.emoji-only-#{$i} {
|
||||||
$size: null;
|
$size: null;
|
||||||
|
|
||||||
@if $i == 1 {
|
@if $i == 1 {
|
||||||
$size: 7rem;
|
$size: 7rem;
|
||||||
} @else {
|
}
|
||||||
|
|
||||||
|
@else {
|
||||||
$size: min(7.5 - ($i * 0.75), 5.625) + rem;
|
$size: min(7.5 - ($i * 0.75), 5.625) + rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin: 0 1rem;
|
margin: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkout-picture {
|
.checkout-picture {
|
||||||
height: 6rem;
|
height: 6rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
> .profile-info > .ChatExtra {
|
> .profile-info > .ChatExtra {
|
||||||
padding: 0.875rem 0.5rem 0.5rem;
|
padding: 0.875rem 0.5rem 0.5rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
|
|
||||||
.narrow {
|
.narrow {
|
||||||
|
|||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
.section {
|
.section {
|
||||||
padding: 1rem 1.5rem;
|
padding: 1rem 1.5rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
|
|
||||||
&.wide {
|
&.wide {
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
.section {
|
.section {
|
||||||
padding: 0.625rem;
|
padding: 0.625rem;
|
||||||
|
|
||||||
@include mixins.side-panel-section;
|
@include mixins.side-panel-section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -67,6 +67,7 @@
|
|||||||
right: 1rem;
|
right: 1rem;
|
||||||
top: 1rem;
|
top: 1rem;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -161,6 +162,7 @@
|
|||||||
@for $i from -4 through 4 {
|
@for $i from -4 through 4 {
|
||||||
$slideWidth: 10.875rem;
|
$slideWidth: 10.875rem;
|
||||||
$basis: 4.25rem;
|
$basis: 4.25rem;
|
||||||
|
|
||||||
@if $i < 0 {
|
@if $i < 0 {
|
||||||
$basis: -12.625rem;
|
$basis: -12.625rem;
|
||||||
}
|
}
|
||||||
@ -325,6 +327,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Shared styles for the header that are also used in ghost animation
|
// Shared styles for the header that are also used in ghost animation
|
||||||
|
|
||||||
@mixin story-header {
|
@mixin story-header {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -436,6 +439,7 @@
|
|||||||
|
|
||||||
.closeButton {
|
.closeButton {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -448,6 +452,7 @@
|
|||||||
|
|
||||||
:global(.Button) {
|
:global(.Button) {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
display: flex;
|
display: flex;
|
||||||
&:active,
|
&:active,
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
&:focus {
|
&:focus {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
&:hover {
|
&:hover {
|
||||||
@content;
|
@content;
|
||||||
|
|||||||
@ -102,6 +102,7 @@
|
|||||||
background: var(--color-background);
|
background: var(--color-background);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0.5rem 0.4375rem 0.5rem 0.4375rem;
|
padding: 0.5rem 0.4375rem 0.5rem 0.4375rem;
|
||||||
|
|
||||||
@include mixins.adapt-padding-to-scrollbar(0.4375rem);
|
@include mixins.adapt-padding-to-scrollbar(0.4375rem);
|
||||||
|
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|||||||
@ -49,7 +49,9 @@
|
|||||||
rgb(var(--_accent-color-rgb), 35%) 5px,
|
rgb(var(--_accent-color-rgb), 35%) 5px,
|
||||||
rgb(var(--_accent-color-rgb), 35%) 10px
|
rgb(var(--_accent-color-rgb), 35%) 10px
|
||||||
);
|
);
|
||||||
} @else {
|
}
|
||||||
|
|
||||||
|
@else {
|
||||||
#{$property}:
|
#{$property}:
|
||||||
repeating-linear-gradient(
|
repeating-linear-gradient(
|
||||||
-45deg,
|
-45deg,
|
||||||
@ -89,7 +91,7 @@
|
|||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-moz-slider-thumb {
|
&::-moz-range-thumb {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
$bm-red: color.red($foreground) * $opacity + color.red($background) * $background-opacity * (1 - $opacity);
|
$bm-red: color.red($foreground) * $opacity + color.red($background) * $background-opacity * (1 - $opacity);
|
||||||
$bm-green: color.green($foreground) * $opacity + color.green($background) * $background-opacity * (1 - $opacity);
|
$bm-green: color.green($foreground) * $opacity + color.green($background) * $background-opacity * (1 - $opacity);
|
||||||
$bm-blue: color.blue($foreground) * $opacity + color.blue($background) * $background-opacity * (1 - $opacity);
|
$bm-blue: color.blue($foreground) * $opacity + color.blue($background) * $background-opacity * (1 - $opacity);
|
||||||
|
|
||||||
@return rgb($bm-red, $bm-green, $bm-blue);
|
@return rgb($bm-red, $bm-green, $bm-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ html {
|
|||||||
@-ms-viewport {
|
@-ms-viewport {
|
||||||
width: device-width;
|
width: device-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
article,
|
article,
|
||||||
aside,
|
aside,
|
||||||
dialog,
|
dialog,
|
||||||
@ -130,6 +131,7 @@ a {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
-webkit-text-decoration-skip: objects;
|
-webkit-text-decoration-skip: objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #0056b3;
|
color: #0056b3;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
@ -141,6 +143,7 @@ a:not([href]):not([tabindex]):focus {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:not([href]):not([tabindex]):focus {
|
a:not([href]):not([tabindex]):focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user