Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
ffdfd8b7
Commit
ffdfd8b7
authored
May 04, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the template useable in Mobile Safari + make it prettier in Firefox and Opera. Fixes #160
parent
128d3e51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
assets/base.css
assets/base.css
+17
-12
No files found.
assets/base.css
View file @
ffdfd8b7
...
...
@@ -137,7 +137,6 @@ body {
padding
:
16px
16px
16px
60px
;
border
:
none
;
background
:
rgba
(
0
,
0
,
0
,
0.02
);
position
:
relative
;
z-index
:
2
;
box-shadow
:
none
;
}
...
...
@@ -154,9 +153,12 @@ label[for='toggle-all'] {
#toggle-all
{
position
:
absolute
;
top
:
-42px
;
left
:
12px
;
top
:
-56px
;
left
:
-15px
;
width
:
65px
;
height
:
41px
;
text-align
:
center
;
border
:
none
;
/* Mobile Safari */
-webkit-appearance
:
none
;
/*-moz-appearance: none;*/
-ms-appearance
:
none
;
...
...
@@ -180,15 +182,6 @@ label[for='toggle-all'] {
color
:
#737373
;
}
/* Need this ugly hack, since only
WebKit supports styling of inputs */
@media
screen
and
(
-webkit-min-device-pixel-ratio
:
0
)
{
#toggle-all
{
top
:
-52px
;
left
:
-11px
;
}
}
#todo-list
{
margin
:
0
;
padding
:
0
;
...
...
@@ -229,6 +222,7 @@ WebKit supports styling of inputs */
top
:
0
;
bottom
:
0
;
margin
:
auto
0
;
border
:
none
;
/* Mobile Safari */
-webkit-appearance
:
none
;
/*-moz-appearance: none;*/
-ms-appearance
:
none
;
...
...
@@ -395,3 +389,14 @@ WebKit supports styling of inputs */
#info
a
{
color
:
inherit
;
}
/*
Hack to remove background from Mobile Safari.
Can't use it globally since it destroys checkboxes in Firefox and Opera
*/
@media
screen
and
(
-webkit-min-device-pixel-ratio
:
0
)
{
#toggle-all
,
#todo-list
li
.toggle
{
background
:
none
;
}
}
\ No newline at end of file
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