Update existing elements to match Bulma
This commit is contained in:
parent
96038c3286
commit
549bd070c8
|
@ -32,6 +32,12 @@
|
|||
&.vertical-#{$value}
|
||||
vertical-align: #{$value}
|
||||
|
||||
@each $value in 2, 3, 4, 5
|
||||
@for $value from 2 through 5
|
||||
.is-#{$value}
|
||||
width: calc(100% / #{$value})
|
||||
|
||||
$properties: ( mb: 'margin-bottom', ml: 'margin-left', mr: 'margin-right', mt: 'margin-top', pb: 'padding-bottom', pl: 'padding-left', pr: 'padding-right', pt: 'padding-top' )
|
||||
@each $key, $property in $properties
|
||||
@for $value from 1 through 5
|
||||
.#{$key}-#{$value}
|
||||
#{$property}: #{$value}em !important
|
||||
|
|
2
assets/sass/base/_utilities.sass
Normal file
2
assets/sass/base/_utilities.sass
Normal file
|
@ -0,0 +1,2 @@
|
|||
.is-circle
|
||||
border-radius: 50%
|
|
@ -7,15 +7,6 @@ $blue: #0678BE
|
|||
|
||||
$primary: $blue
|
||||
|
||||
.is-circle
|
||||
border-radius: 50%
|
||||
|
||||
$properties: ( mb: 'margin-bottom', ml: 'margin-left', mr: 'margin-right', mt: 'margin-top', pb: 'padding-bottom', pl: 'padding-left', pr: 'padding-right', pt: 'padding-top' )
|
||||
@each $key, $property in $properties
|
||||
@for $value from 1 through 5
|
||||
.#{$key}-#{$value}
|
||||
#{$property}: #{$value}em !important
|
||||
|
||||
@import 'node_modules/bulma/bulma'
|
||||
|
||||
@import 'base'
|
||||
|
@ -23,6 +14,7 @@ $properties: ( mb: 'margin-bottom', ml: 'margin-left', mr: 'margin-right', mt: '
|
|||
|
||||
@import 'base/layout'
|
||||
@import 'base/typography'
|
||||
@import 'base/utilities'
|
||||
|
||||
@import 'components/availability'
|
||||
@import 'components/badges'
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"js:watch": "onchange $npm_package_config_jsInputDir -v -- npm run js",
|
||||
"prod": "npm run production",
|
||||
"production": "cross-env ENV=prod npm run build",
|
||||
"sass": "npm run sass:concat && npm run sass:$ENV:compile && npm run sass:$ENV:move",
|
||||
"sass": "npm run sass:$ENV:compile && npm run sass:concat && npm run sass:$ENV:move",
|
||||
"sass:clean": "rm -rf $npm_package_config_cssOutputDir output_*/assets/css/",
|
||||
"sass:concat": "mkdir -p $npm_package_config_cssOutputDir && concat node_modules/font-awesome/css/font-awesome.css node_modules/prismjs/themes/prism-twilight.css $npm_package_config_cssOutputFile -o $npm_package_config_cssOutputFile",
|
||||
"sass:dev:compile": "node-sass assets/sass/main.sass $npm_package_config_cssOutputFile --source-map true",
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<div class="availability panel panel-default">
|
||||
<div class="panel-heading">Availability</div>
|
||||
|
||||
<div class="panel-body">
|
||||
{% for key, availability in site.availability %}
|
||||
{% include 'availability/' ~ availability with { value: key } %}
|
||||
{% endfor %}
|
||||
<div class="panel-block">
|
||||
<div>
|
||||
{% for key, availability in site.availability %}
|
||||
{% include 'availability/' ~ availability with { value: key } %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<p>
|
||||
<i class="fa fa-thumbs-o-up text-warning"></i>
|
||||
<span class="icon is-small">
|
||||
<i class="fa fa-thumbs-o-up is-warning"></i>
|
||||
</span>
|
||||
|
||||
{{ value == 'full' ? 'Currently have limited full-time capacity' }}
|
||||
{{ value == 'part' ? 'Currently have limited part-time capacity' }}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<p>
|
||||
<i class="fa fa-thumbs-o-down text-danger"></i>
|
||||
<span class="icon is-small">
|
||||
<i class="fa fa-thumbs-o-down is-danger"></i>
|
||||
</span>
|
||||
|
||||
{{ value == 'full' ? 'Currently no spare full-time capacity.' }}
|
||||
{{ value == 'part' ? 'Currently no spare part-time capacity.' }}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<p>
|
||||
<i class="fa fa-thumbs-o-up text-success"></i>
|
||||
<span class="icon is-small">
|
||||
<i class="fa fa-thumbs-o-up is-success"></i>
|
||||
</span>
|
||||
|
||||
{{ value == 'full' ? 'Currently have available full-time capacity' }}
|
||||
{{ value == 'part' ? 'Currently have available part-time capacity' }}
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
<nav class="navbar">
|
||||
<div class="container">
|
||||
<div id="navMenuExample" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item {{ page.url == '/.' ? 'is-active' }}" href="/">{% spaceless %}
|
||||
About
|
||||
{% endspaceless %}</a>
|
||||
<div id="navMenuExample" class="navbar-menu">
|
||||
<div class="navbar-start">
|
||||
<a class="navbar-item {{ page.url == '/.' ? 'is-active' }}" href="/">
|
||||
About
|
||||
</a>
|
||||
|
||||
<a class="navbar-item {{ page.url == '/experience' ? 'is-active' }}" href="/experience">{% spaceless %}
|
||||
Experience
|
||||
{% endspaceless %}</a>
|
||||
<a class="navbar-item {{ page.url == '/experience' ? 'is-active' }}" href="/experience">
|
||||
Experience
|
||||
</a>
|
||||
|
||||
<a class="navbar-item {{ page.url == '/testimonials' ? 'is-active' }}" href="/testimonials">{% spaceless %}
|
||||
Testimonials
|
||||
{% endspaceless %}</a>
|
||||
<a class="navbar-item {{ page.url == '/testimonials' ? 'is-active' }}" href="/testimonials">
|
||||
Testimonials
|
||||
</a>
|
||||
|
||||
<a class="navbar-item {{ page.url == '/talks' or '/talks/' in page.url }}" href="/talks">{% spaceless %}
|
||||
Talks
|
||||
{% endspaceless %}</a>
|
||||
<a class="navbar-item {{ page.url == '/talks' or '/talks/' in page.url }}" href="/talks">
|
||||
Talks
|
||||
</a>
|
||||
|
||||
<a class="navbar-item {{ page.url == '/blog' or '/blog/' in page.url }}" href="/blog">{% spaceless %}
|
||||
Blog
|
||||
{% endspaceless %}</a>
|
||||
<a class="navbar-item {{ page.url == '/blog' or '/blog/' in page.url }}" href="/blog">
|
||||
Blog
|
||||
</a>
|
||||
|
||||
<a class="navbar-item {{ page.url == '/contact' or '/contact/' in page.url }}" href="/contact">{% spaceless %}
|
||||
Contact
|
||||
{% endspaceless %}</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="navbar-item {{ page.url == '/contact' or '/contact/' in page.url }}" href="/contact">
|
||||
Contact
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
<div class="latest-posts panel panel-default">
|
||||
<div class="latest-posts__heading panel-heading">Latest blog posts</div>
|
||||
|
||||
<ul class="list-group">
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<li class="post list-group-item">
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<div class="post panel-block">
|
||||
<div>
|
||||
<span class="post__title">
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</span> -
|
||||
<span class="post__date">{{ post.date|date(site.default_date_format) }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -68,7 +68,10 @@
|
|||
class="button is-primary"
|
||||
title="Read or leave feedback for this talk"
|
||||
>
|
||||
<i class="fa fa-comment-o" style="margin-right: 8px"></i> joind.in
|
||||
<!-- <span class="icon is-small">
|
||||
<i class="fa fa-comment-o" style="margin-right: 8px"></i>
|
||||
</span> -->
|
||||
joind.in
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
|
|
@ -7,29 +7,39 @@ use: [posts]
|
|||
<p>To send me an email, complete the form below.</p>
|
||||
|
||||
<form action="https://formspree.io/{{ site.email }}" method="POST">
|
||||
<div class="form__name form-group">
|
||||
<div class="form__name field">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" class="form-control" name="name" required>
|
||||
<div class="control">
|
||||
<input type="text" class="input" name="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__email form-group">
|
||||
<div class="form__email field">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" class="form-control" name="email" required>
|
||||
<div class="control">
|
||||
<input type="email" class="input" name="email" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__subject form-group">
|
||||
<div class="form__subject field">
|
||||
<label for="subject">Subject</label>
|
||||
<input type="text" class="form-control" name="subject" required>
|
||||
<div class="control">
|
||||
<input type="text" class="input" name="subject" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__message form-group">
|
||||
<label for="message">Message</label>
|
||||
<textarea name="message" class="form-control" rows="5" required></textarea>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<label for="message">Message</label>
|
||||
<textarea name="message" class="textarea" rows="5" required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form__actions">
|
||||
<button class="btn btn-primary" type="submit">
|
||||
<i class="fa fa-send"></i>
|
||||
<button class="button is-primary" type="submit">
|
||||
<span class="icon is-small" style="margin-right: 5px">
|
||||
<i class="fa fa-send"></i>
|
||||
</span>
|
||||
Send email
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@ redirect:
|
|||
{% endif %}
|
||||
|
||||
<div class="experience-item-inner">
|
||||
<h2>{{ company.name }}</h2>
|
||||
<h2 class="is-marginless">{{ company.name }}</h2>
|
||||
|
||||
{% if company.url -%}
|
||||
<a class="experience-item-website is-inline-block" href="{{ company.url }}">
|
||||
|
|
Loading…
Reference in a new issue