Problem/Motivation
Requested and part provided by Razem
Convert to use REM and EM instead of PX
- Install FULL MODULES EVER
- Fix PX to REM for font-sizes and line-height
- Fix EM for padding and margins
- Test
Proposed resolution
- #3170682: Convert to use REM and EM instead of PX
- Add the below new CSS to make the header appear over the Media Hero Slider in the homepage
#navbar-main {
z-index: 1;
}
- Change the following values for Media Hero Slider CSS:
#3171094: Change the view empty style values for Media Hero Slider
.varbase-heroslider-media > .view-empty {
padding: 25rem 0 3rem;
background-position: 50% 5rem;
background-size: 15rem;
font-size: 1.75rem;
}
- Change the following values for the Footer:
.footer-wrapper .footer section.region-footer div[id$="-copyright"] {
font-size: .75rem;
}
.footer-wrapper .footer section.region-footer .menu--footer {
font-size: .75rem;
}
- Change the following for better login:
#auth-box .block-title {
height: 1px;
margin: 2rem 0;
}
#auth-box .block-title span {
font-size: 1rem;
padding: 0 .75rem;
top: -1.5rem;
}
#auth-box #bottom-part {
font-size: .75rem;
}
few are for Vartheme. some are for other modules
Remaining tasks
- Install and scan all used or custom Varbase components
- Fix PX to REM for font-sizes and line-height ( We may switch any to RFS )
- Vartheme BS4 and VARTHEME_BS4_SUBTHEME
- Fix EM for padding and margins
- Test install and Test updates
User interface changes
Follow the default REM and EM for the root element of the HTML page.
API changes
N/A
Data model changes
N/A
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahChanging
for example to
Comment #6
rajab natshahComment #7
rajab natshahComment #9
rajab natshahAbout padding and margin
The Default Bootstrap 4.5.2 font size base
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`https://github.com/twbs/bootstrap/blob/v4.5.2/scss/_variables.scss#L282
Any padding or margin can change the value to rem by (Value/16px)
For example
padding: 8px;Could be changed to
padding: 0.5rem;But with font change with RFS padding and margin needs RFS too
If we want to make this RFS, we are in need to upgrade RFS from ~8.0 to ~9.0
https://github.com/twbs/rfs#input
to be able
Comment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshahIn Bootstrap 4.5.2
https://github.com/twbs/bootstrap/blob/v4.5.2/scss/_variables.scss#L282
and in RFS ~8 or ~9
https://github.com/twbs/rfs/blob/v9.0.3/scss.scss#L12
Comment #14
rajab natshahComment #15
rajab natshahComment #16
rajab natshahComment #17
rajab natshah#3171962: Update RFS from ~8.0 to ~9.0 for Vartheme BS4 and VARTHEME_BS4_SUBTHEME
#3171963: Update RFS from ~8.0 to ~9.0 for Varbase Media Hero Slider
Comment #18
rajab natshahAfter
#3171962: Update RFS from ~8.0 to ~9.0 for Vartheme BS4 and VARTHEME_BS4_SUBTHEME
line-height can follow the RFS on the font-size with the following for example
As in
Comment #22
rajab natshahTouched all SCSS files
When we compile all SCSS files to CSS
and
and then check the Drupal Standard we will have no issues
I did not need to do a
yarn phpcbfComment #23
rajab natshahComment #24
rajab natshahComment #25
rajab natshah#3172876: Update RFS from ~8.0 to ~9.0 for Varbase Bootstrap Paragraphs