Implement grid for subprojects #2
This commit is contained in:
parent
ce27eabb69
commit
6e2fc7da5c
@ -1,6 +1,9 @@
|
|||||||
#article-list {
|
#article-list {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#article-list, #subproject-list {
|
||||||
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
margin-block-start: 2rem;
|
margin-block-start: 2rem;
|
||||||
|
|
||||||
|
|||||||
11
sass/_subproject-list.scss
Normal file
11
sass/_subproject-list.scss
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#subproject-list {
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
article {
|
||||||
|
width: calc(50% - 0.5rem);
|
||||||
|
min-width: 300px;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -32,6 +32,7 @@
|
|||||||
@use "sparkline";
|
@use "sparkline";
|
||||||
@use "spoiler";
|
@use "spoiler";
|
||||||
@use "statements";
|
@use "statements";
|
||||||
|
@use "subproject-list";
|
||||||
@use "table";
|
@use "table";
|
||||||
@use "tags";
|
@use "tags";
|
||||||
@use "title";
|
@use "title";
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<div id="article-list">
|
<div id="subproject-list">
|
||||||
{%- for page in section.pages %}
|
{%- for page in section.pages %}
|
||||||
{%- if page.draft -%}
|
{%- if page.draft -%}
|
||||||
{%- set article_type = "draft" -%}
|
{%- set article_type = "draft" -%}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user