Make everything good (enough) #114 #126

This commit is contained in:
benjamin melançon 2025-07-21 01:07:55 -04:00
parent fe6b0af8e1
commit cdcaf717af
6 changed files with 66 additions and 24 deletions

View file

@ -4,18 +4,16 @@
* ../../node_modules/bulma/sass/components * ../../node_modules/bulma/sass/components
*/ */
@use "variables" as *; @use "variables" as local;
@use "../../node_modules/bulma/sass/utilities/mixins" as *; @use "../../node_modules/bulma/sass/utilities/mixins" as *;
@use "../../node_modules/bulma/sass/utilities/initial-variables" as *; @use "../../node_modules/bulma/sass/utilities/initial-variables" as *;
/** // Make menu items slightly less far apart so we never entirely lose 'Community'
* Make menu items slightly less far apart so we never entirely lose // on mid-size screens. See https://gitlab.com/drutopia/octavia/issues/52
* 'Community' on mid-size screens.
* See https://gitlab.com/drutopia/octavia/issues/52
*/
.navbar-item, .navbar-link { .navbar-item, .navbar-link {
padding-left: .75rem; padding-left: .75rem;
padding-right: .75rem; padding-right: .75rem;
padding-top: 1.5rem;
@include from($widescreen) { @include from($widescreen) {
padding-left: 1rem; padding-left: 1rem;
padding-right: 1rem; padding-right: 1rem;
@ -28,21 +26,33 @@
} }
#navbar-menu { #navbar-menu {
a:hover {
background-color: local.$yellow !important;
}
display: flex; display: flex;
// More modern Bulma has is-flex-wrap-wrap as a class for this. // More modern Bulma has is-flex-wrap-wrap as a class for this.
flex-wrap: wrap; flex-wrap: wrap;
@include until($tablet) { @include until($desktop) {
width: 100%; display: table;
justify-content: space-around; // width: 100%;
// justify-content: space-around;
// Do not show the down arrow when it is already expanded.
.navbar-link::after {
display: none !important;
}
} }
@include from($desktop) { @include from($desktop) {
flex-wrap: nowrap; flex-wrap: nowrap;
margin-right: -1rem; margin-right: -1rem;
// Stay open as long as we are hovering; Bulma should be handling this but :shrug:
.navbar-dropdown:hover {
display: block;
}
} }
} }
/* Featured images on article pages */ // Featured images on article pages.
.featured-image figure.image { .featured-image figure.image {
width: 100vw; width: 100vw;
position: relative; position: relative;
@ -131,7 +141,7 @@
*/ */
.footer .views-field { .footer .views-field {
.field-content { .field-content {
background-color: rgba($offwhite, 0.9); background-color: rgba(local.$offwhite, 0.9);
padding: 0.2em; padding: 0.2em;
border-radius: 0.3em; border-radius: 0.3em;
} }
@ -147,14 +157,14 @@
} }
.page-title .title > span { .page-title .title > span {
background-color: rgba($offwhite, 0.66); background-color: rgba(local.$offwhite, 0.66);
padding: 0.4em 0.3em 0.3em 0.3em; padding: 0.4em 0.3em 0.3em 0.3em;
border-radius: 0.4em; border-radius: 0.4em;
line-height: 1.8; line-height: 1.8;
} }
.block--footer_menus { .block--footer_menus {
background-color: rgba($offwhite, 0.9); background-color: rgba(local.$offwhite, 0.9);
padding: 0.2em; padding: 0.2em;
border-radius: 0.3em; border-radius: 0.3em;
} }

View file

@ -1,7 +1,4 @@
/** // Styles for contributor-added content on the site, such as embedded media.
* Styles related to contributor-added content on the site, such as embedded
* media.
*/
iframe { iframe {
width: 100%; width: 100%;
@ -10,3 +7,8 @@ iframe {
height: revert-layer; height: revert-layer;
} }
} }
// Header tabs section is only shown to content editors for the Edit etc tabs.
.header-tabs {
padding: 0;
}

View file

@ -26,11 +26,15 @@
.geo-logo-name { .geo-logo-name {
display: flex !important; display: flex !important;
padding-bottom: 0 !important; // Or else .column's padding takes precedence.
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
.logo, .sitename { .logo, .sitename {
display: table-cell; display: table-cell;
} }
.sitename {
padding-top: 0.125rem; // 2px, better vertically-center "Organizing" in green stripe
}
.logo a { .logo a {
display: block; display: block;
} }
@ -52,6 +56,7 @@
.slogan { .slogan {
box-shadow: 0 2px 0 0 whitesmoke; box-shadow: 0 2px 0 0 whitesmoke;
margin-top: -1rem;
margin-bottom: 2px; // Needed to see the boxshadow when we have the featured image directly below. margin-bottom: 2px; // Needed to see the boxshadow when we have the featured image directly below.
padding-bottom: 4px; // Give just a little extra space at the bottom for the *appearance* of balance. padding-bottom: 4px; // Give just a little extra space at the bottom for the *appearance* of balance.
.title { .title {

View file

@ -5,12 +5,12 @@
@use "../../node_modules/bulma/sass/utilities/mixins"; @use "../../node_modules/bulma/sass/utilities/mixins";
@use "../../node_modules/bulma/sass/utilities/initial-variables" as *; @use "../../node_modules/bulma/sass/utilities/initial-variables" as *;
// Center logo & sitename when they stack on tiny screens. // Allow sitename to slide over the logo on tiny screens.
@include mixins.until(local.$mini) { @include mixins.until(local.$mini) {
.geo-logo-name .sitename { .geo-logo-name .sitename {
position: absolute; position: absolute;
left: calc(100vw - 14rem); left: calc(100vw - 14rem);
top: 0.5rem; top: 0;
} }
// .logo.column { // .logo.column {
// width: 100%; // width: 100%;
@ -18,10 +18,14 @@
.navigation.column .hamburger { .navigation.column .hamburger {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0.5rem; top: 0;
} }
} }
.search-bar {
padding-top: 1.75rem;
}
.search-bar > .block, .search-bar > .block,
.logo > .image { .logo > .image {
display: inline-block; display: inline-block;

View file

@ -63,3 +63,14 @@
.page--content-item--gleaning .page-title { .page--content-item--gleaning .page-title {
background-color: $gleaning; background-color: $gleaning;
} }
:root {
--bulma-body-color: $geo-green;
--bulma-navbar-dropdown-background-color: white;
--bulma-navbar-dropdown-z: 999;
}
// Not figuring out the damn -l -h -s to make our primary color.
.button.is-primary {
background-color: $geo-green;
color: white;
}

View file

@ -6,6 +6,8 @@
@forward "../../node_modules/bulma/sass/utilities" with ( @forward "../../node_modules/bulma/sass/utilities" with (
$background: white, $background: white,
$green: $geo-green,
$blue: $blue,
); );
@forward "fonts"; @forward "fonts";
@forward "../../node_modules/bulma/sass/base/_index"; @forward "../../node_modules/bulma/sass/base/_index";
@ -15,18 +17,26 @@
@forward "../../node_modules/bulma/sass/form/_index"; @forward "../../node_modules/bulma/sass/form/_index";
@forward "form"; @forward "form";
// $navbar-breakpoint: calc($mini/2); // $navbar-breakpoint: calc($mini/2);
@forward "../../node_modules/bulma/sass/components/_index"; @forward "../../node_modules/bulma/sass/components/_index" with (
$navbar-dropdown-background-color: white,
);
@forward "components"; @forward "components";
@forward "../../node_modules/bulma/sass/grid/_index"; @forward "../../node_modules/bulma/sass/grid/_index";
@forward "grid"; @forward "grid";
@forward "../../node_modules/bulma/sass/layout/_index"; @forward "../../node_modules/bulma/sass/layout/_index";
@forward "layout"; @forward "layout";
// Import the themes so that all CSS variables have a value
@forward "../../node_modules/bulma/sass/themes";
// Stylesheets below will have access to all Bulma variables and mixins. // Stylesheets below will have access to all Bulma variables and mixins.
@forward "content"; @forward "content";
@forward "paint"; @forward "paint";
// Import the themes so that all CSS variables have a value (not) but avoid dark mode.
@use "../../node_modules/bulma/sass/themes/light";
@use "../../node_modules/bulma/sass/themes/setup";
:root {
@include light.light-theme;
@include setup.setup-theme;
}
// @forward '../../node_modules/bulma-extensions/bulma-timeline/dist/bulma-timeline'; // @forward '../../node_modules/bulma-extensions/bulma-timeline/dist/bulma-timeline';