Skip to content

Commit

Permalink
added media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Risseeuw committed Mar 1, 2016
1 parent a5615ab commit 8c15bc3
Show file tree
Hide file tree
Showing 20 changed files with 130 additions and 53 deletions.
2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion content/1-i-want-to-make/about.txt
Expand Up @@ -45,4 +45,8 @@ Layout: two-col

----

Videolink:
Videolink:

----

Thumb: 1
6 changes: 5 additions & 1 deletion content/2-how-to-document/default.txt
Expand Up @@ -44,4 +44,8 @@ Well-documented work may get featured on our website, reaching thousands of visi

----

Layout: two-col
Layout: two-col

----

Thumb: 1
4 changes: 2 additions & 2 deletions content/3-open-day/default.txt
Expand Up @@ -2,11 +2,11 @@ Heroimage: pme_1.jpg

----

Textcolor: #000000
Textcolor: #333333

----

Pagecolor: #f5d418
Pagecolor: #faf0ad

----

Expand Down
4 changes: 2 additions & 2 deletions content/4-fab-academy/default.txt
@@ -1,8 +1,8 @@
Textcolor: #ffffff
Textcolor: #333333

----

Pagecolor: #7c9efc
Pagecolor: #c4d3ff

----

Expand Down
8 changes: 6 additions & 2 deletions content/5-projects/openthings.txt
Expand Up @@ -42,8 +42,12 @@ Border:

----

Textcolor: #ffffff
Textcolor: #333333

----

Pagecolor: #59a356
Pagecolor: #a8e0a6

----

Thumb: 0
Binary file added content/5-projects/pme_5.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions content/6-faq/default.txt
Expand Up @@ -2,11 +2,11 @@ Heroimage: questions.jpg

----

Textcolor: #ffffff
Textcolor: #333333

----

Pagecolor: #242323
Pagecolor: #f0f0f0

----

Expand Down
6 changes: 3 additions & 3 deletions site/accounts/martin.php
Expand Up @@ -7,8 +7,8 @@
language: en
role: admin
history:
- home
- machines/embroidery-machine
- projects
- how-to-document
- i-want-to-make
- faq
- fab-academy
- open-day
6 changes: 5 additions & 1 deletion site/blueprints/default.php
Expand Up @@ -16,6 +16,10 @@
pagecolor:
label: Section color for the homepage
type: color
thumb:
label: Thumb
type: checkbox
text: Do you want to display the thumb image?
title:
label: Title
type: text
Expand All @@ -41,4 +45,4 @@
three-col: Three column
three-col-two: Three column 2x
four-col: Four column
four-col-three: Four column 3x
four-col-three: Four column 3x
4 changes: 4 additions & 0 deletions site/blueprints/machine.php
Expand Up @@ -26,6 +26,10 @@
pagecolor:
label: Section color for the homepage
type: color
thumb:
label: Thumb
type: checkbox
text: Do you want to display the thumb image?
title:
label: Title
type: text
Expand Down
4 changes: 4 additions & 0 deletions site/blueprints/machines.php
Expand Up @@ -17,6 +17,10 @@
pagecolor:
label: Section color for the homepage
type: color
thumb:
label: Thumb
type: checkbox
text: Do you want to display the thumb image?

videolink:
label: Link to video
Expand Down
4 changes: 4 additions & 0 deletions site/blueprints/openthings.php
Expand Up @@ -22,6 +22,10 @@
pagecolor:
label: Section color for the homepage
type: color
thumb:
label: Thumb
type: checkbox
text: Do you want to display the thumb image?
api:
label: Link to the API
type: text
Expand Down
4 changes: 1 addition & 3 deletions site/snippets/footer.php
Expand Up @@ -25,9 +25,7 @@
<p class="right">
Made with &hearts; by <a href="http://www.waag.org">Waag Society</a> - Check out the code on <a href="https://github.com/waagsociety/fablab-website">github</a>
</p>
<a href="http://www.waag.org">

<ul class="logo_bar">
<ul class="logo_bar left">
<li>
<a href="https://openthings.wiki/tag/47" class="openthings_header_logo">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
Expand Down
2 changes: 1 addition & 1 deletion site/snippets/machines.php
@@ -1,4 +1,4 @@
<ul class="machine-grid changecolorblack">
<ul class="machine-grid">
<?php foreach($pages->find('machines')->children()->visible() as $p): ?>
<a href="<?php echo $p->url() ?>" class="left machineThumb" style="background-color: <?php echo html($p->pagecolor()) ?>;">
<li >
Expand Down
8 changes: 6 additions & 2 deletions site/templates/home.php
@@ -1,12 +1,16 @@
<?php snippet('header') ?>

<main class="main" role="main">
<main class="main home" role="main">
<?php foreach($pages->visible() as $section): ?>
<a class="<?php echo html($section->layout()) ?> left item" href="<?php echo $section->url() ?>" style="color: <?php echo html($section->textcolor()) ?>; background-color: <?php echo html($section->pagecolor()) ?>;">
<?php if($section->thumb() == '1'): ?>
<header class="thumbheader" style="background-image: url(<?php echo url(); ?>/content/<?php echo $section->diruri() ?>/<?php echo html($section->heroimage()) ?>); background-color: <?php echo html($section->pagecolor()) ?>;">
</header>
<?php endif ?>
<section>
<h1 class="beta"><?php echo html($section->title()) ?></h1>
<p><?php echo html($section->intro()) ?></p>
</section>
</section>
</a>
<?php endforeach ?>
</main>
Expand Down
2 changes: 1 addition & 1 deletion site/templates/machines.php
Expand Up @@ -5,7 +5,7 @@

<?php snippet('header') ?>

<main class="main defaultPage changecolorblack" role="main">
<main class="main defaultPage" role="main">
<?php if($page->text()->isNotEmpty()): ?>
<div class="text">
<?php echo $page->text()->kirbytext() ?>
Expand Down
50 changes: 43 additions & 7 deletions src/stylus/partials/development.styl
Expand Up @@ -53,6 +53,10 @@
// transform translateY(-5px)
// box-shadow 0 10px 10px rgba(50,55,55,.5)
// z-index 2
&:nth-of-type(1)
min-height 50vh
.main.home
padding 2% 2% 0 2%
.text
width 100%
padding 80px 0
Expand Down Expand Up @@ -116,10 +120,11 @@
.machine-grid
display flex
flex-wrap wrap
align-content flex-start
align-content flex-end
a
width 30.66%
margin 0 0 2% 2%
flex-grow 1
li
display inline-block

Expand All @@ -131,6 +136,9 @@
height 100%
width 100%
padding-top 2%
display flex
flex-wrap wrap
align-content flex-end
a
transition .25s ease-in-out
width 30.66%
Expand Down Expand Up @@ -188,11 +196,11 @@ footer
font-size 1em
svg
stroke none
p
position absolute
right 150px
top 50%;
transform translateY(-50%);
// p
// position absolute
// right 150px
// top 50%;
// transform translateY(-50%);
svg
max-width 150px
float left
Expand Down Expand Up @@ -262,7 +270,7 @@ footer
.page_footer
background projectColor
width 100%
padding 50px 150px
padding 50px
text-align center

.booking_reservering
Expand Down Expand Up @@ -338,6 +346,34 @@ header
path
fill white

.thumbheader
background-size cover
position absolute
background-repeat no-repeat
background-position center center
height 100%
width 100%
left 0
top 0
transition .6s ease-in-out
&:before
position absolute
width 100%
height 100%
content ""
background-color inherit;
opacity .9
transition .6s ease-in-out

.item
overflow hidden
&:hover
.thumbheader
transform scale(1.5)
&:before
background-color inherit;
opacity .4

::-webkit-input-placeholder
color: white
::-moz-placeholder
Expand Down

0 comments on commit 8c15bc3

Please sign in to comment.