Skip to content

Commit

Permalink
Update about box with new styling and more info.
Browse files Browse the repository at this point in the history
And switched Sass' output style to "expanded" for better CSS readability.
  • Loading branch information
Thibaut committed Apr 14, 2012
1 parent 3a5c954 commit ccb13aa
Show file tree
Hide file tree
Showing 48 changed files with 1,634 additions and 368 deletions.
51 changes: 46 additions & 5 deletions 1-top-bar/css/style.css
Expand Up @@ -58,6 +58,9 @@ table {
* Licensed under the MIT License: * Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
*/ */
/* ========================================================
Page
===================================================== */
body { body {
background: #10abd7; background: #10abd7;
color: #404040; color: #404040;
Expand All @@ -74,6 +77,9 @@ body {
margin-right: auto; margin-right: auto;
} }


/* ========================================================
Top bar
===================================================== */
header { header {
position: fixed; position: fixed;
top: 0; top: 0;
Expand Down Expand Up @@ -200,16 +206,51 @@ header nav span {
box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.2); box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.2);
} }


/* ========================================================
About
===================================================== */
.about { .about {
margin: 50px 0; margin: 80px auto;
padding: 15px 20px;
width: 300px;
text-align: center; text-align: center;
color: #ccc; color: #095f78;
text-shadow: 0 -1px rgba(0, 0, 0, 0.25); text-shadow: 0 1px rgba(255, 255, 255, 0.3);
background: rgba(0, 0, 0, 0.05);
border-radius: 3px;
} }
.about a { .about a {
color: #fff; padding: 1px 3px;
margin: 0 -1px;
color: #e8f3fc;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px rgba(0, 0, 0, 0.2);
border-radius: 2px;
} }
.about a:hover { .about a:hover {
border-bottom: 1px solid #fff; color: #095f78;
text-shadow: none;
background: #e8f3fc;
}

.links {
zoom: 1;
}
.links:before, .links:after {
content: "";
display: table;
}
.links:after {
clear: both;
}
.links a {
padding: 6px 0;
float: left;
width: 50%;
font-size: 14px;
}

.author {
margin-top: 15px;
font-size: 11px;
} }
12 changes: 8 additions & 4 deletions 1-top-bar/index.html
Expand Up @@ -30,10 +30,14 @@ <h1><a href="index.html">WebApp</a></h1>
</header> </header>


<section class="about"> <section class="about">
<p> <p class="links">
<a href="http://www.webinterfacelab.com/snippets/top-bar" target="_parent">View Snippet</a> &ndash; <a href="http://www.webinterfacelab.com/snippets/top-bar" target="_parent">View Article</a>
<a href="http://www.webinterfacelab.com/snippets/top-bar.zip" target="_parent">Download Snippet</a> &ndash; <a href="http://www.webinterfacelab.com/snippets/top-bar.zip" target="_parent">Download Snippet</a>
<a href="https://github.com/Thibaut/Snippets/tree/master/1-top-bar/" target="_parent">View on Github</a> </p>
<p class="author">
&copy; 2012 <a href="http://thibaut.me" target="_blank">Thibaut Courouble</a> &ndash;
<a href="http://www.webinterfacelab.com/mit-license" target="_blank" rel="nofollow">MIT License</a><br>
Original PSD by <a href="http://www.premiumpixels.com/freebies/sticky-admin-bar-psd/" target="_blank" rel="nofollow">Orman Clark</a>
</p> </p>
</section> </section>
</body> </body>
Expand Down
52 changes: 46 additions & 6 deletions 1-top-bar/scss/style.scss
Expand Up @@ -9,6 +9,10 @@
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
*/ */


/* ========================================================
Page
===================================================== */

$siteWidth: 540px; $siteWidth: 540px;
$headerHeight: 37px; $headerHeight: 37px;


Expand Down Expand Up @@ -40,6 +44,10 @@ body {
margin-right: auto; margin-right: auto;
} }


/* ========================================================
Top bar
===================================================== */

header { header {
position: fixed; position: fixed;
top: 0; top: 0;
Expand Down Expand Up @@ -131,16 +139,48 @@ header {
} }
} }


/* ========================================================
About
===================================================== */

.about { .about {
margin: 50px 0; margin: 80px auto;
padding: 15px 20px;
width: 300px;
text-align: center; text-align: center;
color: #ccc; color: darken($bodyBackgroundColor, 20%);
text-shadow: 0 -1px rgba(0, 0, 0, .25); text-shadow: 0 1px rgba(255, 255, 255, .3);
background: rgba(0, 0, 0, .05);
border-radius: 3px;


a { a {
color: #fff; padding: 1px 3px;
margin: 0 -1px;
color: #e8f3fc;
text-decoration: none; text-decoration: none;

text-shadow: 0 -1px rgba(0, 0, 0, .2);
&:hover { border-bottom: 1px solid #fff; } border-radius: 2px;

&:hover {
color: darken($bodyBackgroundColor, 20%);
text-shadow: none;
background: #e8f3fc;
}
}
}

.links {
@include clearfix;

a {
padding: 6px 0;
float: left;
width: 50%;
font-size: 14px;
} }
}

.author {
margin-top: 15px;
font-size: 11px;
} }
60 changes: 51 additions & 9 deletions 10-search-dropdown/css/style.css
Expand Up @@ -58,6 +58,9 @@ table {
* Licensed under the MIT License: * Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
*/ */
/* ========================================================
Page
===================================================== */
body { body {
background: #f7f7f7; background: #f7f7f7;
color: #404040; color: #404040;
Expand Down Expand Up @@ -91,6 +94,9 @@ input {
color: #555860; color: #555860;
} }


/* ========================================================
Search
===================================================== */
.search { .search {
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
Expand Down Expand Up @@ -225,19 +231,55 @@ input {
font-weight: 200; font-weight: 200;
} }


.lt-ie9 .search input {
line-height: 26px;
}

/* ========================================================
About
===================================================== */
.about { .about {
margin: 230px 0 50px; margin: 240px auto 50px;
padding: 15px 20px;
width: 300px;
text-align: center; text-align: center;
color: #bbb; color: #777;
font-size: 14px; text-shadow: 0 1px rgba(255, 255, 255, 0.7);
font-weight: 200; background: rgba(0, 0, 0, 0.05);
text-shadow: 0 1px #fff; border-radius: 3px;
} }
.about a:hover { .about a {
padding: 1px 3px;
margin: 0 -1px;
color: #1c74c8;
text-decoration: none; text-decoration: none;
border-bottom: 1px solid #1e7ad3; border-radius: 2px;
}
.about a:hover {
color: #fff;
text-shadow: 0 1px #0063A6;
background: #0090D2;
} }


.lt-ie9 .search input { .links {
line-height: 26px; zoom: 1;
}
.links:before, .links:after {
content: "";
display: table;
}
.links:after {
clear: both;
}
.links a {
padding: 6px 0;
float: left;
width: 50%;
font-size: 14px;
font-weight: 500;
}

.author {
margin-top: 15px;
font-size: 11px;
} }
12 changes: 8 additions & 4 deletions 10-search-dropdown/index.html
Expand Up @@ -28,10 +28,14 @@
</section> </section>


<section class="about"> <section class="about">
<p> <p class="links">
<a href="http://www.webinterfacelab.com/snippets/search-dropdown" target="_parent">View Snippet</a> &ndash; <a href="http://www.webinterfacelab.com/snippets/search-dropdown" target="_parent">View Article</a>
<a href="http://www.webinterfacelab.com/snippets/search-dropdown.zip" target="_parent">Download Snippet</a> &ndash; <a href="http://www.webinterfacelab.com/snippets/search-dropdown.zip" target="_parent">Download Snippet</a>
<a href="https://github.com/Thibaut/Snippets/tree/master/10-search-dropdown/" target="_parent">View on Github</a> </p>
<p class="author">
&copy; 2012 <a href="http://thibaut.me" target="_blank">Thibaut Courouble</a> &ndash;
<a href="http://www.webinterfacelab.com/mit-license" target="_blank" rel="nofollow">MIT License</a><br>
Original PSD by <a href="http://365psd.com/day/2-253/" target="_blank" rel="nofollow">Blaze Pollard</a>
</p> </p>
</section> </section>
</body> </body>
Expand Down
60 changes: 50 additions & 10 deletions 10-search-dropdown/scss/style.scss
Expand Up @@ -9,6 +9,10 @@
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
*/ */


/* ========================================================
Page
===================================================== */

$siteWidth: 640px; $siteWidth: 640px;


body { body {
Expand Down Expand Up @@ -44,6 +48,10 @@ input {
color: #555860; color: #555860;
} }


/* ========================================================
Search
===================================================== */

.search { .search {
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
Expand Down Expand Up @@ -160,20 +168,52 @@ input {
font-weight: 200; font-weight: 200;
} }


.lt-ie9 {
.search input { line-height: 26px; }
}

/* ========================================================
About
===================================================== */

.about { .about {
margin: 230px 0 50px; margin: 240px auto 50px;
padding: 15px 20px;
width: 300px;
text-align: center; text-align: center;
color: #bbb; color: #777;
font-size: 14px; text-shadow: 0 1px rgba(255, 255, 255, .7);
font-weight: 200; background: rgba(0, 0, 0, .05);
text-shadow: 0 1px #fff; border-radius: 3px;


a:hover { a {
padding: 1px 3px;
margin: 0 -1px;
color: #1c74c8;
text-decoration: none; text-decoration: none;
border-bottom: 1px solid #1e7ad3; border-radius: 2px;

&:hover {
color: #fff;
text-shadow: 0 1px #0063A6;
background: #0090D2;
}
} }
} }


.lt-ie9 { .links {
.search input { line-height: 26px; } @include clearfix;

a {
padding: 6px 0;
float: left;
width: 50%;
font-size: 14px;
font-weight: 500;
}
}

.author {
margin-top: 15px;
font-size: 11px;
} }

0 comments on commit ccb13aa

Please sign in to comment.