The following will record changes that we have made in the playbase that have then been added to the main code base on this repo and or to the main D9 styles. These changes should be recorded in descending order by date.
- Drupal System Templates and fixes (2022-11-18)
- Grid-12 Composition (2022-11-17)
- Various Utility Classes and Fixes (2022-11-15)
- Color-based Utility Classes (2022-11-14)
- Font-based Utilities / Settings Changes (2022-11-04)
- Spacing (padding, margin, gap) / shadow-xl (2022-11-04)
- Flow classes / Shadows / Borders (2022-10-18)
- Fluid Spacing Scale (2022-10-11)
- Fluid Type Scale (2022-10-07)
# November 18, 2022 / Drupal System Templates and fixes
Drupal System Templates
Added new twig templates for the system tabs and status messages. These effect the tabs for edit, delete, revisions etc. and the messages that the system pops out after actions like editing a page. The basic work has been done here — more may be required.
New template locations:
…/web/themes/custom/tyndale/templates/system/menu-local-tasks.html.twig
…/web/themes/custom/tyndale/templates/system/status-messages.html.twig
Copied from: …/web/core/modules/system/templates/…
Drupal Page Title
The page title has had some basic styles added to make sure it has some margin above it. This was really needed on mobile, but looks better on desktop as well.
General Fixes
Reordered the wrapper and spacing utility classes to deal with cascading issues. Spacing is going to have to be listed as the last utility so it can override margins and padding of items such as wrappers.
- Fixed site footer and added gradient background.
# November 17, 2022 / Grid-12 Composition
This is a flexible 12-column grid designed to create overall composition elements for the CUBE CSS stystem. Grid can change on 4 breakpoint: small (-s / 550px), medium (-m / 768px), large (-l / 900px) and extra-large (-xl / 1280px). Grid items are stacked on mobile. The examples below are working through some layout possibilities — there are many layouts possible!
View Grid 12 Composition Reference
The grid-12 style have been deployed everywhere. File location: …/scss/composition/_grid-12.scss
# November 15, 2022 / Various Utility Classes and Fixes
Full Width Classes
Utility classes have been added to allow a section to go full width. Historically this class has been called full-bleed
— I have added this class but have also added full-width
. These classes are exactly the same, just not sure what language I want to use moving forward.
Wrapper Classes
Wrapper classes can be used to wrap (duh!) content into a confined width. By default, the site will have styles associated with the main
section of the site which provides a wrapper (padding-inline: var(--space-s-3xl)
) to make appropraite space between the content and the edge of the browser/screen. If you are using a full-width
section, this breaks the default spacing. This will needed to be added back in as a child div
using the main wrapper
class.
View Wrapper Utility Class Reference
Text, list + float classes
Deployed utility classes for text, list and float elements and documented their use.
Visited link color
The visited link color was not working. This was changed in …/scss/global/_links.scss
# November 14, 2022 / Color-based Utility Classes
Text and Background Colors
These color-based utility classes include all text color and background color combinations. Accessibile color contrast was ensured for these combinations especially for link colors on each background. All code was pushed to the Drupal 9 master branch and tested.
Notes:
- The new colors (
…grey-350, …green-400, …gold-300
) were added to the sass color map at...sass/settings/_color.scss
. _colors.scss
was added under...scss/utilities
and added to the list onmain.scss
.- Additional code was added to
_colors.scss
to make sure text would be accessible by default and to ensure links had the proper color contrast. Examples of this can be viewed on the Color documentation page. - Headings do not current have any color specified for them. They are currently working with the current text color —
--color-grey-600
— which means they inherit the text color for the dark backgrounds (generally white). This works great now but we will have to keep an eye on that to make sure it continues to work that way. .grid
and.box
hasve been renamed to.playbase-grid
and.playbase-box
and moved to…scss/playbase.playbase.scss
so they can be extracted from the deployable code.
# November 4, 2022 / Font-based Utilities / Settings Changes
Font-based Utility Classes
These utility classes include font-size
, font-weight
, letter-spacing
and font-family
.
Notes:
- I removed .../scss/settings/_fonts.scss and hardcoded the font-families inthe custom properties — no need for the extra layer of complexity here.
- I removed ../scss/settings/_letter-spacing.scss and hardcoded the values in the custom properties — no need for the extra layer of complexity here.
- The two files above have been removed from ../scss/settings/_index.scss
- I changed
font-size
utility classes to use basic code and removed the sass loop — no need for the extra layer of complexity here. - I added an additional
font-size
on the large side of the scale.--fs-6
and.fs-6
are available and range from 57px → 76px. I am not sure if we will need it, but it is easier to do now than later. - I used basic values (ex: 700) for the
font-weight
utility classes and removed the associated custom properties — they are not needed.
# November 4, 2022 / Spacing (padding, margin, gap) / shadow-xl
Spacing Utility Classes
Moved the spacing-based utility classes from /scss/addcss/utilities-testing.scss
to their final location. These changes were done both on this site and on the Drupal 9 site and deployed to the master branches. A new utilities style sheet has been created and can be found at .../scss/utilities/_spacing.scss
shadow-xl
We added an new box-shadow utility class shdow-xl
. This has been deployed by adding the code into ../scss/global/_custom-properties.scss
and ../scss/utilities/_shadows.scss
These files already existed.
# October 18, 2022 / Flow classes / Shadows / Borders
Changes made to the following areas moving them to their deployment locations. Elements were moved from /scss/addcss/utilities-testing.scss
to their final locations. These changes were done both on this site and on the Drupal 9 site and deployed to the master branches. Examples of these elemnets can be found at /utils/.
Flow Classes
Added alternative flow sizes based on spaces custom properties. These utility classes have been moved to /scss/utilities/_flow.scss
Shadows
- Moved shadow custom properties to
/scss/global/_custom-properties.scss
- Created new utilities scss file —
/scss/utilities/_shadows.scss
- Added
@use ‘utilities/shadows’
to/scss/style.scss
under utilities
Border width, radius, color, position
- Moved border custom properties to
/scss/global/_custom-properties.scss
- Created new utilities scss file —
/scss/utilities/_borders.scss
- Added
@use ‘utilities/borders’
to/scss/style.scss
under utilities
- Deployed to
MASTER
branch on playbase - Deployed to
DEV
branch on Pantheon
# October 11, 2022 / Fluid Spacing Scale
A new fluid spacing scale was created and based on the fluid type scale. The code was added into scss/settings/_spacing.scss
file. The seetings file is then used by scss/global/_custom-properties.scss
to create custom properties matching each aspect of the fluid scale.
Next Steps: we will be creating a number of utility classes that will use these custom property values for spacing options including padding, margin and gap.
- Deployed to
MASTER
branch on playbase - Deployed to
DEV
branch on Pantheon
# October 7, 2022 / Fluid Type Scale
The type scale is based on the Utopia Fluid Type Scale Calculator. The current scale is set to:
- MIN[@320px | Size: 18px | Type Scale: 1.2 (Minor Third)] → →
+ MAX[@1140px | Size: 20px | Type Scale: 1.25 (Major Third)]
The code was added into scss/settings/_font-size.scss
file. The seetings file is then used by scss/global/_custom-properties.scss
to create custom properties matching each of the fluid scale. (Ex.--fs--2 — --fs-5
)
Next Steps: we will be creating a number of utility classes that will use these custom property values for font size overrides.
- Deployed to
MASTER
branch on playbase - Deployed to
DEV
branch on Pantheon