Compare commits

...

6 Commits

14 changed files with 223 additions and 66 deletions

View File

@ -72,7 +72,7 @@
// 1. Global // 1. Global
// --------- // ---------
$global-font-size:100%; $global-font-size:100%;
$global-width: 100vw; $global-width: 100vw;
$global-lineheight: 1.5; $global-lineheight: 1.5;
@ -108,6 +108,8 @@ $global-button-cursor: auto;
$global-color-pick-contrast-tolerance: 0; $global-color-pick-contrast-tolerance: 0;
$print-transparent-backgrounds: true; $print-transparent-backgrounds: true;
$print-hrefs: true; $print-hrefs: true;
$global-duration-archive: 0.3s; //duration of css transitions
$global-bezier-archive: cubic-bezier(0, 0, 0.43, 1.49);
@include add-foundation-colors; @include add-foundation-colors;
@ -305,20 +307,20 @@ $button-font-family: inherit;
$button-font-weight: null; $button-font-weight: null;
$button-font-variant: all-petite-caps; $button-font-variant: all-petite-caps;
$button-padding: $global-padding $global-padding*3; $button-padding: $global-padding $global-padding*3;
$button-margin: 0; $button-margin: $global-margin/4;
$button-fill: solid; $button-fill: solid;
$button-background: $primary-color; $button-background: $white;//$primary-color;
$button-background-hover: scale-color($button-background, $lightness: -15%); $button-background-hover: scale-color($primary-color, $lightness: 95%);
$button-color: $white; $button-color: $primary-color;//$white;
$button-color-alt: $black; $button-color-alt: $black;
$button-radius: $global-radius-archive; $button-radius: $global-radius-archive;
$button-border: 1px solid transparent; $button-border: 2px solid $button-color;//1px solid transparent;
$button-hollow-border-width: 2px; $button-hollow-border-width: 2px;
$button-sizes: ( $button-sizes: (
tiny: 0.6rem, tiny: 0.7rem,
small: 0.75rem, small: 0.95rem,
default: 1.2rem, default: 1.6rem,
large: 1.5rem, large: 2.4rem,
); );
$button-palette: $foundation-palette; $button-palette: $foundation-palette;
$button-opacity-disabled: 0.25; $button-opacity-disabled: 0.25;
@ -441,7 +443,7 @@ $flexbox-responsive-breakpoints: true;
// 20. Forms // 20. Forms
// --------- // ---------
$fieldset-border: 1px solid $medium-gray; $fieldset-border: none; //1px solid $medium-gray;
$fieldset-padding: rem-calc(20); $fieldset-padding: rem-calc(20);
$fieldset-margin: rem-calc(18 0); $fieldset-margin: rem-calc(18 0);
$legend-padding: rem-calc(0 3); $legend-padding: rem-calc(0 3);
@ -450,32 +452,32 @@ $helptext-color: $black;
$helptext-font-size: rem-calc(13); $helptext-font-size: rem-calc(13);
$helptext-font-style: italic; $helptext-font-style: italic;
$input-prefix-color: $black; $input-prefix-color: $black;
$input-prefix-background: $light-gray; $input-prefix-background: none; //$light-gray;
$input-prefix-border: 1px solid $medium-gray; $input-prefix-border: none; //1px solid $medium-gray;
$input-prefix-padding: 1rem; $input-prefix-padding: 1rem;
$form-label-color: $black; $form-label-color: $black;
$form-label-font-size: rem-calc(14); $form-label-font-size: rem-calc(14);
$form-label-font-weight: $global-weight-normal; $form-label-font-weight: $global-weight-normal;
$form-label-line-height: 1.8; $form-label-line-height: 1.8;
$select-background: $white; $select-background: $white;
$select-triangle-color: $dark-gray; $select-triangle-color: $primary-color;
$select-radius: $global-radius; $select-radius: $global-radius;
$input-color: $black; $input-color: $primary-color;
$input-placeholder-color: $medium-gray; $input-placeholder-color: scale-color($primary-color, $lightness: 60%); //$antracite-grey;
$input-font-family: inherit; $input-font-family: inherit;
$input-font-size: rem-calc(16); $input-font-size: rem-calc(16);
$input-font-weight: $global-weight-normal; $input-font-weight: $global-weight-normal;
$input-line-height: $global-lineheight; $input-line-height: $global-lineheight;
$input-background: $white; $input-background: scale-color($primary-color, $lightness: 95%);
$input-background-focus: $white; $input-background-focus: scale-color($primary-color, $lightness: 85%);
$input-background-disabled: $light-gray; $input-background-disabled: $light-gray;
$input-border: 1px solid $medium-gray; $input-border: none; //1px solid $medium-gray;
$input-border-focus: 1px solid $dark-gray; $input-border-focus: none; // 1px solid $dark-gray;
$input-padding: $form-spacing / 2; $input-padding: $form-spacing / 2;
$input-shadow: inset 0 1px 2px rgba($black, 0.1); $input-shadow: none; //inset 0 1px 2px rgba($black, 0.1);
$input-shadow-focus: 0 0 5px $medium-gray; $input-shadow-focus: none; //0 0 5px $medium-gray;
$input-cursor-disabled: not-allowed; $input-cursor-disabled: not-allowed;
$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out; $input-transition: none; //box-shadow 0.5s, border-color 0.25s ease-in-out;
$input-number-spinners: true; $input-number-spinners: true;
$input-radius: $global-radius; $input-radius: $global-radius;
$form-button-radius: $global-radius; $form-button-radius: $global-radius;
@ -906,4 +908,3 @@ $grid-padding-gutters: $grid-margin-gutters;
$grid-container-padding: $grid-padding-gutters; $grid-container-padding: $grid-padding-gutters;
$grid-container-max: $global-width; $grid-container-max: $global-width;
$xy-block-grid-max: 8; $xy-block-grid-max: 8;

View File

@ -69,7 +69,7 @@
// global project styles // global project styles
@import "global/wp-overrides"; //errors @import "global/wp-overrides"; //errors
@import "global/wp-admin"; //errors @import "global/wp-admin"; //errors
@import "global/typography"; @import "global/typography";
@import "global/gutenberg"; @import "global/gutenberg";
@import "global/colors"; @import "global/colors";
@ -86,6 +86,7 @@
// Componentes // Componentes
@import "components/links"; @import "components/links";
@import "components/featured-image"; @import "components/featured-image";
@import "components/forms";
@import "components/dividers"; @import "components/dividers";
@import "components/cards"; @import "components/cards";
@import "components/buttons"; @import "components/buttons";
@ -111,4 +112,4 @@
// gulp.task('icons', function() { // gulp.task('icons', function() {
// return gulp.src('node_modules/@fortawesome/fontawesome-free/webfonts/*') // return gulp.src('node_modules/@fortawesome/fontawesome-free/webfonts/*')
// .pipe(gulp.dest(dist+'/assets/webfonts/')); // .pipe(gulp.dest(dist+'/assets/webfonts/'));
// }); // });

View File

@ -1,5 +1,23 @@
button,.button { button,.button {
min-width: 20rem; &:not(.large,.small,.tiny){
// min-width: 20rem;
}
&.primary {
color: $white;
}
&.success {
border-color: $success-color;
}
&.alert {
border-color: $alert-color;
color: $white;
&:hover{
color:$white;
}
}
&.secondary {
border-color: $secondary-color;
}
} }
.hero { .hero {
button,.button { button,.button {
@ -8,11 +26,23 @@ button,.button {
color: $button-color-alt; color: $button-color-alt;
font-size: $global-font-size*1.3; font-size: $global-font-size*1.3;
border-color: $button-color-alt; border-color: $button-color-alt;
border-radius: 4rem; border-radius: $global-radius-archive*2;
// margin: $global-margin*2 0;
&:hover{ &:hover{
color: $anchor-color; color: $anchor-color;
border-color: $anchor-color; border-color: $anchor-color;
} }
} }
} }
.search {
.button {
border-color: $primary-color;
}
button.appear{
min-width: unset;
background-color: $primary-color;
color: $white;
border-radius:$global-radius-archive;
// padding:0;
border: none;
}
}

View File

@ -0,0 +1,29 @@
.search{
.button{
border-color: $primary-color;
}
button.appear{
display:none;
}
input:not(:placeholder-shown) {
+ button {
display: block;
z-index: 2;
}
}
.hollow {
border-color: $primary-color;
color: $primary-color;
&::after {
}
&::placeholder {
color: scale-color($primary-color, $lightness: -20%);
}
&:hover {
background-color: scale-color($primary-color, $lightness: 95%);
}
&:active {
background-color: scale-color($primary-color, $lightness: 85%);
}
}
}

View File

@ -12,7 +12,7 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
} }
&.archive{ &.arc-hive{
&::before { &::before {
max-width: 10rem; max-width: 10rem;
background-image: url('../img/ARC-HIVE-logo.svg'); background-image: url('../img/ARC-HIVE-logo.svg');

View File

@ -1,20 +1,16 @@
//content { //content {
// general styles // general styles
//---------------- //----------------
// //
// mods on fonts and typography // mods on fonts and typography
// not in foundation variables // not in foundation variables
// ----------------------------- // -----------------------------
h1,h2,h3,h4,h5,h6, h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h4,.h5,.h6, .h1,.h2,.h3,.h4,.h5,.h6,
button,.button, button,.button,
header nav, header nav {
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h4,.h5,.h6 {
font-variant:all-small-caps; font-variant:all-small-caps;
a { a {
color: $body-font-color; color: $body-font-color;
@ -30,7 +26,7 @@
} }
} }
} }
// //
// main block // main block
//-------------- //--------------
@ -73,7 +69,7 @@
// //
// news category // news category
//-------------- //--------------
.news,.news-category { .news,.news-category {
@include xy-grid; @include xy-grid;
header,main,aside { header,main,aside {
@ -82,9 +78,10 @@
@include xy-cell(12); @include xy-cell(12);
@include flex; @include flex;
@include flex-align(center,top); @include flex-align(center,top);
} padding-top: $global-padding*3;
@include breakpoint(small){ h3 {
padding-top: $global-padding*3; line-height: $global-lineheight/1.5;
}
} }
} }
main { main {
@ -120,7 +117,7 @@
} }
} }
.date { .date {
height: 1rem; // height: 1rem;
padding-top: $global-padding*2; padding-top: $global-padding*2;
} }
.entry-title { .entry-title {
@ -128,7 +125,7 @@
line-height: 0.7; line-height: 0.7;
font-size: $global-font-size*1.5; font-size: $global-font-size*1.5;
} }
} }
} }
aside { aside {
@ -149,18 +146,19 @@
// //
// collections category // collections category
//-------------- //--------------
.collections-list { .collections-list {
@include xy-grid; @include xy-grid;
header,main,aside { header,main,aside {
@include xy-cell(12); @include xy-cell(12);
@include flex; @include flex;
@include flex-align(center,top); @include flex-align(center,top);
padding: $global-padding*3 0; padding: $global-padding*2 0;
} }
header { header {
margin-top: 2*$global-margin;
border-top: 1px solid $body-font-color; border-top: 1px solid $body-font-color;
padding: $global-padding*4 0; padding: $global-padding*2 0;
} }
main { main {
@include xy-grid; @include xy-grid;
@ -182,7 +180,7 @@
// end news category // end news category
// //
// partners // partners
// for big announcemnts // for big announcemnts
//--------------------- //---------------------
@ -229,14 +227,14 @@
width: 100vw; width: 100vw;
margin: 0; margin: 0;
.textwidget { .textwidget {
padding: $global-padding * 2; padding: $global-padding * 2;
} }
} }
@include breakpoint(medium){ @include breakpoint(medium){
.textwidget { .textwidget {
max-width: 50rem; max-width: 50rem;
margin:auto; margin:auto;
padding: $global-padding * 2; padding: $global-padding * 2;
font-size: $global-font-size*1.3; font-size: $global-font-size*1.3;
} }
} }
@ -256,19 +254,19 @@
} }
.textwidget { .textwidget {
font-size: $global-font-size*1.2; font-size: $global-font-size*1.2;
padding: $global-padding * 2; padding: $global-padding * 2;
} }
} }
@include breakpoint(xlarge){ @include breakpoint(xlarge){
.textwidget { .textwidget {
font-size: $global-font-size*1.3; font-size: $global-font-size*1.3;
padding: $global-padding*3; padding: $global-padding*3;
} }
} }
@include breakpoint(xxlarge){ @include breakpoint(xxlarge){
.textwidget { .textwidget {
font-size: $global-font-size*1.6; font-size: $global-font-size*1.6;
padding: $global-padding*3; padding: $global-padding*3;
} }
} }
&:first-child { &:first-child {
@ -311,7 +309,40 @@
} }
} }
} }
} &.omeka {
border-top: none;
max-height: unset;
@include breakpoint(small){
.slides {
background-color: $secondary-color;
.slide {
flex-direction: column;
align-content: center;
align-self: center;
margin: $global-margin auto;
&:first-child {
color: unset;
background-color: unset;
font-variant:all-small-caps;
}
figure {
margin: 0 auto;
display:flex;
justify-content: center;
}
}
}
}
aside {
background-color: $white;
flex-direction: column;
align-content: center;
h2 {
margin: $global-margin;
}
}
}
}
//end hero //end hero
//} //}

View File

@ -10,7 +10,7 @@
<link rel="stylesheet" href="{{root}}assets/css/app.css"> <link rel="stylesheet" href="{{root}}assets/css/app.css">
</head> </head>
<body> <body>
<content class=""> <content class="">
<header> <header>
@ -33,6 +33,5 @@
</content> </content>
<script src="{{root}}assets/js/app.js"></script> <script src="{{root}}assets/js/app.js"></script>
</div>
</body> </body>
</html> </html>

35
src/layouts/omeka.html Normal file
View File

@ -0,0 +1,35 @@
{{!-- This is the base layout for your project, and will be used on every page unless specified. --}}
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>arcHIVE html/css development</title>
<link rel="stylesheet" href="{{root}}assets/css/app.css">
</head>
<body>
<content class="">
<header>
{{> header}}
</header>
{{> section-hero-omeka}}
<article>
<main>
{{> body}}
</main>
<aside>
</aside>
</article>
<footer>
{{> footer}}
</footer>
</content>
<script src="{{root}}assets/js/app.js"></script>
</body>
</html>

View File

@ -7,4 +7,3 @@
{{> section-partners}} {{> section-partners}}
{{> section-breaker}} {{> section-breaker}}
{{> section-collections}} {{> section-collections}}

View File

@ -0,0 +1,5 @@
---
layout: omeka
---
{{> section-collections-latest}}

View File

@ -1,7 +1,7 @@
<footer class=""> <footer class="">
<section class="subsection"> <section class="subsection">
<aside class="site-brand archive"> <aside class="site-brand arc-hive">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class=""> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="">
<h1 class="site-name"> <h1 class="site-name">
<?php bloginfo( 'name' ); ?> <?php bloginfo( 'name' ); ?>
@ -59,4 +59,3 @@
</aside> </aside>
</section> </section>
</footer> </footer>

View File

@ -1,5 +1,5 @@
<main class=""> <main class="">
<a href="#" role="banner" class="site-brand"> <a href="/" role="banner" class="site-brand arc-hive">
<h1 class="site-name">arcHIVE</h1> <h1 class="site-name">arcHIVE</h1>
<h2 class="site-description">an integrative digital bio-art platform</h2> <h2 class="site-description">an integrative digital bio-art platform</h2>
</a> </a>
@ -8,10 +8,10 @@
<menu class=""> <menu class="">
<!-- Content --> <!-- Content -->
<ul class="menu"> <ul class="menu">
<li><a href="#">News</a></li> <li><a href="/">News</a></li>
<li><a href="#">About</a></li> <li><a href="omeka-index.html">Omeka</a></li>
<li><a href="#">Contact</a></li> <li><a href="styleguide.html">StyleGuide</a></li>
<li><a href="#">Search</a></li> <li><a href="kitchensink.html">KitchenSink</a></li>
</ul> </ul>
</menu> </menu>
</nav> </nav>

View File

@ -0,0 +1,7 @@
<form class="search">
<label>Search</label>
<div class="input-group">
<input type="text" placeholder="search" class="input-group-field" />
<button type="submit">Go</button>
</div>
</form>

View File

@ -0,0 +1,21 @@
<section class="hero omeka">
<main class="slides">
<section class="slide">
<p>ARC-HIVE is a curatorial space that gathers artworks that work in the continuum of biomateriality, from DNA, proteins, and cells to full organisms. They can be manipulation, modification or (re)creation of life and living processes.</p>
<figure>
<img src="{{root}}assets/img/ARC-HIVE-logo.svg" class="logo"/>
</figure>
</section>
</main>
<aside>
<h2>collections</h2>
<!-- https://codepen.io/liamj/pen/vYYLGZj -->
<form class="search">
<div class="input-group">
<input type="text" placeholder="search" class="input-group-field button hollow" />
<button class="appear button" type="submit">Go</button>
</div>
</form>
</aside>
</section>