Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Social media colour variables & icon font
Browse files Browse the repository at this point in the history
  • Loading branch information
Basel committed Sep 10, 2014
1 parent fccfc60 commit 7742da7
Show file tree
Hide file tree
Showing 10 changed files with 1,920 additions and 6 deletions.
1,240 changes: 1,236 additions & 4 deletions css/site.css

Large diffs are not rendered by default.

Binary file added fonts/entypo.eot
Binary file not shown.
295 changes: 295 additions & 0 deletions fonts/entypo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/entypo.ttf
Binary file not shown.
Binary file added fonts/entypo.woff
Binary file not shown.
7 changes: 6 additions & 1 deletion index.html
Expand Up @@ -62,7 +62,12 @@ <h3>Buttons <em>(_buttons.less)</em></h3>
<button class="primary">.button-primary</button>
<button class="primary disabled">.button-primary.disabled</button><br>
<button class="secondary">.button-secondary</button>
<button class="secondary disabled">.button-secondary.disabled</button>
<button class="secondary disabled">.button-secondary.disabled</button><br>
<p>Social icons are achived by prefixing icon text with:<br><code>&lt;span class=&quot;icon-[socialNework]&quot;&gt;</code></p>
<button class="facebook"><span class="icon-facebook"></span>.button-facebook</button>
<button class="facebook disabled">.button-facebook.disabled</button><br>
<button class="twitter"><span class="icon-twitter">.button-twitter</button>
<button class="twitter disabled">.button-twitter.disabled</button>

<h3>Forms <em>(_forms.less)</em></h3>
<p>All HTML5 form elements are normalized to a set of core styles.</p>
Expand Down
38 changes: 38 additions & 0 deletions less/_buttons.less
Expand Up @@ -77,3 +77,41 @@ input.button-secondary {
cursor: default;
}
}

button.facebook,
.button-facebook,
input.button-facebook {
background-color: @socialFacebook;
color: white;
&:hover {
background: darken(@socialFacebook, 5%);
}
&:active {
background: darken(@socialFacebook, 10%);
}

&.disabled {
background: lighten(@socialFacebook, 20%);
color: @socialFacebook;
cursor: default;
}
}

button.twitter,
.button-twitter,
input.button-twitter {
background-color: @socialTwitter;
color: white;
&:hover {
background: darken(@socialTwitter, 5%);
}
&:active {
background: darken(@socialTwitter, 10%);
}

&.disabled {
background: #bedff2;
color: @socialTwitter;
cursor: default;
}
}
338 changes: 338 additions & 0 deletions less/_fonts.less

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion less/_variables.less
Expand Up @@ -16,4 +16,9 @@
@secondaryColor: #9d6ab4;

@textColor: #000000;
@baseColor: #EEEEEE;
@baseColor: #EEEEEE;

@socialFacebook: #3B5998;
@socialTwitter: #00ACED;
@socialInstagram: #3F729B;
@socialYoutube: #CD201F;
1 change: 1 addition & 0 deletions less/base.less
Expand Up @@ -30,6 +30,7 @@
@import "_forms.less";
@import "_buttons.less";
@import "_menus.less";
@import "_fonts.less";


// Custom Styles
Expand Down

0 comments on commit 7742da7

Please sign in to comment.