Transitions, fixes

This commit is contained in:
nikolark committed 2013-05-05 23:17:37 +02:00
1 parent 4a9484a846
commit 52a2f8813a
4 files changed
+57 -7

No files matched your search

+11 -3
View File
@@ -516,14 +516,19 @@ table tr th, table tr td { padding: 0.5625em 0.625em; font-size: 0.875em; color:
table tr.even, table tr.alt, table tr:nth-of-type(even) { background: #f9f9f9; }
table thead tr th, table tfoot tr th, table tbody tr td, table tr td, table tfoot tr td { display: table-cell; line-height: 1.125em; }
body a { -webkit-transition: background-color 0.15s ease, color 0.15s ease; -moz-transition: background-color 0.15s ease, color 0.15s ease; -o-transition: background-color 0.15s ease, color 0.15s ease; transition: background-color 0.15s ease, color 0.15s ease; }
body a:hover { color: #ff005c; }
header.header { margin-top: 2em; margin-bottom: 2em; }
header.header .date { color: #007aff; font-size: 3.4em; text-transform: uppercase; font-weight: bold; margin-bottom: 10px; display: inline-block; }
header.header .logo img { position: relative; bottom: -15px; left: 10px; }
header.header .nav-menu { margin: 0; padding: 0; border: 0; overflow: hidden; *zoom: 1; margin: 0 auto; background-color: #007aff; }
header.header .nav-menu li { list-style-image: none; list-style-type: none; margin-left: 0; display: -moz-inline-stack; display: inline-block; vertical-align: middle; *vertical-align: auto; zoom: 1; *display: inline; white-space: nowrap; }
header.header .nav-menu a { font-size: 1.6em; display: inline-block; padding: .45em; color: white; text-transform: uppercase; }
header.header .nav-menu a:hover { background-color: #ff005c; }
.highlight a { height: 280px; line-height: 1.1; font-size: 2.5em; font-weight: bold; text-transform: uppercase; text-align: center; display: block; color: white; background-color: #ff005c; }
.highlight a:hover { color: white; background-color: #007aff; }
.highlight a span { display: inline-block; padding-top: 30px; }
.highlight a span.larger { padding-top: 55px; font-size: 1.6em; }
.highlight a .number { font-size: 3em; }
@@ -531,11 +536,14 @@ header.header .nav-menu a { font-size: 1.6em; display: inline-block; padding: .4
.separator { height: 2px; background-color: #ff005c; margin: 2em 0; }
.article-header h1 a { color: inherit; }
.article-header h1 a:hover { color: #007aff; }
.footer { min-width: 100%; text-align: center; height: 500px; background-color: #007aff; }
.footer #inner-footer img { margin-top: 200px; }
.footer { min-width: 100%; text-align: center; height: 400px; background-color: #007aff; }
.footer #inner-footer img { margin-top: 100px; }
.flying-megawhale { width: 719px; height: 582px; background-image: url("../images/megawhale.png"); background-size: 719px 582px; background-repeat: no-repeat; margin: auto; margin-top: 4em; position: relative; top: 50px; z-index: -1; }
.flying-megawhale { width: 719px; height: 582px; background-image: url("../images/megawhale.png"); background-size: 100% 100%; background-repeat: no-repeat; margin: auto; margin-top: 4em; position: relative; top: 50px; z-index: -1; }
.wave { position: fixed; left: 0px; bottom: 0px; height: 30px; width: 100%; background-color: #007aff; }
.wave .wavetop { position: relative; bottom: 12px; height: 12px; background-image: url("../images/wave_top.png"); background-size: 48px 12px; background-repeat: repeat-x; width: 100%; }
.row { /* FIXME: responsive */ width: 1000px; max-width: 1000px; }
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="flying-megawhale"></div>
<footer class="footer" role="contentinfo">
<div id="inner-footer">
<img src="<?php echo get_template_directory_uri(); ?>/images/streamer.png" />
<a href="http://studentersamfundet.no/"><img src="<?php echo get_template_directory_uri(); ?>/images/streamer.png" /></a>
<!--<nav role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_class' => 'footer-menu' ) ); ?>
</nav>-->
+12
View File
@@ -22,5 +22,17 @@ add_theme_support( 'post-thumbnails' );
</script>
*/
/* Modify the output of list items in the header navigation menu.
*
* Remove the whitespace between HTML tags. Required specifically for better
* behavior when list items are inline-block in our main nav menu and need
* the browsers to adhere to exact margins.
*
* NOTE: filter name changes depending on your menu - this one works for 'hoved'
*/
function prefix_remove_menu_item_whitespace( $html_content ) {
return preg_replace( '/>\s+</', '><', $html_content );
}
add_filter( 'wp_nav_menu_hoved_items', 'prefix_remove_menu_item_whitespace' );
?>
+33 -3
View File
@@ -38,7 +38,20 @@
// @import "foundation/components/dropdown";
@import "compass/typography/lists/inline-block-list";
@import "compass/css3/transform";
@import "compass/css3/transition";
body {
a {
@include transition(
background-color .15s ease,
color .15s ease);
&:hover {
color: $secondary-color;
}
}
}
header.header {
margin-top: 2em;
margin-bottom: 2em;
@@ -68,6 +81,10 @@ header.header {
padding: .45em;
color: white;
text-transform: uppercase;
&:hover {
background-color: $secondary-color;
}
}
}
}
@@ -83,6 +100,10 @@ header.header {
color: white;
background-color: $secondary-color;
&:hover {
color: white;
background-color: $primary-color;
}
span {
display: inline-block;
padding-top: 30px;
@@ -105,16 +126,20 @@ header.header {
.article-header {
h1 a {
color: inherit;
&:hover {
color: $primary-color;
}
}
}
.footer {
min-width: 100%;
text-align: center;
height: 500px;
height: 400px;
background-color: $primary-color;
#inner-footer {
img {
margin-top: 200px;
margin-top: 100px;
}
}
}
@@ -122,7 +147,7 @@ header.header {
width: 719px;
height: 582px;
background-image: url("../images/megawhale.png");
background-size: 719px 582px;
background-size: 100% 100%;
background-repeat: no-repeat;
margin: auto;
margin-top: 4em;
@@ -148,3 +173,8 @@ header.header {
width:100%;
}
}
.row {
/* FIXME: responsive */
width: 1000px;
max-width: 1000px;
}