Skip to content

Commit

Permalink
Merge pull request #2889 from online-go/stylus-supremacy
Browse files Browse the repository at this point in the history
Integrate stylus supremacy  for .styl file formatting
  • Loading branch information
anoek authored Dec 15, 2024
2 parents 03672d9 + 4399d1e commit 6e0501d
Show file tree
Hide file tree
Showing 223 changed files with 7,499 additions and 5,358 deletions.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"sysoev.language-stylus",
"streetsidesoftware.code-spell-checker"
"streetsidesoftware.code-spell-checker",
"thisismanta.stylus-supremacy"
],
}
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"stylusSupremacy.ignoreFiles": [
"[\"src/ogs.styl\"]"
]
}
"stylusSupremacy.ignoreFiles": ["src/ogs.styl"],
"stylusSupremacy.tabStopChar": " ",
"stylusSupremacy.alwaysUseExtends": true
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"lint": "eslint src/",
"lintold": "eslint src/ --ext=.ts,.tsx -c .eslintrc.js",
"lint:fix": "eslint --fix src/ --ext=.ts,.tsx -c .eslintrc.js",
"stylus-supremacy": "stylus-supremacy format --replace --options .vscode/settings.json 'src/**/*.styl'",
"test": "jest",
"fresh-test": "clear && jest",
"gulp": "gulp",
Expand Down Expand Up @@ -86,6 +87,7 @@
"pump": "^3.0.0",
"source-map-loader": "^4.0.0",
"stylus": "0.64.0",
"stylus-supremacy": "4.0.0",
"supervisor": "^0.12.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
Expand Down
4 changes: 1 addition & 3 deletions src/components/ACLModal/ACLModal.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

.ACLModal.Modal {
width: 35rem;
max-width: 100vw;
Expand All @@ -28,13 +27,11 @@
}
}


.acl-entries {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 1rem;

}

.acl-entry {
Expand All @@ -45,6 +42,7 @@
display: flex;
flex-justify: spacing-between;
margin: 1rem;

.PlayerAutocomplete, .GroupAutocomplete {
margin-right: 1rem;
}
Expand Down
2 changes: 0 additions & 2 deletions src/components/AIReviewStream/AIReviewStream.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


.AIReviewStream {
// here
}
29 changes: 8 additions & 21 deletions src/components/AccountWarning/AccountWarning.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


.AccountWarning-backdrop {
position: fixed;
top: 0;
Expand All @@ -42,15 +40,12 @@
width: 30rem;
max-width: calc(95vw - 2rem);
max-height: calc(95vh - 2rem);

box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);

z-index: z.account-warning;
themed background-color info
themed color colored-background-fg
themed: background-color info;
themed: color colored-background-fg;
border-radius: 0.5rem;
padding: 1rem;

display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -64,13 +59,12 @@
padding: 0;
margin: 0;


strong {
text-decoration: underline;
}
}

.space {
.space {
flex-grow: 1;
height: 1rem;
}
Expand All @@ -88,7 +82,7 @@
font-size: 1.1rem;
}

input[type="checkbox"] {
input[type='checkbox'] {
margin-right: 0.5rem;
width: 1.2rem;
height: 1.2rem;
Expand All @@ -98,9 +92,6 @@
cursor: pointer;
margin-right: 1rem;
}



}

.AccountWarningAck {
Expand All @@ -115,22 +106,18 @@
width: 30rem;
max-width: calc(95vw - 2rem);
max-height: calc(95vh - 2rem);

box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);

z-index: z.account-warning;
themed background-color info
themed color colored-background-fg
themed: background-color info;
themed: color colored-background-fg;
border-radius: 0.5rem;
padding: 1rem;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;


.space {
.space {
flex-grow: 1;
height: 1rem;
}
Expand All @@ -148,7 +135,7 @@
font-size: 1.1rem;
}

input[type="checkbox"] {
input[type='checkbox'] {
margin-right: 0.5rem;
width: 1.2rem;
height: 1.2rem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.dropped-games-header {
display: flex;
align-items: center;

i {
margin-left: 0.5rem;
font-size: 2em;
Expand Down
7 changes: 4 additions & 3 deletions src/components/Announcements/ActiveAnnouncements.styl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

.ActiveAnnouncements {
//text-align: left;
// text-align: left;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 60rem;
margin: auto;
margin-top: 1.0rem;
margin-top: 1rem;
text-align: center;
padding: .5rem;
padding: 0.5rem;

div {
text-align: left;
Expand All @@ -19,6 +19,7 @@

.popup-menu {
padding: 0;

.popup-menu-button {
margin-left: 5px;
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Announcements/Announcements.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

.Announcements {
position: absolute;
top: navbar-height;
Expand All @@ -29,12 +28,13 @@
width: 17rem;
display: inline-flex;
max-width: 100vw;
padding-top: .2rem;
padding-bottom: .2rem;
themed background-color bg
padding-top: 0.2rem;
padding-bottom: 0.2rem;
themed: background-color bg;
align-items: center;
box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.16);
overflow: hidden;

.fa-times-circle {
padding: 0.5rem;
cursor: pointer;
Expand Down
9 changes: 4 additions & 5 deletions src/components/Announcements/TournamentIndicator.styl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

.TournamentIndicator {
display: inline-flex;
flex-direction: column;
Expand All @@ -25,18 +24,18 @@

.fa-trophy {
font-size: 0.9rem;
//color: #E7DB00;
// color: #E7DB00;
color: gold;

//text-stroke: 1px black;
text-shadow: 0px 0px 0 #888, -1px -1px 0 #888, 1px -1px 0 #888, -1px 1px 0 #888, 1px 1px 0 #888;
// text-stroke: 1px black;
text-shadow: 0px 0px 0 #888, -1px -1px 0 #888, 1px -1px 0 #888, -1px 1px 0 #888, 1px 1px 0 #888;
}

.time {
font-size: font-size-smaller;
padding-bottom: -5px;
}
}

.TournamentIndicator:hover {
text-decoration: none;

Expand Down
43 changes: 18 additions & 25 deletions src/components/AnnulQueueModal/AnnulQueueModal.styl
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
left: 0px;
bottom: 0px;
border-right: 1px solid transparent;
themed border-color shade3;
themed: border-color shade3;
overflow-y: scroll;
overflow-x: hidden;
overscroll-behavior: contain;

-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
Expand All @@ -44,14 +43,12 @@
.game-container {
width: 85%;
height: 90%;

float: right;
position: absolute;
top: 0px;
right: 0px;
overflow-y: scroll;

-ms-overflow-style: none; /* Internet Explorer 10+ */
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}

Expand Down Expand Up @@ -101,12 +98,12 @@
}

.modal-actions, .close {
margin: 0 0px;
margin: 0 0px;
}

.strikethrough {
text-decoration: line-through;
color: #444;
color: #444;
}

ul {
Expand Down Expand Up @@ -142,7 +139,6 @@
display: flex;
align-items: center;
justify-content: center;

}

.icon-button {
Expand All @@ -160,20 +156,17 @@
box-shadow: none;
}

.nav-arrow:hover i,
.nav-arrow:focus i {
.nav-arrow:hover i, .nav-arrow:focus i {
transform: scale(1.3);
color: #2196f3;
}


.nav-arrow:hover,
.nav-arrow:focus {
.nav-arrow:hover, .nav-arrow:focus {
background: none;
border: none;
box-shadow: none;
}

.nav-arrow.left {
margin-right: 5px;
}
Expand All @@ -186,11 +179,11 @@
outline: none;
}


.nav-wrapper {
display: flex;
align-items: center;
justify-content: center;

span {
font-size: 1.1rem;
}
Expand All @@ -205,11 +198,10 @@
}

.gamelist-nav .fa:hover {
transform: scale(1.3);
transform: scale(1.3);
color: #2196f3;
}


.AnnulOverlay {
min-height: 100%;
min-width: 100%;
Expand All @@ -222,7 +214,7 @@
align-items: center;
width: 100%;
height: 100%;
themed background-color bg
themed: background-color bg;
}

.spinner-container {
Expand All @@ -238,6 +230,7 @@
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
Expand All @@ -255,11 +248,11 @@
}

.bg-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: 1;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: 1;
}
Loading

0 comments on commit 6e0501d

Please sign in to comment.