Skip to content

Commit

Permalink
Add about menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwelch committed May 5, 2015
1 parent 1481d79 commit e53907c
Show file tree
Hide file tree
Showing 9 changed files with 362 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ ruby:
java_script:
enabled: true
config_file: .jshintrc

scss:
enabled: false
47 changes: 47 additions & 0 deletions app/assets/images/about_ctl/logo_dray_long.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions app/assets/images/about_ctl/logo_image_layers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions app/assets/images/about_ctl/logo_lorry.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions app/assets/images/about_ctl/logo_panamax.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
*= require panamax
*= require animated_ellipsis
*= require_tree ./panamax
*= require ctl_about
*/
169 changes: 169 additions & 0 deletions app/assets/stylesheets/ctl_about.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
@import 'ctl_base_ui/variables';
@import 'ctl_base_ui/colors';
@import 'ctl_base_ui/mixins';
@import 'ctl_base_ui/icons';

nav.ctl {
float: left;
margin-bottom: 0;
height: 100%;

> ul {
height: 100%;
}

> ul > li {
color: #9c9c9c;
font-weight: normal;
float: left;
position: relative;
height: 100%;
line-height: 80px;

h4 {
a {
color: $medium_grey;
}
}

> a {
position: relative;
}

&:hover {
> ul {
display: block;

> li {
height: 515px;
}
}
}

.about-contents {
* {
text-transform: none;
line-height: 1;
letter-spacing: 0;
}

a {
display: inline;
color: $dark_blue;
background: none;
padding: 0;
font-weight: normal;
}

.clear {
clear: both;
}

h3 {
}
}

> ul {
transition: height 0.3s;
position: absolute;
z-index: 100;
top: 100%;
left: -553px;
width: 845px;
padding: 0;

li {
transition: height 0.3s;
height: 0;
@include border-box;
background: #fff;
overflow: hidden;
color: #777;

.strong {
font-weight: bold;
}

.about-contents {
border: 1px solid #999;
border-top: none;
padding: 20px;
padding-bottom: 0;
}
}

p {
padding-top: 20px;
line-height: 1.25em;
}

hr {
display: block; height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1.1em 0;
padding: 0;
}

a.project {
display: inline-block;
background: #f1f1f1;
margin-right: 10px;
color: inherit;
text-decoration: none;
float: left;

&:hover {
background: #e1e1e1;

mark {
text-decoration: none;
}
}

&:nth-last-of-type(1) {
margin-right: 0;
}
article {
width: 220px;
padding: 20px;

p {
font-size: 0.9em;
padding: 0;
}

mark {
background: none;
text-decoration: underline;
}

h4 {
margin: 20px 0 0 0;
color: #444;
}

.lorry-logo {
background: image-url('about_ctl/logo_lorry.svg') no-repeat;
background-size: 70%;
padding: 0;
padding-bottom: 50px;
}

.ilayers-logo {
background: image-url('about_ctl/logo_image_layers.svg') no-repeat;
padding: 0;
padding-bottom: 50px;
}

.dray-logo {
background: image-url('about_ctl/logo_dray_long.svg') -233px -345px no-repeat;
background-size: 260%;
padding: 0;
padding-bottom: 50px;
}
}
}
}
}
}
23 changes: 18 additions & 5 deletions app/assets/stylesheets/panamax.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ a:focus {
body > header {
background: $ctl_light_green;
width: 100%;
overflow: hidden;
margin-bottom: 10px;

&:after {
content: " ";
display: block;
clear: both;
font-size: 0;
height: 0;
visibility: hidden;
}

h1 {
border: none;
float: left;
Expand All @@ -41,6 +49,10 @@ body > header {
ul li {
float: left;

&:hover a {
background-color: $lime;
}

a {
@include border-box;
color: $white;
Expand All @@ -61,10 +73,6 @@ body > header {
left: 20px;
top: 20px;
}

&:hover {
background-color: $lime;
}
}
}
}
Expand All @@ -83,6 +91,11 @@ body > header nav ul li {
@extend .icon-document-large;
@include icon-white;
}
&.about-link > nav > ul > li > a:before {
margin-top: 5px;
@extend .icon-thin-arrow-down;
@include icon-white;
}
}

/* active states */
Expand Down
Loading

0 comments on commit e53907c

Please sign in to comment.