Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
f70b4938
Commit
f70b4938
authored
Jan 07, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add responsive breakpoint and yui grid for desktop
parent
133a12c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
common.scss
h/css/common.scss
+4
-0
responsive.scss
h/css/responsive.scss
+13
-6
site.scss
h/css/site.scss
+7
-7
No files found.
h/css/common.scss
View file @
f70b4938
...
...
@@ -55,6 +55,10 @@ html {
@include
respond-to
(
tablets
)
{
@include
yui_grid
(
't-'
);
}
@include
respond-to
(
desktops
)
{
@include
yui_grid
(
'd-'
);
}
}
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
...
...
h/css/responsive.scss
View file @
f70b4938
$break-small
:
479px
!
default
;
$break-large
:
911px
!
default
;;
$break-small
:
480px
!
default
;
$break-medium
:
768px
!
default
;
$break-large
:
1024px
!
default
;
@mixin
respond-to
(
$media
)
{
@if
type-of
(
$media
)
==
string
{
...
...
@@ -7,10 +8,13 @@ $break-large: 911px !default;;
@media
only
screen
and
(
max-width
:
$break-small
)
{
@content
;
}
}
@else
if
$media
==
wide-handhelds
{
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-
large
-
1
)
{
@content
;
}
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-
medium
)
{
@content
;
}
}
@else
if
$media
==
tablets
{
@media
only
screen
and
(
min-width
:
$break-large
)
{
@content
;
}
@media
only
screen
and
(
min-width
:
$break-medium
+
1
)
and
(
max-width
:
$break-large
)
{
@content
;
}
}
@else
if
$media
==
desktops
{
@media
only
screen
and
(
min-width
:
$break-large
+
1
)
{
@content
;
}
}
}
@else
if
type-of
(
$media
)
==
list
{
...
...
@@ -18,10 +22,13 @@ $break-large: 911px !default;;
@media
only
screen
and
(
max-width
:
$break-small
)
{
@content
;
}
}
@if
index
(
$media
,
wide-handhelds
)
!=
false
{
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-
large
-
1
)
{
@content
;
}
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-
medium
)
{
@content
;
}
}
@if
index
(
$media
,
tablets
)
!=
false
{
@media
only
screen
and
(
min-width
:
$break-large
)
{
@content
;
}
@media
only
screen
and
(
min-width
:
$break-medium
+
-1
)
and
(
max-width
:
$break-large
){
@content
;
}
}
@if
index
(
$media
,
desktops
)
!=
false
{
@media
only
screen
and
(
min-width
:
$break-large
+
1
)
{
@content
;
}
}
}
}
h/css/site.scss
View file @
f70b4938
...
...
@@ -18,7 +18,7 @@ header {
text-align
:
center
;
}
@include
respond-to
(
wide-handhelds
tablets
)
{
@include
respond-to
(
wide-handhelds
tablets
desktops
)
{
@include
pie-clearfix
;
text-align
:
left
;
img
{
float
:
left
;
}
...
...
@@ -65,10 +65,10 @@ ol {
.content
{
padding
:
2
.5em
1em
;
@include
respond-to
(
tablets
)
{
@include
respond-to
(
tablets
desktops
)
{
padding
:
2
.5em
4em
4em
4em
;
margin
:
auto
;
max-width
:
$break-
large
;
max-width
:
$break-
medium
;
}
}
...
...
@@ -76,20 +76,20 @@ ol {
position
:
fixed
;
.inner
{
margin
:
0
auto
;
max-width
:
$break-
large
;
max-width
:
$break-
medium
;
padding-left
:
3
.6em
;
padding-right
:
3
.6em
;
@include
respond-to
(
tablets
)
{
@include
respond-to
(
tablets
desktops
)
{
padding-left
:
3
.6em
;
padding-right
:
3
.6em
;
margin
:
0
auto
;
max-width
:
$break-
large
;
max-width
:
$break-
medium
;
}
@include
respond-to
(
wide-handhelds
handhelds
)
{
padding-left
:
0
.9em
;
padding-right
:
0
.9em
;
margin
:
0
auto
;
max-width
:
$break-
large
;
max-width
:
$break-
medium
;
}
}
}
...
...
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