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

Split out page CSS #6145

Merged
merged 5 commits into from
Sep 17, 2023
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
262 changes: 0 additions & 262 deletions app/css/application.postcss.css

This file was deleted.

17 changes: 17 additions & 0 deletions app/css/defaults.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ body {
overscroll-behavior-y: none;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;

/*
* app/images/bg-pattern.svg
* https://pattern.monster/hexagon-1/
* https://base64.guru/converter/encode/image/svg
* */
--hex-bg-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0ncGF0dGVybklkJyB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPjxkZWZzPjxwYXR0ZXJuIGlkPSdhJyBwYXR0ZXJuVW5pdHM9J3VzZXJTcGFjZU9uVXNlJyB3aWR0aD0nMjknIGhlaWdodD0nNTAuMTE1JyBwYXR0ZXJuVHJhbnNmb3JtPSdzY2FsZSgyKSByb3RhdGUoMCknPjxyZWN0IHg9JzAnIHk9JzAnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbGw9J2hzbGEoMCwwJSwxMDAlLDEpJy8+PHBhdGggZD0nTTE0LjQ5OCAxNi44NThMMCA4LjQ4OC4wMDItOC4yNTdsMTQuNS04LjM3NEwyOS04LjI2bC0uMDAyIDE2Ljc0NXptMCA1MC4wNkwwIDU4LjU0OGwuMDAyLTE2Ljc0NSAxNC41LTguMzczTDI5IDQxLjhsLS4wMDIgMTYuNzQ0ek0yOC45OTYgNDEuOGwtMTQuNDk4LTguMzcuMDAyLTE2Ljc0NEwyOSA4LjMxMmwxNC40OTggOC4zNy0uMDAyIDE2Ljc0NXptLTI5IDBsLTE0LjQ5OC04LjM3LjAwMi0xNi43NDRMMCA4LjMxMmwxNC40OTggOC4zNy0uMDAyIDE2Ljc0NXonICBzdHJva2Utd2lkdGg9JzAuNScgc3Ryb2tlPSdoc2xhKDI1OSwgMCUsIDkwJSwgMSknIGZpbGw9J25vbmUnLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSc4MDAlJyBoZWlnaHQ9JzgwMCUnIHRyYW5zZm9ybT0ndHJhbnNsYXRlKC0zOCwtNi40NiknIGZpbGw9J3VybCgjYSknLz48L3N2Zz4K");
}
@media screen and (prefers-reduced-motion: reduce) {
body {
Expand Down Expand Up @@ -79,3 +86,13 @@ body {
height: fit-content;
}
}

.c-count-bubble {
@apply border-1 border-borderLight rounded-100 px-12;
@apply text-textColor6 text-13 leading-200 font-medium;
}

/* Override the tailwind default */
img {
max-width: none;
}
12 changes: 12 additions & 0 deletions app/css/minimal_tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@config "../../tailwind.minimal.config.js";

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind screens;

/* This line is used as a flag for post-processing */
/* Do not change it!! */
.exercism-delete-before-this {
color: red;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
@import "../styles";
@import "../minimal_tailwind.css";
@import "../ui-kit/minimal.css";

#page-tracks {
& header.tracks-header {
@apply bg-backgroundColorA;
& .container {
@apply pt-28 pb-32;
@apply flex flex-col items-center;
@apply text-center;
}

& .track-icons {
@apply relative flex mb-12;

& .c-track-icon {
height: 64px;
width: 64px;
margin-left: -18px;
}
}
& h1 {
@apply text-h1 mb-8;
}
& p {
max-width: 740px;
}
}
}

.c-tracks-list {
& .c-search-bar {
Expand Down
Loading