bradtreloar / alkaline-base Goto Github PK
View Code? Open in Web Editor NEWBase theme for Drupal
Base theme for Drupal
Styles for enlarged buttons should be handled by button
library, not banner
.
(Will also need to add option for "large" class in bradtreloar/button_link
)
field_emphasis
was going to be a means to make a paragraph bigger, brighter etc but instead I decided not to give this functionality to content editors.
Rather than relying on JS to calculate the height of the off-canvas element, just use calc(100vh - #{$top-bar-height})
field_background_image
should have a max size of 1920px and 1MB, and larger images should be automatically scaled down if they are too wide.
The following image styles need to be removed:
alkaline_hero_small
alkaline_hero_medium
alkaline_hero_large
The Foundation responsive-menu
widget takes a moment to load.
Need to look into Foundation's strategy for preventing FOUC
Allow grids to be "wide", as in not constrained to content width.
Change the _alkaline_icon
function to use '#type' => 'html_tag'
.
function _alkaline_icon($name) {
return [
'#type' => 'html_tag',
'#tag' => 'svg',
'symbol' => [
'#type' => 'html_tag',
'#tag' => 'use',
'#attributes' => [
'xlink:href' => "#$name",
],
],
'#attributes' => [
'class' => 'icon',
],
];
}
Without a figure
wrapper, the img
element is the direct descendant of the li
element, which uses display: flex
, stretching the image.
Headings should remain consistent across the theme, and responsibility for altering h1 styles should lie with the page_title
library.
Read theme/page.scss
file to get $top-bar-background
value.
Read _global.scss
to get theme colors.
The layout of the media_object
paragraph type can only be changed by overriding the Twig template or by overriding the CSS. This means that a site can only have one media object style.
Fix this by adding view modes to media_object
pciture fields that can be set on a per paragraph basis, rather than on a per content type basis.
For media_object
, the picture
field could have choices for large
, small
and banner
.
The theme needs to work with or without these modes, for the sake of backwards compatibility.
The template doesn't put the page content inside a content-width element
I don't use the BEM class system employed by classy
, so I should stop using it as a base theme.
super-region
was a bad idea--they make the header layout needlessly complex.
Use Foundation's orbit
component.
the media-object
paragraph only has a 1rem
space between the figure and the text, which always looks too close.
should not be visible on node
pages
I experimented with using a "row" wrapper to provide padding and alignment for content but the block wrapper already does this job well enough.
Add grid
paragraph type to serve as a container for other paragraphs.
The grid size should be configured in a preprocess function so that the grid size can adapt to the number of children. This also allows a subtheme to override the breakpoints.
This should also make the cards
and pictures
fields redundant, since they are just specific use-cases of a grid container.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.