Skip to content

Commit

Permalink
Fixing components Tailwind For Main Lessons (Ready Class [.main_conte…
Browse files Browse the repository at this point in the history
…nt])
  • Loading branch information
amirroox committed Jul 7, 2023
1 parent 0d27f52 commit b59819d
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Lessons/GettingStart/ArchLinux/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/Debian/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/Fedora/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/Gentoo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/History/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/LinuxMint/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/OpenSUSE/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/RedHat/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
2 changes: 1 addition & 1 deletion Lessons/GettingStart/Ubuntu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- End Header -->

<!-- Start Main -->
<main class="p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4">
<main class="main_content">

<!-- Start Menu -->
<?php include_once "../menu.php" ?>
Expand Down
35 changes: 24 additions & 11 deletions dist/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,8 @@ h2 {
--tw-backdrop-sepia: ;
}

@media (min-width: 768px) {
.content_lessons {
grid-column: span 4 / span 4;
}
.content_lessons {
/* Style for Content Lessons */
}

.content_lessons > :not([hidden]) ~ :not([hidden]) {
Expand All @@ -547,30 +545,45 @@ h2 {
}

.content_lessons {
text-align: justify;
border-radius: 1rem;
border-width: 4px;
--tw-border-opacity: 1;
border-color: rgb(30 64 175 / var(--tw-border-opacity));
padding-top: 0.75rem;
padding-bottom: 0.75rem;
padding-left: 1.25rem;
padding-right: 1.25rem;
text-align: right;
text-align: justify;
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

@media (min-width: 768px) {
.content_lessons {
grid-column: span 4 / span 4;
max-height: -moz-fit-content;
max-height: fit-content;
}
}

.content_lessons {
text-align: right;
padding-top: 0.75rem;
padding-bottom: 0.75rem;
padding-left: 1.25rem;
padding-right: 1.25rem;
.main_content {
/* Style For Parent Content Lessons */
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 1rem;
padding: 1rem;
text-align: center;
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

@media (min-width: 768px) {
.main_content {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}

.col-span-2 {
grid-column: span 2 / span 2;
}
Expand Down
18 changes: 6 additions & 12 deletions src/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
}
/* Custom Project */
@layer components {
.content_lessons {
@apply md:col-span-4;
@apply space-y-3;
@apply text-justify;
@apply rounded-2xl;
@apply border-4;
@apply border-blue-800;
@apply md:max-h-fit;
@apply text-right;
@apply py-3;
@apply px-5;
@apply text-white;
.content_lessons { /* Style for Content Lessons */
@apply md:col-span-4 md:max-h-fit space-y-3 text-justify rounded-2xl border-4 border-blue-800
text-right py-3 px-5 text-white;
}
.main_content { /* Style For Parent Content Lessons */
@apply p-4 text-white text-center grid grid-cols-1 md:grid-cols-5 gap-4;
}
}

0 comments on commit b59819d

Please sign in to comment.