started desktop grid area
This commit is contained in:
parent
d50a7cae3e
commit
4504f9852a
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<main class="st-main st-main-grid">
|
<main class="st-main st-main-grid">
|
||||||
<!-- LATEST SECTION -->
|
<!-- LATEST SECTION -->
|
||||||
<section class="st-article-section st-article-section__top">
|
<section class="st-article-section-grid">
|
||||||
|
<section class="st-article-section st-article-section-highlight">
|
||||||
<h2 class="st-article-section-title">Latest <a href="<?php echo home_url() . '/articles'; ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title">Latest <a href="<?php echo home_url() . '/articles'; ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
query_posts('showposts=1');
|
query_posts('showposts=1');
|
||||||
@ -68,7 +69,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
<!-- TECH SECTION -->
|
<!-- TECH SECTION -->
|
||||||
<section class="st-article-section">
|
<section class="st-article-section st-article-section-bottom">
|
||||||
<h2 class="st-article-section-title">Tech <a href="<?php echo home_url() . '/tech'; ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title">Tech <a href="<?php echo home_url() . '/tech'; ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
$post_section_three_featured_args = array(
|
$post_section_three_featured_args = array(
|
||||||
@ -134,6 +135,7 @@
|
|||||||
<section class="st-newsletter-signup">
|
<section class="st-newsletter-signup">
|
||||||
<!-- TODO: Insert flat section for newsletter signup -->
|
<!-- TODO: Insert flat section for newsletter signup -->
|
||||||
</section>
|
</section>
|
||||||
|
</section>
|
||||||
<section class="st-article-section">
|
<section class="st-article-section">
|
||||||
<h2 class="st-article-section-title">Products <a href="<?php echo home_url() . '/products'; ?>" class="st-article-section-category-link">></a></h2>
|
<h2 class="st-article-section-title">Products <a href="<?php echo home_url() . '/products'; ?>" class="st-article-section-category-link">></a></h2>
|
||||||
<?php
|
<?php
|
||||||
|
17
style.css
17
style.css
@ -66,6 +66,23 @@ LAYOUT
|
|||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.st-main-grid {
|
||||||
|
grid-template-columns: minmax(1em, 1fr) minmax(500px, 1280px) minmax(1em, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-article-section-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.st-article-section-highlight,
|
||||||
|
.st-article-section-bottom {
|
||||||
|
grid-column: 1 / span 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
============================
|
============================
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user