Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
073c6d9a
Commit
073c6d9a
authored
May 20, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2088 from edx/bug/btalbot/studio-lineheight
Studio - adding back in older Sass lh() function/mixin
parents
c94f8d6f
8bbbe992
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
19 deletions
+25
-19
cms/static/sass/_mixins-inherited.scss
+6
-0
cms/static/sass/elements/_typography.scss
+18
-18
common/static/sass/_mixins.scss
+1
-1
No files found.
cms/static/sass/_mixins-inherited.scss
View file @
073c6d9a
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
// talbs: we need to slowly ween ourselves off of these
// talbs: we need to slowly ween ourselves off of these
// ====================
// ====================
// line-height (old way)
@function
lh
(
$amount
:
1
)
{
@return
$body-line-height
*
$amount
;
}
// inherited - vertical and horizontal centering
// inherited - vertical and horizontal centering
@mixin
vertically-and-horizontally-centered
(
$height
,
$width
)
{
@mixin
vertically-and-horizontally-centered
(
$height
,
$width
)
{
left
:
50%
;
left
:
50%
;
...
...
cms/static/sass/elements/_typography.scss
View file @
073c6d9a
...
@@ -11,54 +11,54 @@
...
@@ -11,54 +11,54 @@
.t-title1
{
.t-title1
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
60
);
@include
font-size
(
60
);
@include
l
h
(
60
);
@include
l
ine-height
(
60
);
}
}
.t-title2
{
.t-title2
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
48
);
@include
font-size
(
48
);
@include
l
h
(
48
);
@include
l
ine-height
(
48
);
}
}
.t-title3
{
.t-title3
{
@include
font-size
(
36
);
@include
font-size
(
36
);
@include
l
h
(
36
);
@include
l
ine-height
(
36
);
}
}
.t-title4
{
.t-title4
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
24
);
@include
font-size
(
24
);
@include
l
h
(
24
);
@include
l
ine-height
(
24
);
}
}
.t-title5
{
.t-title5
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
18
);
@include
font-size
(
18
);
@include
l
h
(
18
);
@include
l
ine-height
(
18
);
}
}
.t-title6
{
.t-title6
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
16
);
@include
font-size
(
16
);
@include
l
h
(
16
);
@include
l
ine-height
(
16
);
}
}
.t-title7
{
.t-title7
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
14
);
@include
font-size
(
14
);
@include
l
h
(
14
);
@include
l
ine-height
(
14
);
}
}
.t-title8
{
.t-title8
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
12
);
@include
font-size
(
12
);
@include
l
h
(
12
);
@include
l
ine-height
(
12
);
}
}
.t-title9
{
.t-title9
{
@extend
.t-title
;
@extend
.t-title
;
@include
font-size
(
11
);
@include
font-size
(
11
);
@include
l
h
(
11
);
@include
l
ine-height
(
11
);
}
}
// ====================
// ====================
...
@@ -71,31 +71,31 @@
...
@@ -71,31 +71,31 @@
.t-copy-base
{
.t-copy-base
{
@extend
.t-copy
;
@extend
.t-copy
;
@include
font-size
(
16
);
@include
font-size
(
16
);
@include
l
h
(
16
);
@include
l
ine-height
(
16
);
}
}
.t-copy-lead1
{
.t-copy-lead1
{
@extend
.t-copy
;
@extend
.t-copy
;
@include
font-size
(
18
);
@include
font-size
(
18
);
@include
l
h
(
18
);
@include
l
ine-height
(
18
);
}
}
.t-copy-lead2
{
.t-copy-lead2
{
@extend
.t-copy
;
@extend
.t-copy
;
@include
font-size
(
24
);
@include
font-size
(
24
);
@include
l
h
(
24
);
@include
l
ine-height
(
24
);
}
}
.t-copy-sub1
{
.t-copy-sub1
{
@extend
.t-copy
;
@extend
.t-copy
;
@include
font-size
(
14
);
@include
font-size
(
14
);
@include
l
h
(
14
);
@include
l
ine-height
(
14
);
}
}
.t-copy-sub2
{
.t-copy-sub2
{
@extend
.t-copy
;
@extend
.t-copy
;
@include
font-size
(
12
);
@include
font-size
(
12
);
@include
l
h
(
12
);
@include
l
ine-height
(
12
);
}
}
// ====================
// ====================
...
@@ -103,22 +103,22 @@
...
@@ -103,22 +103,22 @@
// actions/labels
// actions/labels
.t-action1
{
.t-action1
{
@include
font-size
(
18
);
@include
font-size
(
18
);
@include
l
h
(
18
);
@include
l
ine-height
(
18
);
}
}
.t-action2
{
.t-action2
{
@include
font-size
(
16
);
@include
font-size
(
16
);
@include
l
h
(
16
);
@include
l
ine-height
(
16
);
}
}
.t-action3
{
.t-action3
{
@include
font-size
(
14
);
@include
font-size
(
14
);
@include
l
h
(
14
);
@include
l
ine-height
(
14
);
}
}
.t-action4
{
.t-action4
{
@include
font-size
(
12
);
@include
font-size
(
12
);
@include
l
h
(
12
);
@include
l
ine-height
(
12
);
}
}
...
...
common/static/sass/_mixins.scss
View file @
073c6d9a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
}
}
// mixins - line height
// mixins - line height
@mixin
l
h
(
$fontSize
:
auto
){
@mixin
l
ine-height
(
$fontSize
:
auto
){
line-height
:
(
$fontSize
*
1
.48
)
+
px
;
line-height
:
(
$fontSize
*
1
.48
)
+
px
;
line-height
:
((
$fontSize
/
10
)
*
1
.48
)
+
rem
;
line-height
:
((
$fontSize
/
10
)
*
1
.48
)
+
rem
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment