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
94f0b58b
Commit
94f0b58b
authored
Jan 25, 2012
by
Kyle Fiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started fixing layout problems
parent
c1543c7f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
27 deletions
+46
-27
sass/_base-extends.scss
+12
-5
sass/_base-variables.scss
+19
-0
sass/_courseware.scss
+2
-7
sass/_fancybox.scss
+4
-4
sass/_profile.scss
+4
-4
sass/_textbook.scss
+5
-7
No files found.
sass/_base-extends.scss
View file @
94f0b58b
...
...
@@ -8,9 +8,15 @@
.wrapper
{
margin
:
0
auto
;
max-width
:
$max-width
;
width
:
grid-width
(
12
);
max-width
:
$fg-max-width
;
min-width
:
$fg-min-width
;
width
:
flex-grid
(
12
);
text-align
:
left
;
div
.table-wrapper
{
display
:
table
;
width
:
flex-grid
(
12
);
}
}
.button
{
...
...
@@ -34,20 +40,21 @@
.content
{
@include
box-sizing
(
border-box
);
display
:
table-cell
;
padding
:
$body-line-height
;
padding
:
lh
()
;
vertical-align
:
top
;
width
:
grid-width
(
9
);
width
:
flex-grid
(
9
)
+
flex-gutter
(
);
}
.sidebar
{
@include
box-shadow
(
inset
-1px
0
0
#f6f6f6
);
@include
box-sizing
(
border-box
);
background
:
#e3e3e3
;
border-right
:
1px
solid
#d3d3d3
;
display
:
table-cell
;
font-family
:
$body-font-family
;
text-shadow
:
0
1px
0
#f1f1f1
;
vertical-align
:
top
;
width
:
grid-width
(
3
);
width
:
flex-grid
(
3
);
position
:
relative
;
h3
{
...
...
sass/_base-variables.scss
View file @
94f0b58b
// Flexible grid
@function
flex-grid
(
$columns
,
$container-columns
:
$fg-max-columns
)
{
$width
:
$columns
*
$fg-column
+
(
$columns
-
1
)
*
$fg-gutter
;
$container-width
:
$container-columns
*
$fg-column
+
(
$container-columns
-
1
)
*
$fg-gutter
;
@return
percentage
(
$width
/
$container-width
);
}
// Flexible grid gutter
@function
flex-gutter
(
$container-columns
:
$fg-max-columns
,
$gutter
:
$fg-gutter
)
{
$container-width
:
$container-columns
*
$fg-column
+
(
$container-columns
-
1
)
*
$fg-gutter
;
@return
percentage
(
$gutter
/
$container-width
);
}
// Percentage of container calculator
@function
perc
(
$width
,
$container-width
:
$max-width
)
{
@return
percentage
(
$width
/
$container-width
);
...
...
@@ -25,6 +37,13 @@ $gw-column: perc($column-width);
$gw-gutter
:
perc
(
$gutter-width
);
$body-line-height
:
golden-ratio
(
$body-font-size
,
1
);
//Flexible grid
$fg-column
:
$column-width
;
$fg-gutter
:
$gutter-width
;
$fg-max-columns
:
$columns
;
$fg-max-width
:
1400px
;
$fg-min-width
:
810px
;
// color
$light-gray
:
#ddd
;
$dark-gray
:
#333
;
...
...
sass/_courseware.scss
View file @
94f0b58b
div
.course-wrapper
{
display
:
table
;
width
:
100%
;
@extend
.table-wrapper
;
div
#accordion
{
@extend
.sidebar
;
...
...
@@ -69,11 +68,7 @@ div.course-wrapper {
}
section
.course-content
{
@include
box-sizing
(
border-box
);
display
:
table-cell
;
padding
:
$gw-gutter
;
vertical-align
:
top
;
width
:
grid-width
(
9
);
@extend
.content
;
ol
.vert-mod
{
li
{
...
...
sass/_fancybox.scss
View file @
94f0b58b
...
...
@@ -36,14 +36,14 @@ div#fancybox-wrap {
text-align
:
left
;
div
#enroll_error
,
div
#login_error
{
margin-bottom
:
lh
()
;
-webkit-font-smoothing
:
antialiased
;
background-color
:
#F50200
;
color
:
#fff
;
text-transform
:
uppercase
;
letter-spacing
:
1px
;
font-weight
:
bold
;
-webkit-font-smoothing
:
antialiased
;
letter-spacing
:
1px
;
margin-bottom
:
lh
();
padding
:
lh
(
.2
);
text-transform
:
uppercase
;
&
:empty
{
padding
:
0
;
...
...
sass/_profile.scss
View file @
94f0b58b
...
...
@@ -3,9 +3,9 @@ div.profile-wrapper {
section
.user-info
{
@include
box-sizing
(
border-box
);
margin-right
:
$gw-gutter
;
margin-right
:
flex-gutter
()
;
padding
:
$body-line-height
;
width
:
grid-width
(
6
);
width
:
flex-grid
(
6
);
background
:
#e3e3e3
;
border-right
:
1px
solid
#d3d3d3
;
text-shadow
:
0
1px
0
#f6f6f6
;
...
...
@@ -14,9 +14,9 @@ div.profile-wrapper {
section
.course-info
{
@include
box-sizing
(
border-box
);
padding
:
$body-line-height
;
width
:
grid-width
(
6
);
display
:
table-cell
;
padding
:
$body-line-height
;
width
:
flex-grid
(
6
);
ul
{
li
{
...
...
sass/_textbook.scss
View file @
94f0b58b
div
.book-wrapper
{
display
:
table
;
@extend
.table-wrapper
;
ul
#booknav
{
@extend
.sidebar
;
@include
box-sizing
(
border-box
);
padding
:
$body-line-height
;
padding
:
lh
()
;
li
{
ul
{
...
...
@@ -14,11 +14,7 @@ div.book-wrapper {
}
section
.book
{
@include
box-sizing
(
border-box
);
padding
:
$body-line-height
;
vertical-align
:
top
;
width
:
grid-width
(
9
)
+
$gw-gutter
;
display
:
table-cell
;
@extend
.content
;
nav
{
@extend
.topbar
;
...
...
@@ -42,6 +38,8 @@ div.book-wrapper {
section
.page
{
img
{
border
:
1px
solid
$border-color
;
max-width
:
100%
;
min-width
:
100%
;
}
}
}
...
...
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