Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-03-26 18:53:10 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-03-26 18:53:10 +0300
commit206cbaf4a6cb74c9c4c788141db9e9c85cb6ffcd (patch)
treeb0c03a24228dcb3f7060dbf17cd539c7725c76c6
parent49cd07adfc6ace67614e6bd21601318429e0f96f (diff)
parent6f9bec7701acb5f527b7339487494d569abd57f4 (diff)
Merge branch 'review-headers-font-size' into 'master'
Review headers font size See merge request gitlab-com/gitlab-docs!227
-rw-r--r--content/assets/stylesheets/_variables.scss2
-rw-r--r--content/assets/stylesheets/stylesheet.scss81
2 files changed, 60 insertions, 23 deletions
diff --git a/content/assets/stylesheets/_variables.scss b/content/assets/stylesheets/_variables.scss
index c59ebb70..388b4e6c 100644
--- a/content/assets/stylesheets/_variables.scss
+++ b/content/assets/stylesheets/_variables.scss
@@ -44,7 +44,7 @@ $body-background-color: rgb(249, 249, 249);
$main-background-color: rgb(255, 255, 255);
$search-border: rgba(0, 0, 0, .25);
$h-border-bottom: rgba(125, 134, 140, .2);
-$h1-border-bottom: rgb(241, 139, 33);
+$h1-border-bottom: $code-color;
$main-box-shadow: rgba(0, 0, 0, .1);
$white: #fff;
$black: #333;
diff --git a/content/assets/stylesheets/stylesheet.scss b/content/assets/stylesheets/stylesheet.scss
index 7737c941..7d4df3ba 100644
--- a/content/assets/stylesheets/stylesheet.scss
+++ b/content/assets/stylesheets/stylesheet.scss
@@ -1,5 +1,5 @@
---
-version: 30
+version: 31
---
@import "variables";
@@ -112,8 +112,9 @@ a > code {
}
// Make code in headers match the font size of the given header.
-h1, h2, h3, h4, h5, h6 {
+h2, h3, h4, h5, h6 {
border-bottom: solid 1px $h-border-bottom;
+ line-height: 1.4;
code {
color: $code-color;
@@ -131,34 +132,74 @@ h1, h2, h3, h4, h5, h6 {
}
}
+// base fonts
+// p font size = $body-font-size: 15px;
+
h1 {
- font-size: 36px;
- line-height: 40px;
+ font-size: 30px;
+ font-weight: 500;
+ letter-spacing: -1px;
+ border-bottom: solid 2px $h1-border-bottom;
+ padding-bottom: 10px;
+
+ @media (max-width: $mobile-width) {
+ font-size: 26px;
+ }
}
h2 {
- font-size: 30px;
- line-height: 40px;
+ font-size: 28px;
+ font-weight: 400;
+
+ @media (max-width: $mobile-width) {
+ font-size: 24px;
+ }
}
h3 {
font-size: 24px;
- line-height: 40px;
+ font-weight: 400;
+
+ @media (max-width: $mobile-width) {
+ font-size: 22px;
+ }
}
h4 {
- font-size: 18px;
- line-height: 20px;
+ font-size: 22px;
+ font-weight: 400;
+
+ @media (max-width: $mobile-width) {
+ font-size: 20px;
+ }
}
h5 {
- font-size: 14px;
- line-height: 20px;
+ font-size: 20px;
+ color: $color-light-gray;
+ font-weight: 500;
+ border-bottom: 0;
+
+ @media (max-width: $mobile-width) {
+ font-size: 18px;
+ }
}
h6 {
- font-size: 12px;
- line-height: 20px;
+ font-size: 18px;
+ color: $color-light-gray;
+ font-weight: 500;
+ border-bottom: 0;
+
+ @media (max-width: $mobile-width) {
+ font-size: 16px;
+ }
+}
+
+li {
+ ul {
+ padding-left: 20px;
+ }
}
.float-left {
@@ -225,15 +266,6 @@ h6 {
}
}
- h1 {
- font-size: 40px;
- font-weight: normal;
- line-height: 40px;
- letter-spacing: -1px;
- border-bottom: solid 2px $h1-border-bottom;
- padding-bottom: 10px;
- }
-
p {
margin: 7px 0;
line-height: 22px;
@@ -298,6 +330,11 @@ h6 {
img {
position: absolute;
height: 50px;
+ margin-left: -8px;
+
+ @media all and (max-width: $mobile-width) {
+ margin-left: -2px;
+ }
}
p {