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
453989ca
Commit
453989ca
authored
4 years ago
by
druid
Browse files
Options
Downloads
Patches
Plain Diff
styles for components with heading type field
parent
4f631132
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
+16
-0
16 additions, 0 deletions
src/components/accordion-container/accordion-container.tsx
src/components/heading/heading.scss
+8
-22
8 additions, 22 deletions
src/components/heading/heading.scss
with
24 additions
and
22 deletions
src/components/accordion-container/accordion-container.tsx
+
16
−
0
View file @
453989ca
...
...
@@ -30,3 +30,19 @@ 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
+
8
−
22
View file @
453989ca
...
...
@@ -96,21 +96,17 @@
}
// H2 used in landing pages and in Introduction paragraph: caps, bigger font.
// These styles are applied if there is a Sidebar on the page in Desktop sizes
h2
.hy-heading__introduction
,
h2
.hy-heading__landingsection
{
@include
font-size
(
28px
,
32px
);
letter-spacing
:
-0
.88px
;
@include
font-size
(
28px
,
28px
);
@include
font-weight
(
$bold
);
letter-spacing
:
-1px
;
text-transform
:
uppercase
;
@include
breakpoint
(
$narrow
)
{
// > 480px
@include
font-size
(
40px
,
40px
);
letter-spacing
:
-1
.25px
;
}
@include
breakpoint
(
$wide
)
{
// H2 for front page and landing page, Medium size
@include
font-size
(
40px
,
40px
);
letter-spacing
:
-1
.
25
px
;
letter-spacing
:
-1
.
3
px
;
}
}
...
...
@@ -156,15 +152,10 @@ h1.hy-heading__introduction {
h2
.hy-heading__introduction
,
h2
.hy-heading__landingsection
{
@include
breakpoint
(
$extrawide
)
{
// > 1200px
// ex. Side menu layout on Mid-sized desktop; Medium font
@include
font-size
(
40px
,
40px
);
letter-spacing
:
-1
.
25
px
;
letter-spacing
:
-1
.
3
px
;
}
@include
breakpoint
(
$xlarge
)
{
// > 1441px
// ex. Side menu layout on Large desktop; Large font
@include
font-size
(
48px
,
48px
);
letter-spacing
:
-1
.6px
;
}
...
...
@@ -186,17 +177,12 @@ h1.hy-heading__introduction {
h2
.hy-heading__introduction
,
h2
.hy-heading__landingsection
{
@include
breakpoint
(
$extrawide
)
{
// > 1200px
// ex. Full width layout on Mid-sized desktop; Large font
@include
font-size
(
48px
,
48px
);
letter-spacing
:
-1
.6px
;
}
@include
breakpoint
(
$xlarge
)
{
// > 1400px
// ex. Full width layout on Large desktop; X-large font
@include
font-size
(
54px
,
54px
);
letter-spacing
:
-1
.8px
;
@include
font-size
(
48px
,
48px
);
letter-spacing
:
-1
.6px
;
}
}
...
...
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