Problem/Motivation
Five layouts are being added with simple CSS and markup:
- layout_onecol
- layout_twocol
- layout_twocol_bricks
- layout_threecol_25_50_25
- layout_threecol_33_34_33
Currently, there are no gutters between the regions in these layouts. This causes content to bump into other region content.
Proposed resolution
Add gutters to Bartik for each of the layouts listed above.
Remaining tasks
- Add gutters for the new layouts that match Bartik's current styling.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #39 | 2871342-6.jpg | 18.24 KB | Neeraj Dhamiwal |
| #39 | 2871342-5.jpg | 85.21 KB | Neeraj Dhamiwal |
| #39 | 2871342-4.jpg | 76.26 KB | Neeraj Dhamiwal |
| #39 | 2871342-3.jpg | 65.05 KB | Neeraj Dhamiwal |
| #39 | 2871342-2.jpg | 63.43 KB | Neeraj Dhamiwal |
Issue fork drupal-2871342
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
manuel garcia commentedWaiting until #2852608: Review layout CSS and markup gets in.
Comment #3
manuel garcia commentedWe can now do this.
Comment #4
manuel garcia commentedComment #5
Pradnya Pingat commentedI am working on this.
Thanks
Comment #6
Pradnya Pingat commentedComment #7
Pradnya Pingat commentedThere is issue with my machine for composer installation . I will first resolve that issue.
Comment #8
c.nish2k3 commentedComment #9
c.nish2k3 commentedComment #10
njagojevic commentedWorking on it.
Comment #11
njagojevic commentedAdded gutter styling for new layouts in Bartik theme.
Two column:

Two column bricks:

Three column 25/50/25:

Three column 33/34/33:

Comment #12
andreadruiz commentedComment #13
andreadruiz commentedI will test the patch
Comment #14
andreadruiz commentedHi! I recently test the patch and works like a charm! Looks solid :)
Comment #15
lauriiiWhat is the reason for using a attribute selector instead of a normal class selector?
Comment #16
njagojevic commented@lauriii tnx for your question.
I used attribute selector to select classes starting with 'layout__region--first' and 'layout__region--second' because in Two columns brick layout there are elements with classes 'layout__region--first--above', 'layout__region--second-above', 'layout__region--first-below' and 'layout__region--second-below', and I wanted shorter code style that applies to all elements with this classes.
Comment #19
leoneldiaz02 commentedThis is no longer a "novice" issue.
Comment #20
borisson_The reasons in #16 make a lot of sense. Is that reasoning sufficient @lauriii?
Comment #24
jhedstromThe patch still cleanly applies, and the response to @lauriii's outstanding question looks reasonable as noted above.
Since these deal with right and left paddings, do they need a corresponding LTR entry (and/or a
[dir="rtl"])?Comment #26
bandanasharma commentedRe-roll the patch.
Comment #28
djsagar commentedHI all,
Patch #26 is applied and resolved the till three column but it's not resolved four column issue,
For issue Please check the attachment.
Thanks!
Comment #29
kapilv commentedRe-roll patch 9.2.x.
Comment #30
djsagar commentedHi @KapilV,
Same issue is replicated which i shared on comment #28 after apply Patch no #29.
Comment #31
manuel garcia commentedComment #33
djsagar commentedJust re-rolled the patch for 9.3.
Comment #34
mitthukumawat commentedPatch #33 applied cleanly on drupal 9.3.x-dev for me. Thanks for the patch.
Comment #36
abhijith s commentedApplied patch #33 on 9.3.x.
Adding screenshots below.
Before patch:
two and three col

four col

After patch;
two and three col

four col

RTBC +1
Comment #39
Neeraj Dhamiwal commentedApplied patch for 9.5.x style is working fine provided the screenshot below
Thank You
Comment #41
smustgrave commentedThank you everyone for the patches and testing. Since this appears to be a task and not causing an issue and Bartik has been removed from D10 going to move over to the contrib module where it can hopefully be merged there.
Thanks!
Comment #42
gaurav-mathur commentedComment #43
gaurav-mathur commentedComment #44
liam morlandPlease put the patch into an issue fork of Bartik and merge request.