Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back 3 Stylelint configs #4350

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": ["stylelint-use-logical-spec"],
"plugins": ["stylelint-use-logical-spec", "@double-great/stylelint-a11y"],
"extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"],
"overrides": [
{
"files": ["**/*.scss"],
Expand All @@ -16,6 +17,19 @@
}
],
"rules": {
"selector-no-qualifying-type": [
true, {
"ignore": ["attribute"]
}],
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["deep"]
}
],
"a11y/no-outline-none": true,
"liberty/use-logical-spec": ["always", { "except": ["float"] }]
}
}
17 changes: 8 additions & 9 deletions src/renderer/App.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@font-face {
font-family: Roboto;
src: url(assets/font/Roboto-Regular.ttf);
src: url("assets/font/Roboto-Regular.ttf");
}

#app {
.app {
display: flex;
flex-wrap: wrap;
font-family: 'Roboto', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
font-family: Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
block-size: 100%;
}

Expand All @@ -30,23 +30,23 @@
.flexBox {
display: block;
user-select: unset;
-webkit-user-select: unset;
}

#changeLogText {
.changeLogText {
overflow-y: scroll;
block-size: 40vh;
display: block
display: block;
}

.fade-enter-active, .fade-leave-active {
transition: opacity .15s;
}

.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}

@media only screen and (max-width: 680px) {
@media only screen and (width <= 680px) {
.routerView {
margin-block: 68px;
margin-inline: 8px;
Expand All @@ -58,7 +58,6 @@
}

.flexBox {
margin-block-start: 60px;
margin-block-end: -75px;
margin-block: 60px -75px;
}
}
3 changes: 2 additions & 1 deletion src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div
v-if="dataReady"
id="app"
class="app"
:class="{
hideOutlines: outlinesHidden,
isLocaleRightToLeft: isLocaleRightToLeft
Expand Down Expand Up @@ -52,7 +53,7 @@
@click="showReleaseNotes = !showReleaseNotes"
>
<span
id="changeLogText"
class="changeLogText"
v-html="updateChangelog"
/>
<ft-flex-box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
text-align: center;
}

@media only screen and (max-width: 800px) {
br.hide-on-mobile {
@media only screen and (width <= 800px) {
.hide-on-mobile {
display: none;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.experimental-warning {
text-align: center;
font-weight: bold;
padding-inline-start: 4%;
padding-inline-end: 4%
padding-inline: 4% 4%
}
8 changes: 4 additions & 4 deletions src/renderer/components/ft-button/ft-button.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.btn {
font-family: 'Roboto', sans-serif;
font-family: Roboto, sans-serif;
min-inline-size: 100px;
font-size: 0.9rem;
padding-block: 10px;
Expand All @@ -18,7 +18,7 @@
font-weight: 500;
vertical-align: middle;
margin: 5px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 2px rgb(0 0 0 / 50%);
}

.btn:disabled {
Expand All @@ -32,7 +32,7 @@
transform: translate3d(0, 0, 0);
}

.ripple:after {
.ripple::after {
content: "";
display: block;
position: absolute;
Expand All @@ -49,7 +49,7 @@
transition: transform .5s, opacity 1s;
}

.ripple:active:after {
.ripple:active::after {
transform: scale(0, 0);
opacity: .3;
transition: 0s;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ft-card/ft-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
margin: 8px;
padding-block: 3px 16px;
padding-inline: 16px;
box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}
10 changes: 2 additions & 8 deletions src/renderer/components/ft-channel-bubble/ft-channel-bubble.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,29 @@
overflow: hidden;
color: inherit;
text-decoration: none;
-webkit-transition: background 0.2s ease-out;
-moz-transition: background 0.2s ease-out;
-o-transition: background 0.2s ease-out;
transition: background 0.2s ease-out;
}

.bubblePadding:hover {
background-color: var(--side-nav-hover-color);
color: var(--side-nav-hover-text-color);
-moz-transition: background 0.2s ease-in;
-o-transition: background 0.2s ease-in;
transition: background 0.2s ease-in;
}

.bubble {
inline-size: 50px;
block-size: 50px;
border-radius: 100%;
-webkit-border-radius: 100%;
}

.selected {
position: absolute;
inset-block-start: 10px;
background-color: rgba(0, 0, 0, 0.5);
background-color: rgb(0 0 0 / 50%);
}

.icon {
color: #EEEEEE;
color: #EEE;
font-size: 25px;
position: absolute;
inset-block-start: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

.filled-circle {
border-radius: 50%;
background-color: black;
background-color: #000;
float: var(--float-left-ltr-rtl-value);
block-size: 6px;
inset-inline-start: 2px;
Expand All @@ -33,11 +33,10 @@
.option {
display: flex;
align-items: center;
padding-block-end: 10px;
padding-block: 5px;
border-radius: 5px;
border-style: solid;
border-width: 1px;
padding-block: 5px;
padding-inline-start: 10px;
margin-block-end: 10px;
}
Expand Down
13 changes: 6 additions & 7 deletions src/renderer/components/ft-community-post/ft-community-post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
.outside {
margin: auto;
inline-size: 40%;
@media screen and (max-width: 768px) {

@media screen and (width <= 768px) {
inline-size: 100%;
}
}
Expand All @@ -19,7 +20,6 @@
}

.communityThumbnail {
-webkit-border-radius: 50%;
border-radius: 50%;
block-size: 55px;
margin-inline-end: 5px;
Expand All @@ -34,6 +34,7 @@
font-weight: bold;
margin-block: 5px 0;
margin-inline: 5px 6px;

.authorNameLink {
color: inherit;
text-decoration: none;
Expand Down Expand Up @@ -61,7 +62,7 @@
max-inline-size: 210px;
text-align: start;

@media screen and (max-width: 680px) {
@media screen and (width <= 680px) {
margin-inline-start: 0;
text-align: start;
}
Expand All @@ -73,8 +74,7 @@
}

.likeCount {
margin-inline-start: 5px;
margin-inline-end: 6px;
margin-inline: 5px 6px;
}
}

Expand All @@ -83,8 +83,7 @@

.videoThumbnail {
display: flex;
margin-block-end: auto;
margin-block-start: auto;
margin-block: auto;
position: relative;
inline-size: fit-content;

Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/ft-flex-box/ft-flex-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
flex-flow: row wrap;
justify-content: space-evenly;
user-select: none;
-webkit-user-select: none;
}
3 changes: 0 additions & 3 deletions src/renderer/components/ft-icon-button/ft-icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
flex-flow: row wrap;
justify-content: space-evenly;
position: relative;

-webkit-user-select: none;
user-select: none;
}

Expand Down Expand Up @@ -90,7 +88,6 @@
list-style-type: none;
position: absolute;
text-align: center;
-webkit-user-select: none;
user-select: none;
z-index: 3;

Expand Down
6 changes: 3 additions & 3 deletions src/renderer/components/ft-input-tags/ft-input-tags.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.disabledMsg {
color: rgb(233, 255, 108);
color: rgb(233 255 108);
padding-block-end: 10px;
}

Expand Down Expand Up @@ -53,7 +53,7 @@
color: var(--primary-text-color);
opacity: 0.5;
padding: 10px;
padding-inline-start: 0px;
padding-inline-start: 0;
}

.removeTagButton:hover {
Expand All @@ -64,7 +64,7 @@
margin-block-start: 10px;
}

@media only screen and (max-width: 576px) {
@media only screen and (width <= 576px) {
.ft-input-tags-component {
inline-size: 100%;
}
Expand Down
Loading