Skip to content

Commit

Permalink
Added Retina images and 2x pixel ratio css classes closes #314
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwise committed Feb 28, 2013
1 parent 7871b69 commit 4431f47
Show file tree
Hide file tree
Showing 11 changed files with 485 additions and 373 deletions.
672 changes: 347 additions & 325 deletions codekit-config.json

Large diffs are not rendered by default.

48 changes: 25 additions & 23 deletions compiled/css/themes/dark.css

Large diffs are not rendered by default.

Binary file added compiled/css/themes/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 25 additions & 24 deletions compiled/css/timeline.css

Large diffs are not rendered by default.

Binary file added compiled/css/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/gfx/[email protected]
Binary file not shown.
Binary file added source/gfx/[email protected]
Binary file not shown.
2 changes: 1 addition & 1 deletion source/less/Core
Submodule Core updated from 048036 to 2dc352
6 changes: 6 additions & 0 deletions source/less/Theme/Dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
.base-sprite() {
background-image: url(themes/timeline-dark.png?v3.4);
}
.base-sprite2x() {
background-image: url(themes/[email protected]?v4.3);
}
.loading-sprite() {
background-image: url(themes/loading.gif?v3.4);
}
.loading-sprite2x() {
background-image: url(themes/[email protected]?v3.4);
}

// COLORS
@color-base: #1A1A1A;
Expand Down
73 changes: 73 additions & 0 deletions source/less/VMM.Timeline.TimeNav.less
Original file line number Diff line number Diff line change
Expand Up @@ -805,4 +805,77 @@

}

}

/* RETINA
================================================== */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2) {
.vco-notouch {
.vco-navigation {
.vco-toolbar {
.zoom-in {
.icon {
.icon-zoom-in2x();
}
}
.zoom-out {
.icon {
.icon-zoom-out2x();
}
}
.back-home {
.icon {
.icon-back-home2x();
}
}
}
.vco-toolbar.touch {
.zoom-in {
.icon {
.icon-touch-zoom-in2x();
}
}
.zoom-out {
.icon {
.icon-touch-zoom-out2x();
}
}
.back-home {
.icon {
.icon-touch-back-home2x();
}
}
}
.timenav {
.content {
.marker {
.flag:hover {
.time-flag-active2x();
}
.flag-small:hover {
.time-flag-active2x();
}
.flag-small.flag-small-last:hover {
.time-flag-small-active2x();
}
}
}
}
.timenav-background {
.timenav-indicator {
.icon-currenttime2x();
}
}
}
}
.vco-timeline {
.vco-navigation {
.timenav {
.content {

}
}
}
}
}
8 changes: 8 additions & 0 deletions source/less/VMM.Timeline.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@
.base-sprite() {
background-image: url(timeline.png?v4.3);
}
.base-sprite2x() {
background-image: url([email protected]?v4.3);
background-size: 352px 260px;
}
.loading-sprite() {
background-image: url(loading.gif?v3.4);
}
.loading-sprite2x() {
background-image: url([email protected]?v3.4);
}

// COLORS
@color-base: #FFF;
Expand All @@ -29,6 +36,7 @@
@color-dark-fourth: #999;
@color-dark-fifth: #E3E3E3;
@color-background-dark: #E9E9E9;

// COLOR THEME
@color-theme: #08C; //#FF3712; //#FF0000;

Expand Down

0 comments on commit 4431f47

Please sign in to comment.