Skip to content

Commit

Permalink
Update the line heights for different font sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Nov 6, 2019
1 parent aee0ba5 commit cda8233
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 50 deletions.
52 changes: 26 additions & 26 deletions baseframe/static/css/mui.css
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 14px;
font-weight: 400;
line-height: 1.429;
line-height: 1.5;
color: #1F2D3D;
background-color: #F9FAFC;
}
Expand All @@ -1715,18 +1715,18 @@ a:focus {
}

p {
margin: 0 0 10px;
margin: 0 0 10.5px;
}

ul,
ol {
margin-top: 0;
margin-bottom: 10px;
margin-bottom: 10.5px;
}

hr {
margin-top: 20px;
margin-bottom: 20px;
margin-top: 21px;
margin-bottom: 21px;
border: 0;
height: 1px;
background-color: rgba(132, 146, 166, 0.2);
Expand All @@ -1742,13 +1742,13 @@ abbr[title] {
}

h1, h2, h3 {
margin-top: 20px;
margin-bottom: 10px;
margin-top: 21px;
margin-bottom: 10.5px;
}

h4, h5, h6 {
margin-top: 10px;
margin-bottom: 10px;
margin-top: 10.5px;
margin-bottom: 10.5px;
}

/**
Expand Down Expand Up @@ -2085,7 +2085,7 @@ h4, h5, h6 {
}
.mui-radio > label,
.mui-checkbox > label {
min-height: 20px;
min-height: 21px;
padding-left: 20px;
margin-bottom: 0;
font-weight: normal;
Expand Down Expand Up @@ -2269,7 +2269,7 @@ h4, h5, h6 {
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.429;
line-height: 1.5;
color: #1F2D3D;
text-decoration: none;
white-space: nowrap;
Expand Down Expand Up @@ -2301,7 +2301,7 @@ h4, h5, h6 {
display: block;
width: 100%;
padding: 0;
margin-bottom: 10px;
margin-bottom: 10.5px;
font-size: 21px;
color: #1F2D3D;
line-height: inherit;
Expand Down Expand Up @@ -2350,7 +2350,7 @@ h4, h5, h6 {
*/
.mui-panel {
padding: 15px;
margin-bottom: 20px;
margin-bottom: 21px;
border-radius: 0;
background-color: #FFF;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0px 2px 0 rgba(0, 0, 0, 0.12);
Expand Down Expand Up @@ -2512,7 +2512,7 @@ h4, h5, h6 {
.mui-table {
width: 100%;
max-width: 100%;
margin-bottom: 20px;
margin-bottom: 21px;
}
.mui-table > thead > tr > th,
.mui-table > tbody > tr > th,
Expand All @@ -2526,7 +2526,7 @@ h4, h5, h6 {
.mui-table > tfoot > tr > th,
.mui-table > tfoot > tr > td {
padding: 10px;
line-height: 1.429;
line-height: 1.5;
}
.mui-table > thead > tr > th {
border-bottom: 2px solid rgba(132, 146, 166, 0.3);
Expand Down Expand Up @@ -3295,43 +3295,43 @@ h4, h5, h6 {
.mui--text-display3 {
font-weight: 400;
font-size: 64px;
line-height: 64px;
line-height: 1.2;
}

.mui--text-display2 {
font-weight: 400;
font-size: 48px;
line-height: 58px;
line-height: 1.2;
}

.mui--text-display1, h1, h1 {
font-weight: 400;
font-size: 32px;
line-height: 40px;
line-height: 1.2;
}

.mui--text-headline, h2, .header__site-title, .header__site-title__item, h2 {
font-weight: 400;
font-size: 24px;
line-height: 32px;
line-height: 1.2;
}

.mui--text-title, h3, .header__side-nav-list .header__side-nav-list__item__icon, .form-message, .modal .modal__header, h3 {
font-weight: 400;
font-size: 18px;
line-height: 28px;
line-height: 1.5;
}

.mui--text-subhead, h4, .header__nav-links, .alert .alert__text, h4 {
font-weight: 400;
font-size: 16px;
line-height: 24px;
line-height: 1.5;
}

.mui--text-body2, h5, .header__dropdown-app-title, .header__side-nav-list .header__side-nav-list__item, .card .card__body, .modal .modal__body, h5 {
font-weight: 400;
font-size: 14px;
line-height: 24px;
line-height: 1.5;
}

.mui--text-body1 {
Expand All @@ -3344,14 +3344,14 @@ h4, h5, h6 {
.mui-form .mui-form__helptext, .mui-form .mui-form__error, h6 {
font-weight: 400;
font-size: 12px;
line-height: 16px;
line-height: 1.5;
}

.mui--text-menu,
.mui--text-button {
font-weight: 400;
font-size: 14px;
line-height: 18px;
line-height: 1.5;
}

.mui--text-uppercase {
Expand Down Expand Up @@ -3918,8 +3918,8 @@ li p + ol {

.alert {
padding: 15px;
margin-top: 20px;
margin-bottom: 20px;
margin-top: 21px;
margin-bottom: 21px;
border: 1px solid transparent;
border-radius: 2px;
}
Expand Down
46 changes: 23 additions & 23 deletions baseframe/static/sass/baseframe-material/_helper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@
// DISPLAY
// ============================================================================

.mui--d-block {
display: block;
.mui--d-block {
display: block;
}
.mui--d-inlineblock {
display: inline-block;
.mui--d-inlineblock {
display: inline-block;
}
.mui--d-inline {
display: inline;
.mui--d-inline {
display: inline;
}

// ============================================================================
// BACKGROUND COLORS
// ============================================================================

.mui--bg-primary {
background-color: $mui-bg-color-primary;
.mui--bg-primary {
background-color: $mui-bg-color-primary;
}
.mui--bg-primary-dark {
background-color: $mui-bg-color-dark;
.mui--bg-primary-dark {
background-color: $mui-bg-color-dark;
}
.mui--bg-primary-light {
background-color: $mui-bg-color-light;
.mui--bg-primary-light {
background-color: $mui-bg-color-light;
}

.mui--bg-accent {
background-color: $mui-bg-color-accent;
.mui--bg-accent {
background-color: $mui-bg-color-accent;
}

// ============================================================================
Expand All @@ -45,43 +45,43 @@
.mui--text-display3 {
font-weight: 400;
font-size: 64px;
line-height: 64px;
line-height: 1.2;
}

.mui--text-display2 {
font-weight: 400;
font-size: 48px;
line-height: 58px;
line-height: 1.2;
}

.mui--text-display1, h1 {
font-weight: 400;
font-size: 32px;
line-height: 40px;
line-height: 1.2;
}

.mui--text-headline, h2 {
font-weight: 400;
font-size: 24px;
line-height: 32px;
line-height: 1.2;
}

.mui--text-title, h3 {
font-weight: 400;
font-size: 18px;
line-height: 28px;
line-height: 1.5;
}

.mui--text-subhead, h4 {
font-weight: 400;
font-size: 16px;
line-height: 24px;
line-height: 1.5;
}

.mui--text-body2, h5 {
font-weight: 400;
font-size: 14px;
line-height: 24px;
line-height: 1.5;
}

.mui--text-body1 {
Expand All @@ -93,14 +93,14 @@
.mui--text-caption, h6 {
font-weight: 400;
font-size: 12px;
line-height: 16px;
line-height: 1.5;
}

.mui--text-menu,
.mui--text-button {
font-weight: 400;
font-size: 14px;
line-height: 18px;
line-height: 1.5;
}

// ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion baseframe/static/sass/mui/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $mui-base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
$mui-base-font-size: 14px !default;
$mui-base-font-size-desktop: 16px !default;
$mui-base-font-weight: 400 !default;
$mui-base-line-height: 1.429 !default;
$mui-base-line-height: 1.5 !default;
$mui-base-font-smoothing: false !default;

$mui-link-font-color: $mui-text-hyperlink !default;
Expand Down

0 comments on commit cda8233

Please sign in to comment.