Skip to content

Commit

Permalink
Rosegold 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stuyam committed Sep 29, 2015
1 parent 7618a98 commit 050165f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion devices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! CSSDevices v2.1.0 | MIT license | Maintained by Stuart Yamartino | http://cssdevices.io */
/*! CSSDevices v2.2.0 | MIT license | Maintained by Stuart Yamartino | http://cssdevices.io */
$(function(){
$('.cd-screen').each(function(){
if($(this).hasClass('cd-smart-loader')){
Expand Down
4 changes: 2 additions & 2 deletions devices.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/iphone.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
</style>

<div class="cd-iphone-6">
<div class="cd-iphone-6 cd-rosegold">
<div class="cd-body">
<div class="cd-sound"></div>
<div class="cd-sleep"></div>
Expand Down
18 changes: 16 additions & 2 deletions sass/_iphone.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@
border-color: $gold-bezel;
}

&.cd-rosegold .cd-body,
&.cd-rosegold .cd-body .cd-home{
background-color: $device-white;
border-color: $rosegold-bezel;
}

&.cd-silver .cd-body,
&.cd-silver .cd-body .cd-home{
background-color: $device-white;
Expand All @@ -217,6 +223,13 @@
background: $gold-bezel;
}

&.cd-rosegold .cd-sound,
&.cd-rosegold .cd-sound::before,
&.cd-rosegold .cd-sound::after,
&.cd-rosegold .cd-sleep{
background: $rosegold-bezel;
}

&.cd-silver .cd-sound,
&.cd-silver .cd-sound::before,
&.cd-silver .cd-sound::after,
Expand All @@ -239,18 +252,19 @@
margin-left: -4em;
width: .7em;
height: .7em;
border-radius: .4em;
border-radius: .35em;
}

&.cd-gold .cd-camera::after,
&.cd-rosegold .cd-camera::after,
&.cd-silver .cd-camera::after{
content: "";
background: $camera;
top: -1.4em;
right: -3.5em;
width: .5em;
height: .5em;
border-radius: .3em;
border-radius: .25em;
}

.cd-ear{
Expand Down
1 change: 1 addition & 0 deletions sass/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $white-bezel: #efefee;
$silver-bezel: #bdbfbe;
$gold-bezel: #ecdcc8;
$black-bezel: #656565;
$rosegold-bezel: #E9C9C5;

//Bodys
$device-black: #1e1e1e;
Expand Down
2 changes: 1 addition & 1 deletion sass/devices.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! CSSDevices v2.1.1 | MIT license | Maintained by Stuart Yamartino | http://cssdevices.io */
/*! CSSDevices v2.2.0 | MIT license | Maintained by Stuart Yamartino | http://cssdevices.io */
@import 'vars';

@import 'iphone';
Expand Down

0 comments on commit 050165f

Please sign in to comment.