Skip to content

Commit

Permalink
Add Godot priorities page
Browse files Browse the repository at this point in the history
  • Loading branch information
adamscott committed Nov 21, 2024
1 parent 08db7ef commit 1be0e56
Show file tree
Hide file tree
Showing 79 changed files with 2,856 additions and 52 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ indent_size = 2
[*.rb]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ collections:
download_3:
output: true
permalink: /download/3.x/:name/
priorities:
output: true

# Build collection items with a future date.
future: true
Expand Down
18 changes: 18 additions & 0 deletions _sass/common/_release.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//
// Functions
//
@function offset-hue($color, $offset, $i: 1) {
@return adjust-hue($color, $offset * $i);
}
Expand Down Expand Up @@ -51,3 +54,18 @@
@function r-get-mobile($value) {
@return map-get($value, "mobile");
}

//
// Mixins
//
@mixin is-dark() {
@media screen and (prefers-color-scheme: dark) {
@content;
}
}

@mixin is-light() {
@media screen and (prefers-color-scheme: light) {
@content;
}
}
82 changes: 42 additions & 40 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ h1,
h2,
h3,
h4,
nav a,
#nav a,
.btn,
a.btn,
.title-font {
Expand Down Expand Up @@ -437,31 +437,33 @@ header {
.container {
overflow: initial;
}

.fund {
margin-right: 0px;
&.desktop {
@media (max-width: 1200px) {
display: none;
}
}
&.mobile {
top: -2px;
position: relative;
@media (min-width: 1200px) {
display: none;
}
}
a {
text-decoration: none;
color: var(--fund-color);
color: white;
background-color: var(--fund-color) !important; // avoid hover overwrite
border-radius: var(--button-border-radius);
box-shadow: inset 0 0 0 2px var(--fund-color);
padding: 13px;
}
}

#nav, #nav_head {
.fund {
margin-right: 0px;
&.desktop {
@media (max-width: 1200px) {
display: none;
}
}
&.mobile {
top: -2px;
position: relative;
@media (min-width: 1200px) {
display: none;
}
}
a {
text-decoration: none;
color: var(--fund-color);
color: white;
background-color: var(--fund-color) !important; // avoid hover overwrite
border-radius: var(--button-border-radius);
box-shadow: inset 0 0 0 2px var(--fund-color);
padding: 13px;
}
}
}
#logo-link {
/* Make the logo's clickable area as tall as for other navigation links. */
padding: 0.2rem 0.5rem;
Expand Down Expand Up @@ -496,15 +498,15 @@ header > div.container {
align-items: center;
}

nav {
#nav {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding-right: 1rem;
}

nav a {
#nav a {
text-decoration: none;
font-size: 16px;
font-weight: 400;
Expand All @@ -513,44 +515,44 @@ nav a {
padding: 1.3175rem 1rem;
}

nav a:hover,
#nav a:hover,
#logo-link:hover {
background-color: hsla(0, 0%, 50%, 0.1);
}

nav ul {
#nav ul {
list-style: none;
margin: 0;
padding-left: 0;
}

nav > ul {
#nav > ul {
display: flex;
align-items: center;
height: 100%;
}

nav > ul > :first-child {
#nav > ul > :first-child {
padding-left: 0;
}

nav > ul > :last-child {
#nav > ul > :last-child {
padding-right: 0;
}

nav > ul li {
#nav > ul li {
padding-left: 1rem;
padding-right: 1rem;
margin-bottom: 0;
margin-left: -1rem;
margin-right: -1rem;
}

nav li.active > a {
#nav li.active > a {
color: var(--navbar-link-current-color);
}

nav > ul ul {
#nav > ul ul {
display: none;
}

Expand Down Expand Up @@ -1026,20 +1028,20 @@ pre > code {
#nav {
display: none;
}
nav ul {
#nav ul {
align-items: flex-start;
flex-direction: column;
height: auto;
}
nav > ul {
#nav > ul {
margin-bottom: 16px;
}
nav ul li {
#nav ul li {
padding: 0;
padding-top: 16px;
width: 100%;
}
nav ul a {
#nav ul a {
width: 100%;
display: block;
/* Make links easier to click but still close to each other. */
Expand Down
Loading

0 comments on commit 1be0e56

Please sign in to comment.