Skip to content

Commit

Permalink
Refs #141204 changed the following:
Browse files Browse the repository at this point in the history
- site.overrides:
  - em and font size is now 16px which should be the default size for text up from 14px
  - use a static 1.25 value for headerLineHeight as recommended by the quanta typography
  - default line-height is now 1.5 which is the value of 24 / 16
  - textWidth is now 800px, used by the Text container, which is the width we desire
  - Added Pastanaga options to site.variables of the eea theme in order to have the theme
    compile in case we use eea theme for the site section of theme.config
  • Loading branch information
ichim-david committed Nov 2, 2021
1 parent 769f4f9 commit 2e7f423
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions theme/themes/eea/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
--------------------*/

/* This is the single variable that controls them all */
@emSize : 14px;
@emSize : 16px;

/* The size of page text */
@fontSize : 14px;
@fontSize : 16px;


/*-------------------
Expand Down Expand Up @@ -62,7 +62,7 @@
---------------*/

@headerFontWeight : @bold;
@headerLineHeight : unit((18 / 14), em);
@headerLineHeight : 1.25;

@h1 : unit((28 / 14), rem);
@h2 : unit((24 / 14), rem);
Expand Down Expand Up @@ -124,7 +124,7 @@
@pageBackground : #FFFFFF;
@pageOverflowX : hidden;

@lineHeight : 1.4285em;
@lineHeight : 1.5;
@textColor : rgba(0, 0, 0, 0.87);

/*-------------------
Expand Down Expand Up @@ -198,13 +198,34 @@

@columnCount: 16;

/*-------------------
Container
--------------------*/
@textWidth: 800px;


/*-------------------
Pastanaga Toolbar
--------------------*/
@toolbalWidth: 80px;
@toolbalWidthMin: 20px;
@fullSizeIcon: 36px;

/*-------------------
Transitions
--------------------*/

@defaultDuration : 0.1s;
@defaultEasing : ease;


/*------------------
Pastanaga Animations
--------------------*/

@sidebarToggleButtonAnimationsDuration: 0.5s;
@sidebarToggleButtonIterations: 4;

/*-------------------
Breakpoints
--------------------*/
Expand Down Expand Up @@ -308,6 +329,12 @@
@pinkBorderColor : @pinkTextColor;
@brownBorderColor : @brownTextColor;

// Pastanaga custom borders colors
@greyBorderColor : #C7D5D8; // breadcrumbs border
@lightGreyBorderColor : #EDF1F2; // breadcrumbs background

@sidebarToggleButtonHighlightColor: @grey;

/*-------------------
Alpha Colors
--------------------*/
Expand Down Expand Up @@ -337,6 +364,12 @@
0px 2px 10px 0px rgba(34, 36, 38, 0.15)
;

/*-------------------
Pastanaga Opacities
--------------------*/

@sidebarToggleButtonNormalOpacity: 0.05;

/*******************************
Power-User
*******************************/
Expand Down

0 comments on commit 2e7f423

Please sign in to comment.