Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
julkiset-sivut
design-system-lib
Commits
6316bace
Commit
6316bace
authored
4 years ago
by
druid
Browse files
Options
Downloads
Patches
Plain Diff
padding bottom for h2 paragraph headings
parent
453989ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/accordion-container/accordion-container.tsx
+0
-16
0 additions, 16 deletions
src/components/accordion-container/accordion-container.tsx
src/components/heading/heading.scss
+29
-1
29 additions, 1 deletion
src/components/heading/heading.scss
with
29 additions
and
17 deletions
src/components/accordion-container/accordion-container.tsx
+
0
−
16
View file @
6316bace
...
...
@@ -30,19 +30,3 @@ export class AccordionContainer {
);
}
}
/*
Paragraphs that have an option to include an H2-heading:
Harmonise the padding under the enabled H2-heading in all paragraphs.
Where exactly? Under paragraph or under the h2 title?
No sidebar navigation:
- Mobile 24 px = 1.5rem
- Tablet: 28 px = 1.75rem
- Screens 960-1200 px: 32 px = 2rem
- Screens wider than 1200 px: 40 px = 2.5rem
With sidebar navigation:
- Screens 1201-1600 px: 32 px = 2rem
- Screens wider than 1600 px: 40 px = 2.5rem
* */
This diff is collapsed.
Click to expand it.
src/components/heading/heading.scss
+
29
−
1
View file @
6316bace
...
...
@@ -48,7 +48,7 @@
padding
:
1
.5rem
0
1rem
;
@include
breakpoint
(
$narrow
)
{
padding
:
2rem
0
1
.5
rem
;
padding
:
2rem
0
1rem
;
}
}
...
...
@@ -170,6 +170,20 @@ h1.hy-heading__introduction {
padding
:
0
0
1rem
;
}
}
h2
.hy-heading__landingsection
,
h2
.hy-heading__contentsection
{
padding-bottom
:
1
.5rem
;
@include
breakpoint
(
$narrow
)
{
padding-bottom
:
1
.75rem
;
}
@include
breakpoint
(
$wide
)
{
padding-bottom
:
2rem
;
}
@include
breakpoint
(
$xlarge
)
{
padding-bottom
:
2
.5rem
;
}
}
}
// Applied when there is NO sidebar
...
...
@@ -198,6 +212,20 @@ h1.hy-heading__introduction {
}
}
h2
.hy-heading__landingsection
,
h2
.hy-heading__contentsection
{
padding-bottom
:
1
.5rem
;
@include
breakpoint
(
$narrow
)
{
padding-bottom
:
1
.75rem
;
}
@include
breakpoint
(
$wide
)
{
padding-bottom
:
2rem
;
}
@include
breakpoint
(
$extrawide
)
{
padding-bottom
:
2
.5rem
;
}
}
//Hero h1
h1
.hy-heading__introduction
{
@include
breakpoint
(
$extrawide
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment