Skip to content

Commit

Permalink
Grid styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dleeftink committed Nov 26, 2024
1 parent 53fb4b1 commit fc50f8e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
6 changes: 4 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ <h1>PAGE 1</h1>
</ghp-navlink>

<aside>
<h1>ABOUT</h1>
<p>A selection of project pages hosted by QUT's Digital Media Research Centre.</p>
<div>
<h1>ABOUT</h1>
<p>A selection of project pages hosted by QUT's Digital Media Research Centre.</p>
</div>
</aside>

<ghp-navlink>
Expand Down
11 changes: 8 additions & 3 deletions core/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
grid-row: span 3;
background-color: var(--background);
color: white;
padding-block: 16px;
padding-inline: 20px;
/*padding-block: 16px;
padding-inline: 20px;*/

-webkit-column-break-inside: avoid;
column-break-inside: avoid;
Expand All @@ -110,12 +110,17 @@

.grid-container {

a>* {
a > * {
width: 100%;
height: 100%;
color: white;
}

div {
padding-block: 16px;
padding-inline: 20px;
}

> :not(aside,.active):hover {
outline: 1px solid white;
transform: translate(0.5rem, -0.5rem);
Expand Down
8 changes: 4 additions & 4 deletions core/uses/anim.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
}

::view-transition-old(page-heading) {
animation: 0.5s 0.075s ease both main-exit;
animation: 0.4s 0.075s ease both main-exit;
}

::view-transition-new(page-heading) {
animation: 0.5s 0.0s ease both main-enter;
animation: 0.4s 0.0s ease both main-enter;
}

::view-transition-old(page-section) {
animation: 0.5s ease both main-exit;
animation: 0.4s ease both main-exit;
}

::view-transition-new(page-section) {
animation: 0.5s 0.075s ease both main-enter;
animation: 0.4s 0.075s ease both main-enter;
}

@keyframes main-enter {
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ <h1>PAGE 1</h1>
</ghp-navlink>

<aside>
<h1>ABOUT</h1>
<p>A selection of project pages hosted by QUT's Digital Media Research Centre.</p>
<div>
<h1>ABOUT</h1>
<p>A selection of project pages hosted by QUT's Digital Media Research Centre.</p>
</div>
</aside>


<ghp-navlink>
<a href="./page2" aria-current="">
<div>
Expand Down

0 comments on commit fc50f8e

Please sign in to comment.