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
6ef9d992
Commit
6ef9d992
authored
Aug 25, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1446 from hypothesis/fix-sass-3-4
Fix responsive styles when running Sass >= 3.4.
parents
3f243561
dbb94611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
responsive.scss
h/static/styles/responsive.scss
+10
-10
No files found.
h/static/styles/responsive.scss
View file @
6ef9d992
...
...
@@ -3,31 +3,31 @@ $break-medium: 768px !default;
$break-large
:
1024px
!
default
;
@mixin
respond-to
(
$media
)
{
@if
type-of
(
$media
)
==
string
{
@if
$media
==
handhelds
{
@if
type-of
(
$media
)
==
'string'
{
@if
$media
==
'handhelds'
{
@media
only
screen
and
(
max-width
:
$break-small
)
{
@content
;
}
}
@else
if
$media
==
wide-handhelds
{
@else
if
$media
==
'wide-handhelds'
{
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-medium
)
{
@content
;
}
}
@else
if
$media
==
tablets
{
@else
if
$media
==
'tablets'
{
@media
only
screen
and
(
min-width
:
$break-medium
+
1
)
and
(
max-width
:
$break-large
)
{
@content
;
}
}
@else
if
$media
==
desktops
{
@else
if
$media
==
'desktops'
{
@media
only
screen
and
(
min-width
:
$break-large
+
1
)
{
@content
;
}
}
}
@else
if
type-of
(
$media
)
==
list
{
@if
index
(
$media
,
handhelds
)
!=
false
{
@else
if
type-of
(
$media
)
==
'list'
{
@if
index
(
$media
,
'handhelds'
)
{
@media
only
screen
and
(
max-width
:
$break-small
)
{
@content
;
}
}
@if
index
(
$media
,
wide-handhelds
)
!=
false
{
@if
index
(
$media
,
'wide-handhelds'
)
{
@media
only
screen
and
(
min-width
:
$break-small
+
1
)
and
(
max-width
:
$break-medium
)
{
@content
;
}
}
@if
index
(
$media
,
tablets
)
!=
false
{
@if
index
(
$media
,
'tablets'
)
{
@media
only
screen
and
(
min-width
:
$break-medium
+
-1
)
and
(
max-width
:
$break-large
){
@content
;
}
}
@if
index
(
$media
,
desktops
)
!=
false
{
@if
index
(
$media
,
'desktops'
)
{
@media
only
screen
and
(
min-width
:
$break-large
+
1
)
{
@content
;
}
}
}
...
...
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