mancalledmountain-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +59 -0
- data/_includes/sidebar.html +34 -0
- data/_layouts/default.html +38 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +11 -0
- data/_sass/README.md +7 -0
- data/_sass/_main.scss +38 -0
- data/_sass/abstracts/README.md +7 -0
- data/_sass/abstracts/_functions.scss +30 -0
- data/_sass/abstracts/_mixins.scss +33 -0
- data/_sass/abstracts/_variables.scss +71 -0
- data/_sass/base/README.md +5 -0
- data/_sass/base/_base.scss +35 -0
- data/_sass/base/_fonts.scss +3 -0
- data/_sass/base/_helpers.scss +72 -0
- data/_sass/base/_typography.scss +15 -0
- data/_sass/components/README.md +5 -0
- data/_sass/components/_button.scss +3 -0
- data/_sass/layout/README.md +5 -0
- data/_sass/layout/_footer.scss +11 -0
- data/_sass/layout/_header.scss +6 -0
- data/_sass/layout/_sidebar.scss +106 -0
- data/_sass/pages/README.md +7 -0
- data/_sass/pages/_default.scss +27 -0
- data/_sass/pages/_home.scss +3 -0
- data/_sass/themes/README.md +7 -0
- data/_sass/themes/_default.scss +9 -0
- data/_sass/vendors/README.md +7 -0
- data/_sass/vendors/_normalize.scss +461 -0
- data/_sass/vendors/bootstrap/_alert.scss +51 -0
- data/_sass/vendors/bootstrap/_badge.scss +54 -0
- data/_sass/vendors/bootstrap/_bootstrap.scss +44 -0
- data/_sass/vendors/bootstrap/_breadcrumb.scss +41 -0
- data/_sass/vendors/bootstrap/_button-group.scss +163 -0
- data/_sass/vendors/bootstrap/_buttons.scss +137 -0
- data/_sass/vendors/bootstrap/_card.scss +289 -0
- data/_sass/vendors/bootstrap/_carousel.scss +197 -0
- data/_sass/vendors/bootstrap/_close.scss +41 -0
- data/_sass/vendors/bootstrap/_code.scss +48 -0
- data/_sass/vendors/bootstrap/_custom-forms.scss +507 -0
- data/_sass/vendors/bootstrap/_dropdown.scss +191 -0
- data/_sass/vendors/bootstrap/_forms.scss +330 -0
- data/_sass/vendors/bootstrap/_functions.scss +86 -0
- data/_sass/vendors/bootstrap/_grid.scss +52 -0
- data/_sass/vendors/bootstrap/_images.scss +42 -0
- data/_sass/vendors/bootstrap/_input-group.scss +193 -0
- data/_sass/vendors/bootstrap/_jumbotron.scss +17 -0
- data/_sass/vendors/bootstrap/_list-group.scss +149 -0
- data/_sass/vendors/bootstrap/_media.scss +8 -0
- data/_sass/vendors/bootstrap/_mixins.scss +47 -0
- data/_sass/vendors/bootstrap/_modal.scss +229 -0
- data/_sass/vendors/bootstrap/_nav.scss +120 -0
- data/_sass/vendors/bootstrap/_navbar.scss +294 -0
- data/_sass/vendors/bootstrap/_pagination.scss +73 -0
- data/_sass/vendors/bootstrap/_popover.scss +171 -0
- data/_sass/vendors/bootstrap/_print.scss +141 -0
- data/_sass/vendors/bootstrap/_progress.scss +43 -0
- data/_sass/vendors/bootstrap/_reboot.scss +483 -0
- data/_sass/vendors/bootstrap/_root.scss +19 -0
- data/_sass/vendors/bootstrap/_spinners.scss +55 -0
- data/_sass/vendors/bootstrap/_tables.scss +185 -0
- data/_sass/vendors/bootstrap/_toasts.scss +44 -0
- data/_sass/vendors/bootstrap/_tooltip.scss +115 -0
- data/_sass/vendors/bootstrap/_transitions.scss +20 -0
- data/_sass/vendors/bootstrap/_type.scss +125 -0
- data/_sass/vendors/bootstrap/_utilities.scss +17 -0
- data/_sass/vendors/bootstrap/_variables.scss +1123 -0
- data/_sass/vendors/bootstrap/bootstrap-_grid.scss +29 -0
- data/_sass/vendors/bootstrap/bootstrap-_reboot.scss +12 -0
- data/_sass/vendors/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/vendors/bootstrap/mixins/_background-variant.scss +21 -0
- data/_sass/vendors/bootstrap/mixins/_badge.scss +17 -0
- data/_sass/vendors/bootstrap/mixins/_border-radius.scss +63 -0
- data/_sass/vendors/bootstrap/mixins/_box-shadow.scss +20 -0
- data/_sass/vendors/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/vendors/bootstrap/mixins/_buttons.scss +107 -0
- data/_sass/vendors/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/vendors/bootstrap/mixins/_clearfix.scss +7 -0
- data/_sass/vendors/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/vendors/bootstrap/mixins/_float.scss +14 -0
- data/_sass/vendors/bootstrap/mixins/_forms.scss +192 -0
- data/_sass/vendors/bootstrap/mixins/_gradients.scss +45 -0
- data/_sass/vendors/bootstrap/mixins/_grid-framework.scss +66 -0
- data/_sass/vendors/bootstrap/mixins/_grid.scss +51 -0
- data/_sass/vendors/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/vendors/bootstrap/mixins/_image.scss +36 -0
- data/_sass/vendors/bootstrap/mixins/_list-group.scss +21 -0
- data/_sass/vendors/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/vendors/bootstrap/mixins/_nav-divider.scss +10 -0
- data/_sass/vendors/bootstrap/mixins/_pagination.scss +22 -0
- data/_sass/vendors/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/vendors/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/vendors/bootstrap/mixins/_screen-reader.scss +33 -0
- data/_sass/vendors/bootstrap/mixins/_size.scss +7 -0
- data/_sass/vendors/bootstrap/mixins/_table-row.scss +39 -0
- data/_sass/vendors/bootstrap/mixins/_text-emphasis.scss +16 -0
- data/_sass/vendors/bootstrap/mixins/_text-hide.scss +11 -0
- data/_sass/vendors/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/vendors/bootstrap/mixins/_transition.scss +16 -0
- data/_sass/vendors/bootstrap/mixins/_visibility.scss +8 -0
- data/_sass/vendors/bootstrap/utilities/_align.scss +8 -0
- data/_sass/vendors/bootstrap/utilities/_background.scss +19 -0
- data/_sass/vendors/bootstrap/utilities/_borders.scss +75 -0
- data/_sass/vendors/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/vendors/bootstrap/utilities/_display.scss +26 -0
- data/_sass/vendors/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/vendors/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/vendors/bootstrap/utilities/_float.scss +11 -0
- data/_sass/vendors/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/vendors/bootstrap/utilities/_position.scss +32 -0
- data/_sass/vendors/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/vendors/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/vendors/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/vendors/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/vendors/bootstrap/utilities/_stretched-link.scss +19 -0
- data/_sass/vendors/bootstrap/utilities/_text.scss +72 -0
- data/_sass/vendors/bootstrap/utilities/_visibility.scss +13 -0
- data/_sass/vendors/bootstrap/vendor/_rfs.scss +204 -0
- data/assets/images/richard_mountain.jpg +0 -0
- data/assets/style.scss +3 -0
- metadata +206 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2cf05a936e0e8bc64e8940a3e6f0ca1a06ec76cd817ce4203ff0d36ca2ffc080
|
4
|
+
data.tar.gz: 6baea8a040c75fc26315d5000eb0a7eeb9d127c7d1e8581c29dc38281acd21c2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: '0197a8c7504e56b1c4723a39e01f9cab069ad32786c2177e4a1fe733bccd43978368970c583ee09bcf536473608d9ef938a2d434feb54a6cda8a6c1fdb7e771e'
|
7
|
+
data.tar.gz: 2b7492c0675d45fc46caf937042cd38b4074a3845a8f092d4bd456dc54851e79b824528d2b00be68bc1a7e031c88346ae5ef9f0892c1217b23d495c59036602c
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Richard
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# mancalledmountain-theme
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
4
|
+
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
+
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "mancalledmountain-theme"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: mancalledmountain-theme
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install mancalledmountain-theme
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
39
|
+
|
40
|
+
## Development
|
41
|
+
|
42
|
+
To set up your environment to develop this theme, run `bundle install`.
|
43
|
+
|
44
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
45
|
+
|
46
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
47
|
+
To add a custom directory to your theme-gem, please edit the regexp in `mancalledmountain-theme.gemspec` accordingly.
|
48
|
+
|
49
|
+
## Thanks
|
50
|
+
This theme wasn't created from scratch, some parts of the theme were borrowed, stolen or copied either way, I've tried my best to acknowledge
|
51
|
+
who I've done this too.
|
52
|
+
|
53
|
+
https://github.com/HugoGiraudel/sass-boilerplate
|
54
|
+
borrowed the sass boilerplate to make my life a little easier.
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
59
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<div class="col align-self-end">
|
2
|
+
|
3
|
+
<div class="user-profile">
|
4
|
+
|
5
|
+
<div class="avatar">
|
6
|
+
<a href="/"><img src="{{ prepend: site.baseurl}}/assets/images/richard_mountain.jpg" class="circle brand-border"></a>
|
7
|
+
</div>
|
8
|
+
<strong class="my-name">Richard Mountain</strong>
|
9
|
+
<span class="job-title">Software Developer</span>
|
10
|
+
|
11
|
+
<div class="about-me">
|
12
|
+
|
13
|
+
<p>I create things. I am a software developer and I enjoy bringing other peoples ideas to life.</p>
|
14
|
+
<p>One of my favorite pass times is playing online computer games with friends.</p>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="latest-posts">
|
19
|
+
|
20
|
+
<h3 class="header">Latest Posts</h3>
|
21
|
+
|
22
|
+
<ul>
|
23
|
+
{% for post in site.posts limit:5 %}
|
24
|
+
<li class="{% if post.url == page.url %}active{% endif %}">
|
25
|
+
<a href="{{ post.url }}">{{ post.title }}</a>
|
26
|
+
</li>
|
27
|
+
{% endfor %}
|
28
|
+
</ul>
|
29
|
+
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
6
|
+
<title>{{ page.title }}</title>
|
7
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
8
|
+
<link rel="stylesheet" href="/assets/style.css">
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<header>
|
12
|
+
</header>
|
13
|
+
|
14
|
+
<div class="container wrapper">
|
15
|
+
|
16
|
+
<div class="row">
|
17
|
+
|
18
|
+
<div class="col-12 col-sm-4 sidebar">
|
19
|
+
|
20
|
+
{% include sidebar.html %}
|
21
|
+
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="offset-sm-4 col-12 col-sm-8">
|
25
|
+
|
26
|
+
{{ content }}
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<footer class="text-center">
|
35
|
+
© 2019 - Powered by Jekyll, designed by Richard Mountain
|
36
|
+
</footer>
|
37
|
+
</body>
|
38
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
data/_sass/README.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Main file
|
2
|
+
|
3
|
+
The main file (usually labelled `main.scss`) should be the only Sass file from the whole code base not to begin with an underscore. This file should not contain anything but `@import` and comments.
|
4
|
+
|
5
|
+
*Note: when using [Eyeglass](https://github.com/sass-eyeglass/eyeglass) for distribution, it might be a fine idea to name this file `index.scss` rather than `main.scss` in order to stick to [Eyeglass modules specifications](https://github.com/sass-eyeglass/eyeglass#writing-an-eyeglass-module-with-sass-files). See [#21](https://github.com/HugoGiraudel/sass-boilerplate/issues/21) for reference.*
|
6
|
+
|
7
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Main file](http://sass-guidelin.es/#main-file)
|
data/_sass/_main.scss
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
@charset 'UTF-8';
|
2
|
+
|
3
|
+
// 1. Configuration and helpers
|
4
|
+
@import
|
5
|
+
'abstracts/variables',
|
6
|
+
'abstracts/functions',
|
7
|
+
'abstracts/mixins';
|
8
|
+
|
9
|
+
// 2. Vendors
|
10
|
+
@import
|
11
|
+
'vendors/normalize',
|
12
|
+
'vendors/bootstrap/bootstrap-_grid';
|
13
|
+
|
14
|
+
// 3. Base stuff
|
15
|
+
@import
|
16
|
+
'base/base',
|
17
|
+
'base/fonts',
|
18
|
+
'base/typography',
|
19
|
+
'base/helpers';
|
20
|
+
|
21
|
+
// 4. Layout-related sections
|
22
|
+
@import
|
23
|
+
'layout/header',
|
24
|
+
'layout/sidebar',
|
25
|
+
'layout/footer';
|
26
|
+
|
27
|
+
// 5. Components
|
28
|
+
@import
|
29
|
+
'components/button';
|
30
|
+
|
31
|
+
// 6. Page-specific styles
|
32
|
+
@import
|
33
|
+
'pages/default',
|
34
|
+
'pages/home';
|
35
|
+
|
36
|
+
// 7. Themes
|
37
|
+
@import
|
38
|
+
'themes/default';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Abstracts
|
2
|
+
|
3
|
+
The `abstracts/` folder gathers all Sass tools and helpers used across the project. Every global variable, function, mixin and placeholder should be put in here.
|
4
|
+
|
5
|
+
The rule of thumb for this folder is that it should not output a single line of CSS when compiled on its own. These are nothing but Sass helpers.
|
6
|
+
|
7
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Abstracts folder](http://sass-guidelin.es/#abstracts-folder)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all application-wide Sass functions.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
/// Native `url(..)` function wrapper
|
6
|
+
/// @param {String} $base - base URL for the asset
|
7
|
+
/// @param {String} $type - asset type folder (e.g. `fonts/`)
|
8
|
+
/// @param {String} $path - asset path
|
9
|
+
/// @return {Url}
|
10
|
+
@function asset($base, $type, $path) {
|
11
|
+
@return url($base + $type + $path);
|
12
|
+
}
|
13
|
+
|
14
|
+
/// Returns URL to an image based on its path
|
15
|
+
/// @param {String} $path - image path
|
16
|
+
/// @param {String} $base [$base-url] - base URL
|
17
|
+
/// @return {Url}
|
18
|
+
/// @require $base-url
|
19
|
+
@function image($path, $base: $base-url) {
|
20
|
+
@return asset($base, 'images/', $path);
|
21
|
+
}
|
22
|
+
|
23
|
+
/// Returns URL to a font based on its path
|
24
|
+
/// @param {String} $path - font path
|
25
|
+
/// @param {String} $base [$base-url] - base URL
|
26
|
+
/// @return {Url}
|
27
|
+
/// @require $base-url
|
28
|
+
@function font($path, $base: $base-url) {
|
29
|
+
@return asset($base, 'fonts/', $path);
|
30
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all application-wide Sass mixins.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
/// Event wrapper
|
6
|
+
/// @author Harry Roberts
|
7
|
+
/// @param {Bool} $self [false] - Whether or not to include current selector
|
8
|
+
/// @link https://twitter.com/csswizardry/status/478938530342006784 Original tweet from Harry Roberts
|
9
|
+
@mixin on-event($self: false) {
|
10
|
+
@if $self {
|
11
|
+
&,
|
12
|
+
&:hover,
|
13
|
+
&:active,
|
14
|
+
&:focus {
|
15
|
+
@content;
|
16
|
+
}
|
17
|
+
} @else {
|
18
|
+
&:hover,
|
19
|
+
&:active,
|
20
|
+
&:focus {
|
21
|
+
@content;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
/// Make a context based selector a little more friendly
|
27
|
+
/// @author Hugo Giraudel
|
28
|
+
/// @param {String} $context
|
29
|
+
@mixin when-inside($context) {
|
30
|
+
#{$context} & {
|
31
|
+
@content;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all application-wide Sass variables.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
/// Regular font family
|
10
|
+
/// @type List
|
11
|
+
$text-font-stack: 'Roboto', Arial, sans-serif !default;
|
12
|
+
|
13
|
+
/// Code (monospace) font family
|
14
|
+
/// @type List
|
15
|
+
$code-font-stack: 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Monaco', monospace !default;
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
/// Copy text color
|
22
|
+
/// @type Color
|
23
|
+
$text-color: rgb(34, 34, 34) !default;
|
24
|
+
|
25
|
+
/// Main brand color
|
26
|
+
/// @type Color
|
27
|
+
$brand-color: rgb(229, 0, 80) !default;
|
28
|
+
|
29
|
+
/// Light grey
|
30
|
+
/// @type Color
|
31
|
+
$light-grey: rgb(237, 237, 237) !default;
|
32
|
+
|
33
|
+
/// Medium grey
|
34
|
+
/// @type Color
|
35
|
+
$mid-grey: rgb(153, 153, 153) !default;
|
36
|
+
|
37
|
+
/// Dark grey
|
38
|
+
/// @type Color
|
39
|
+
$dark-grey: rgb(68, 68, 68) !default;
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
/// Container's maximum width
|
46
|
+
/// @type Length
|
47
|
+
$max-width: 1180px !default;
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
/// Breakpoints map
|
54
|
+
/// @prop {String} keys - Keys are identifiers mapped to a given length
|
55
|
+
/// @prop {Map} values - Values are actual breakpoints expressed in pixels
|
56
|
+
$breakpoints: (
|
57
|
+
'small': 320px,
|
58
|
+
'medium': 768px,
|
59
|
+
'large': 1024px,
|
60
|
+
) !default;
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
/// Relative or absolute URL where all assets are served from
|
68
|
+
/// @type String
|
69
|
+
/// @example scss - When using a CDN
|
70
|
+
/// $base-url: 'http://cdn.example.com/assets/';
|
71
|
+
$base-url: '/assets/' !default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# Base
|
2
|
+
|
3
|
+
The `base/` folder holds what we might call the boilerplate code for the project. In there, you might find some typographic rules, and probably a stylesheet (that I’m used to calling `_base.scss`), defining some standard styles for commonly used HTML elements.
|
4
|
+
|
5
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Base folder](http://sass-guidelin.es/#base-folder)
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains very basic styles.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Set up a decent box model on the root element
|
7
|
+
*/
|
8
|
+
html {
|
9
|
+
box-sizing: border-box;
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Make all elements from the DOM inherit from the parent box-sizing
|
14
|
+
* Since `*` has a specificity of 0, it does not override the `html` value
|
15
|
+
* making all elements inheriting from the root box-sizing value
|
16
|
+
* See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
17
|
+
*/
|
18
|
+
*,
|
19
|
+
*::before,
|
20
|
+
*::after {
|
21
|
+
box-sizing: inherit;
|
22
|
+
}
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Basic styles for links
|
26
|
+
*/
|
27
|
+
a {
|
28
|
+
color: $brand-color;
|
29
|
+
text-decoration: none;
|
30
|
+
|
31
|
+
@include on-event {
|
32
|
+
color: $text-color;
|
33
|
+
text-decoration: underline;
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains CSS helper classes.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Clear inner floats
|
7
|
+
*/
|
8
|
+
.clearfix::after {
|
9
|
+
clear: both;
|
10
|
+
content: '';
|
11
|
+
display: table;
|
12
|
+
}
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Main content containers
|
16
|
+
* 1. Make the container full-width with a maximum width
|
17
|
+
* 2. Center it in the viewport
|
18
|
+
* 3. Leave some space on the edges, especially valuable on small screens
|
19
|
+
*/
|
20
|
+
.container {
|
21
|
+
max-width: $max-width; /* 1 */
|
22
|
+
margin-left: auto; /* 2 */
|
23
|
+
margin-right: auto; /* 2 */
|
24
|
+
padding-left: 20px; /* 3 */
|
25
|
+
padding-right: 20px; /* 3 */
|
26
|
+
width: 100%; /* 1 */
|
27
|
+
}
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Hide text while making it readable for screen readers
|
31
|
+
* 1. Needed in WebKit-based browsers because of an implementation bug;
|
32
|
+
* See: https://code.google.com/p/chromium/issues/detail?id=457146
|
33
|
+
*/
|
34
|
+
.hide-text {
|
35
|
+
overflow: hidden;
|
36
|
+
padding: 0; /* 1 */
|
37
|
+
text-indent: 101%;
|
38
|
+
white-space: nowrap;
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Hide element while making it readable for screen readers
|
43
|
+
* Shamelessly borrowed from HTML5Boilerplate:
|
44
|
+
* https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
|
45
|
+
*/
|
46
|
+
.visually-hidden {
|
47
|
+
border: 0;
|
48
|
+
clip: rect(0 0 0 0);
|
49
|
+
height: 1px;
|
50
|
+
margin: -1px;
|
51
|
+
overflow: hidden;
|
52
|
+
padding: 0;
|
53
|
+
position: absolute;
|
54
|
+
width: 1px;
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* turn square image into circle
|
59
|
+
*/
|
60
|
+
.circle {
|
61
|
+
|
62
|
+
border-radius: 50%;
|
63
|
+
-webkit-border-radius: 50%;
|
64
|
+
-moz-border-radius: 50%;
|
65
|
+
|
66
|
+
&.brand-border {
|
67
|
+
|
68
|
+
border: 3px solid $brand-color;
|
69
|
+
|
70
|
+
}
|
71
|
+
|
72
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# Components
|
2
|
+
|
3
|
+
For small components, there is the `components/` folder. While `layout/` is macro (defining the global wireframe), `components/` is more focused on widgets. It contains all kind of specific modules like a slider, a loader, a widget, and basically anything along those lines. There are usually a lot of files in components/ since the whole site/application should be mostly composed of tiny modules.
|
4
|
+
|
5
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Components folder](http://sass-guidelin.es/#components-folder)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# Layout
|
2
|
+
|
3
|
+
The `layout/` folder contains everything that takes part in laying out the site or application. This folder could have stylesheets for the main parts of the site (header, footer, navigation, sidebar…), the grid system or even CSS styles for all the forms.
|
4
|
+
|
5
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Layout folder](http://sass-guidelin.es/#layout-folder)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all styles related to the footer of the site/application.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
footer {
|
6
|
+
|
7
|
+
color: #ccc;
|
8
|
+
font-size: 11px;
|
9
|
+
padding: 15px;
|
10
|
+
|
11
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all styles related to the header of the site/application.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
header {
|
5
|
+
border-top: 10px solid $brand-color;
|
6
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
// -----------------------------------------------------------------------------
|
2
|
+
// This file contains all styles related to the sidebar of the site/application.
|
3
|
+
// -----------------------------------------------------------------------------
|
4
|
+
|
5
|
+
.sidebar {
|
6
|
+
|
7
|
+
@include make-col-ready();
|
8
|
+
|
9
|
+
@include media-breakpoint-up(sm) {
|
10
|
+
|
11
|
+
position: fixed;
|
12
|
+
|
13
|
+
}
|
14
|
+
|
15
|
+
}
|
16
|
+
|
17
|
+
.user-profile {
|
18
|
+
|
19
|
+
text-align: center;
|
20
|
+
|
21
|
+
.avatar {
|
22
|
+
|
23
|
+
|
24
|
+
margin-bottom: 25px;
|
25
|
+
|
26
|
+
}
|
27
|
+
|
28
|
+
.my-name {
|
29
|
+
|
30
|
+
color: #333;
|
31
|
+
display: block;
|
32
|
+
font-size: 24px;
|
33
|
+
font-weight: 700;
|
34
|
+
line-height: 30px;
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
.job-title {
|
39
|
+
|
40
|
+
font-size: 14px;
|
41
|
+
font-weight: 300;
|
42
|
+
margin: 5px 0 0;
|
43
|
+
|
44
|
+
}
|
45
|
+
|
46
|
+
.about-me {
|
47
|
+
|
48
|
+
p {
|
49
|
+
|
50
|
+
font-size: 16px;
|
51
|
+
font-weight: 400;
|
52
|
+
line-height: 24px;
|
53
|
+
text-align: left;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.latest-posts {
|
60
|
+
|
61
|
+
text-align: left;
|
62
|
+
|
63
|
+
ul {
|
64
|
+
|
65
|
+
box-shadow: 0 2px 3px rgba(0,0,0,0.05);
|
66
|
+
border: 1px solid #eee;
|
67
|
+
list-style: none;
|
68
|
+
padding: 0;
|
69
|
+
|
70
|
+
li {
|
71
|
+
|
72
|
+
a {
|
73
|
+
|
74
|
+
background: #fff;
|
75
|
+
border-bottom: 1px solid #eee;
|
76
|
+
color: #aaa;
|
77
|
+
display: block;
|
78
|
+
padding: 10px 15px;
|
79
|
+
|
80
|
+
&:hover {
|
81
|
+
|
82
|
+
background: #f6f6f6;
|
83
|
+
box-shadow: inset 4px 0 0 $brand-color;
|
84
|
+
text-decoration: none;
|
85
|
+
|
86
|
+
}
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
&.active {
|
91
|
+
|
92
|
+
a {
|
93
|
+
|
94
|
+
background: #f6f6f6;
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
}
|
99
|
+
|
100
|
+
}
|
101
|
+
|
102
|
+
}
|
103
|
+
|
104
|
+
}
|
105
|
+
|
106
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Pages
|
2
|
+
|
3
|
+
If you have page-specific styles, it is better to put them in a `pages/` folder, in a file named after the page. For instance, it’s not uncommon to have very specific styles for the home page hence the need for a `_home.scss` file in `pages/`.
|
4
|
+
|
5
|
+
*Note — Depending on your deployment process, these files could be called on their own to avoid merging them with the others in the resulting stylesheet. It is really up to you.*
|
6
|
+
|
7
|
+
Reference: [Sass Guidelines](http://sass-guidelin.es/) > [Architecture](http://sass-guidelin.es/#architecture) > [Pages folder](http://sass-guidelin.es/#pages-folder)
|