Skip to content

Commit

Permalink
CSS updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianf committed Sep 8, 2014
1 parent 20eb83d commit a544476
Show file tree
Hide file tree
Showing 16 changed files with 147 additions and 37 deletions.
19 changes: 16 additions & 3 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<?php get_header(); ?>

<style type="text/css">
.error404 .container {

}
.error404 #searchform {
margin: 80px 0;
}
</style>

<div class="uw-hero-image">

</div>
<div role='main' class='container uw-body'>
<div class="row show-grid">
<div class="col-md-8 col-md-offset-2">

<!-- TODO: finalize the 404 look for the new theme. This is the old theme
<div id="parallax" class="parallax-viewport">
Expand All @@ -25,14 +36,14 @@
<div class='text-center'>
<?php get_search_form(); ?>
</div>
<div class="row show-grid four-oh-four">
<div class="col-md-4 col-md-offset-3">
<div class="row show-grid">
<div class="col-md-6">
<h3>Not what you were expecting?</h3>
<p>Dubs tells us this page might not be what you had in mind when you set out on your journey through the UW Web. Don&#146;t worry, you&#146;re not in the Dawg House! Here are some of Dubs&#146; favorite pages if you feel like exploring: </p>

</div>

<div class="col-md-3">
<div class="col-md-5 col-md-offset-1">
<ul>
<li><a href="//www.washington.edu">UW home page</a></li>
<li><a href="//www.washington.edu/discover/">Discover the UW</a></li>
Expand All @@ -44,6 +55,8 @@
</div>
</div><!-- four-oh-four -->

</div></div>

</div><!-- uw-body -->

<?php get_footer(); ?>
8 changes: 4 additions & 4 deletions js/site.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -8813,7 +8813,7 @@ UW.QuickLink = Backbone.Model.extend({
has_icon: false,
classes: ''
},

initialize: function () {
//hacktacular. Need to stop the collection making a model with url = collection.url somehow
if (this.get('link_url') !== undefined){
Expand All @@ -8835,7 +8835,7 @@ UW.QuickLinkView = Backbone.View.extend({

create_menu_item : function ()
{
item = this.model.toJSON();
var item = this.model.toJSON();
this.$menu_item = $(_.template( this.menu_template, item ));
}
});
Expand Down Expand Up @@ -8870,15 +8870,15 @@ UW.QuickLinks = Backbone.Collection.extend({
this.add(this.normalize_data(this.default_links[i]));
}
},

normalize_data: function (holder) {
holder.link_url = holder.url;
delete holder.url;
if (holder.classes !== 'undefined'){
holder.classes = holder.classes.join(' ');
if (holder.classes !== '') {
holder.has_icon = true;
}
}
}
return holder;
},
Expand Down
2 changes: 1 addition & 1 deletion js/site.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,5 @@ Version: 0.1
@import "less/widgets/recent-entries.less";
@import "less/widgets/yarpp_widget.less";
@import "less/widgets/menu.less";
@import "less/widgets/pic-text.less";

13 changes: 13 additions & 0 deletions less/uw.body-content.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Sets bulleted items to a default padding:

ul {
padding-left: 25px;
}

// Wrapper

.uw-body {
Expand Down Expand Up @@ -69,6 +75,7 @@
margin-bottom: 80px;
margin-top: 40px;
position: relative;
//box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
&:before,
&:after {
content: "";
Expand Down Expand Up @@ -136,4 +143,10 @@
}
}

@media only screen and (max-width : 767px) {

.widget {
padding: 0;
}

}
28 changes: 16 additions & 12 deletions less/uw.boxes.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
table-layout: fixed;
width: 100%;
border-spacing: 20px;
margin: 20px 0 40px;
margin: 0 0 40px;
&.two {
.tile {
width: 47%;
Expand Down Expand Up @@ -60,19 +60,23 @@


/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
.box {
overflow: visible;
&.two {
.tile {
div {
margin: 0 -21px;
@media only screen and (max-width : 767px) {
.box-outer {
.box {
overflow: visible;
&.two,
&.one,
&.three {
.tile {
div {
margin: 0 -21px;
}
display: block;
width: 100%;
margin: 0 0 30px 0;
padding: 0 20px 20px;
}
width: 100%;
margin: 0 0 30px 0;
padding: 0 20px 20px;
}
}
}

}
15 changes: 15 additions & 0 deletions less/uw.buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ a.uw-btn {
position: relative;
background-image: none !important;
border-bottom: none;
margin-bottom: 25px;
margin-right: 55px;
&.btn-sm {
padding: 10px 16px;
font-size: 14px;
Expand Down Expand Up @@ -44,6 +46,19 @@ a.uw-btn {
background-color: lighten(@darkgold, 10%);
}
}
&.btn-purple {
background-color: @purple;
color: white;
&:hover {
background-color: darken(@purple, 5%);
}
&:before {
background-color: darken(@purple, 5%);
}
&:hover:before {
background-color: darken(@purple, 20%);
}
}
&:after {
content: "";
position: absolute;
Expand Down
12 changes: 8 additions & 4 deletions less/uw.images.less
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Image Handling

.alignleft,
.alignright,
.alignnone {
float: left;
margin: 20px 50px 50px -130px;
&.size-large {
width:305px !important;
height: auto;
}
&.size-Full {
&.size-Full,
&.size-full {
margin-left: 0;
width: 100% !important;
height: auto;
Expand All @@ -21,6 +21,11 @@

}
}
.alignright {
float: right;
margin: 20px 20px 20px 60px;
}


.wp-caption-text {
font-size: 15px;
Expand All @@ -38,10 +43,9 @@



@media only screen and (max-width : 1300px) {
@media only screen and (max-width : 1400px) {

.alignleft,
.alignright,
.alignnone {
float: left;
margin: 20px 50px 50px 0px;
Expand Down
6 changes: 6 additions & 0 deletions less/widgets/pic-text.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.pic-text-widget {
img {
width: 100%;
height: auto;
}
}
3 changes: 3 additions & 0 deletions less/widgets/recent-entries.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
padding-top: 5px;
overflow: hidden;
margin-bottom: 10px;
//a {
// color: @darkgray;
//}
}
p {
margin: 0;
Expand Down
1 change: 1 addition & 0 deletions less/widgets/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
position: absolute;
top: 10px;
left: 18px;
visibility: hidden;
}
.assistive-text {
z-index: -1;
Expand Down
3 changes: 3 additions & 0 deletions less/widgets/yarpp_widget.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@
display: block;
overflow: hidden;
}
small {
display: block;
}
}
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion setup/class.button-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ function button_handler($atts, $content)
$attributes = (object) $atts;

$classes = array('uw-btn');

$btnColors = shortcode_atts( array(
'color' => 'none',
), $atts );


$color = 'btn-' . $btnColors['color'];

if(empty($content)){
echo 'No text in this button';
Expand All @@ -45,6 +52,6 @@ function button_handler($atts, $content)

$class_string = implode($classes, ' ');

return sprintf('<a class="%s" href="%s">%s</a>', $class_string, $url, $content);
return sprintf('<a class="%s %s" href="%s">%s</a>', $class_string, $color, $url, $content);
}
}
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

Loading

0 comments on commit a544476

Please sign in to comment.