Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/icons/glass--white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions gulp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ module.exports = function () {
src: basePaths.assets + 'favicons/',
dest: basePaths.dest
},
icons: {
src: basePaths.assets + 'icons/',
dest: basePaths.dest + 'assets/icons/'
},
fonts: {
src: basePaths.assets + 'fonts/',
dest: basePaths.dest + 'assets/fonts/'
Expand All @@ -57,6 +61,7 @@ module.exports = function () {
images: paths.images.src + '**/*',
logos: paths.logos.src + '**/*',
favicons: paths.favicons.src + '**/*',
icons: paths.icons.src + '**/*',
fonts: paths.fonts.src + '**/*'
};

Expand Down
8 changes: 7 additions & 1 deletion gulp/tasks/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module.exports = function (gulp, $, config) {
var logosDest = config.paths.logos.dest;
var faviconsSrc = config.appFiles.favicons;
var faviconsDest = config.paths.favicons.dest;
var iconsSrc = config.appFiles.icons;
var iconsDest = config.paths.icons.dest;
var fontsSrc = config.appFiles.fonts;
var fontsDest = config.paths.fonts.dest;

Expand All @@ -24,10 +26,14 @@ module.exports = function (gulp, $, config) {
.pipe($.changed(faviconsSrc))
.pipe(gulp.dest(faviconsDest));

var iconsSt = gulp.src(iconsSrc)
.pipe($.changed(iconsSrc))
.pipe(gulp.dest(iconsDest));

var fontsSt = gulp.src(fontsSrc)
.pipe($.changed(fontsSrc))
.pipe(gulp.dest(fontsDest));

return merge(imagesSt, logosSt, faviconsSt, fontsSt);
return merge(imagesSt, logosSt, faviconsSt, iconsSt, fontsSt);
};
};
2 changes: 2 additions & 0 deletions src/modules/search/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data: {}
options: {}
4 changes: 4 additions & 0 deletions src/modules/search/markup.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mixin search(data, options)
form.search(class=attributes.class, method='get', action='#')
input.search-input(type='text', name="query")
span.search-icon(type="submit")
2 changes: 2 additions & 0 deletions src/modules/search/spec.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
h2 Search
+search()
Binary file added src/modules/search/spec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions src/modules/search/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
$search-icon-size: 15px !default;
$search-icon-glass-url: url(../assets/icons/glass--white.png);

//spaces
$search-spacing: 12px !default;
$search-spacing-half: 0.5 * $search-spacing;
$search-spacing-double: 2 * $search-spacing;

//colors
$search-font-color: #FFF !default;

.search {
display: flex;
&-input {
flex-grow: 1;

padding: $search-spacing-half $search-spacing;
background-color: transparent;

border: 1px solid rgba($c-white, 0.5);
transition: 100ms border ease;
border-radius: 1.5rem;

color: $search-font-color;
&:focus {
border: 1px solid $c-white;
outline: none;
}
}
&-icon {
align-self: center;
opacity: 0.5;
transition: 100ms opacity ease;

background: $search-icon-glass-url;
background-size: cover;
background-repeat: no-repeat;

width: $search-icon-size;
height: $search-icon-size;

margin-left: $search-spacing-double;
}

&-input:focus ~ &-icon {
opacity: 1;
}
}
20 changes: 20 additions & 0 deletions src/styles/_0.settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@ $breakpoints: (
"print" : "print"
);

/**
* Defines the spaces
*/

// general
$s: 12px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here add

$i-spacing: $s;

$s-half: 0.5 * $s;
$s-double: 2 * $s;

// search
$search-spacing: $s;


/**
* Defines Icon Styles
*/

//search
$search-icon-size: 15px;
$search-icon-glass-url: url(../assets/icons/glass--white.png);
3 changes: 2 additions & 1 deletion src/styles/_2.color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ $c-red: #E00202;

$c-cover: rgba(0,0,0,0.5);


// search
$search-font-color: $c-white;