Skip to content
Merged
Changes from all 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
113 changes: 25 additions & 88 deletions resources/assets/css/_general.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,34 @@

/* Navbar container */
.navbar-container {
@apply px-8;
}

@screen md {
.navbar-container {
@apply px-10;
}
@apply px-8 md:px-10;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced the @screen with md:px-10

}

/** Headings with H **/
h1,
h2,
h3,
h4 {
@apply font-bold text-theme-secondary-900;
}

h1 {
@apply font-bold;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4 {
@apply text-theme-secondary-200;
@apply font-bold text-theme-secondary-900 dark:text-theme-secondary-200 leading-tight;
Comment on lines -26 to +20
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional font-bold on h1 was unnecessary. also .dark h1 can be replaced with dark:text-theme...

}

/** Headings without H **/
.header-1,
.header-2,
.header-3,
.header-4 {
@apply font-bold text-theme-secondary-900;
}

.header-1 {
@apply font-bold text-theme-secondary-900;
}

.dark header-1,
.dark header-2,
.dark header-3,
.dark header-4 {
@apply text-theme-secondary-200;
@apply font-bold text-theme-secondary-900 dark:text-theme-secondary-200 leading-tight;
Comment on lines -45 to +28
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as with .dark h1...

}

/* Heading consistency */
h1,
.header-1 {
@apply text-3xl mb-1;
@apply text-3xl mb-1 md:text-4xl md:mb-2;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced @screen with this

}

h2,
.header-2 {
@apply text-2xl mb-1;
@apply text-2xl mb-1 md:text-3xl;
}

h3,
Expand All @@ -74,72 +46,37 @@ h3,

h4,
.header-4 {
@apply text-lg mb-1;
@apply text-lg mb-1 md:text-2xl;
}

/* Header Responsiveness */
@screen md {
h1,
.header-1 {
@apply text-4xl mb-2;
@layer base {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed core styles to base layer

a:focus,
button:focus,
textarea:focus,
input:focus {
@apply outline-none;
}

h2,
.header-2 {
@apply text-3xl;
button,
img {
@apply select-none;
-webkit-user-drag: none;
}

h3,
.header-3 {
@apply text-2xl;
body {
@apply font-sans text-theme-secondary-700 antialiased;
}
}

h1,
.header-1,
h2,
.header-2,
h3,
.header-3,
h4,
.header-4 {
@apply leading-tight;
}

a:focus,
button:focus,
textarea:focus,
input:focus {
@apply outline-none;
}

button,
img {
@apply select-none;
-webkit-user-drag: none;
}

body {
@apply font-sans text-theme-secondary-700 antialiased;
}

.clear-transform {
transform: none;
}

.rotate-90 {
transform: rotate(90deg);
}

.rotate-180 {
transform: rotate(180deg);
}
@layer utilities {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed clear-transform and rotate-minus-90 to utilities layer. though they may not be even used in any of the projects, i wouldn't remove them here now

.clear-transform {
transform: none;
}

.rotate-minus-90 {
transform: rotate(-90deg);
}
.rotate-minus-90 {
transform: rotate(-90deg);
}

@layer utilities {
.size-increase {
transform: scale(1.02);
}
Expand Down