Skip to content

Commit

Permalink
version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed Apr 19, 2015
1 parent 2321c92 commit 276fc55
Show file tree
Hide file tree
Showing 9 changed files with 245 additions and 70 deletions.
91 changes: 68 additions & 23 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
html, body {
overflow-x: hidden; }

body {
font-family: 'Roboto', sans-serif; }

Expand Down Expand Up @@ -43,77 +46,87 @@ body {

#svg {
position: absolute;
top: 150px;
right: 380px;
left: 50px;
bottom: 60px;
overflow: visible; }
top: 100px;
right: 420px;
left: 100px;
bottom: 100px;
overflow: visible;
transition: right .5s; }
#svg.larger {
right: 100px; }
#svg > svg {
display: block;
margin: 0 auto;
overflow: visible; }

h1 {
font-size: 38px;
color: #888888;
font-size: 30px;
color: #667788;
font-weight: 100;
margin: 0;
letter-spacing: 0.05em; }

#header {
height: 150px; }
padding: 20px 20px 30px 20px; }

#canvas {
padding: 0px 10px 5px 20px; }

#menu {
position: absolute;
top: 0;
right: 0;
right: -350px;
width: 320px;
bottom: 0;
background-color: #f0f2f7;
border-left: 1px solid #e9edf4;
background-color: #fff;
border-left: 1px solid #eceff6;
padding: 10px;
padding-top: 100px; }
transition: right .5s, opacity .3s;
opacity: 0; }
#menu.open {
right: 0;
opacity: 1; }
#menu p {
padding: 0px 10px 5px 20px; }
#menu p label {
display: inline-block;
font-size: 12px;
min-width: 120px;
color: #888888; }
color: #667788;
font-weight: 400; }
#menu p label.checkbox {
cursor: pointer;
line-height: 30px; }
#menu p label.checkbox:hover {
color: #09f; }
color: #00a3f1; }
#menu p label.checkbox > * {
display: inline-block;
vertical-align: middle; }
#menu p label.sub {
margin-bottom: 20px; }
margin-bottom: 15px; }
#menu p label.fileinput {
margin-top: 10px; }
margin-top: 15px; }
#menu p label.hint {
color: #bbb; }
#menu p label.imageSelect {
color: #09f;
#menu p label.action {
color: #00a3f1;
cursor: pointer; }
#menu p label.imageSelect:hover {
color: #007acc; }
#menu p label.action:hover {
color: #00CCFF; }
#menu p input[type="number"] {
padding: 5px;
width: 100px; }
width: 100px;
border: 1px solid #99aabb; }
#menu p input[type="number"][type="file"] {
width: auto; }
#menu p select {
padding: 5px;
width: 115px; }
width: 115px;
border: 1px solid #99aabb; }
#menu hr {
margin: 20px;
border: none;
border-top: 1px solid #e2e7f0; }
border-top: 1px solid #e5eaf2; }

#preview {
position: fixed;
Expand All @@ -124,3 +137,35 @@ h1 {

#imageOnlyControl {
display: none; }

#info {
position: absolute;
bottom: 20px;
left: 20px;
font-size: 11px;
color: #667788; }
#info > a {
color: #667788;
text-decoration: none;
opacity: .65; }
#info > a:hover {
color: #00a3f1;
opacity: 1; }

#close {
position: fixed;
right: 5px;
top: 0px;
font-weight: 100;
font-size: 2em;
line-height: 1;
padding: 10px;
display: block;
color: #667788;
cursor: pointer;
transform: rotateZ(0deg);
transition: transform .2s; }
#close:hover {
color: #00a3f1; }
#close.closed {
transform: rotateZ(-45deg); }
94 changes: 77 additions & 17 deletions css/style.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
$bg: #f3f5f9;
$fg: #1e2123;
$grey1: #555;
$grey2: #888;
$grey1: #456;
$grey2: #678;
$grey3: #9AB;
$link: #00A3F1;
$fs: 10px;
$head_h: 150px;
$head_h: 100px;

html, body {
overflow-x: hidden;
}

body {
font-family: 'Roboto', sans-serif;
Expand Down Expand Up @@ -50,9 +56,13 @@ body {

#svg {
position: absolute;
top: $head_h; right: 380px; left: 50px; bottom: 60px;
top: $head_h; right: 420px; left: 100px; bottom: 100px;
overflow: visible;
transition: right .5s;

&.larger {
right: 100px;
}

> svg {
display: block;
Expand All @@ -62,15 +72,15 @@ body {
}

h1 {
font-size: $fs * 3.8;
font-size: $fs * 3;
color: $grey2;
font-weight: 100;
margin: 0;
letter-spacing: 0.05em;
}

#header {
height: $head_h;
padding: 20px 20px 30px 20px;
}


Expand All @@ -82,11 +92,17 @@ h1 {

#menu {
position: absolute;
top: 0; right: 0; width: 320px; bottom: 0;
background-color: darken($bg, 1);
border-left: 1px solid darken($bg, 3);
top: 0; right: -350px; width: 320px; bottom: 0;
background-color: #fff;
border-left: 1px solid darken($bg, 2);
padding: 10px;
padding-top: 100px;
transition: right .5s, opacity .3s;
opacity: 0;

&.open {
right: 0;
opacity: 1;
}

p {
padding: 0px 10px 5px 20px;
Expand All @@ -96,28 +112,30 @@ h1 {
font-size: 12px;
min-width: 120px;
color: $grey2;
font-weight: 400;

&.checkbox {
cursor: pointer;
&:hover { color: #09f;}
&:hover { color: $link;}
line-height: 30px;
> * { display: inline-block; vertical-align: middle;}
}

&.sub { margin-bottom: 20px;}
&.fileinput { margin-top: 10px;}
&.sub { margin-bottom: 15px;}
&.fileinput { margin-top: 15px;}
&.hint { color: #bbb;}

&.imageSelect {
color: #09f;
&.action {
color: $link;
cursor: pointer;
&:hover { color: darken(#09f, 10);}
&:hover { color: #00CCFF;}
}
}

input[type="number"] {
padding: 5px;
width: 100px;
border: 1px solid $grey3;

&[type="file"] {
width: auto;
Expand All @@ -127,13 +145,15 @@ h1 {
select {
padding: 5px;
width: 115px;
border: 1px solid $grey3;
}

}

hr {
margin: 20px;
border: none;
border-top: 1px solid darken($bg, 5);
border-top: 1px solid darken($bg, 4);
}
}

Expand All @@ -147,4 +167,44 @@ h1 {

#imageOnlyControl {
display: none;
}

#info {
position: absolute;
bottom: 20px;
left: 20px;
font-size: 11px;

color: $grey2;


> a {
color: $grey2;
text-decoration: none;
opacity: .65;

&:hover { color: $link; opacity: 1;}
}
}

#close {
position: fixed;
right: 5px; top: 0px;
font-weight: 100;
font-size: 2em;
line-height: 1;
padding: 10px;
display: block;
color: $grey2;
cursor: pointer;
transform: rotateZ(0deg);
transition: transform .2s;

&:hover {
color: $link;
}

&.closed {
transform: rotateZ(-45deg);
}
}
Binary file added images/bauhaus.jpg
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 images/bay.jpg
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 images/goldfish.jpg
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 images/mao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 276fc55

Please sign in to comment.