jekyll-theme-simpleton 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b52e03f912e9ddd340029e5e673daf1c4e94257be5fff9025a574306c82ac04
4
- data.tar.gz: 47fb0247ad71b65e4da5c375b2effca17f0634006bcccdf27709c2e1c2bbae3a
3
+ metadata.gz: 22bba17131f8438fcc7f3bf03c88c0a96a729c9bc2e2ba7140498989f4f3a22d
4
+ data.tar.gz: 1ae833a21d06742cef9aaea3d7722b15e45912460417f6e7adb7aa17f057eb5c
5
5
  SHA512:
6
- metadata.gz: f8257e0bfa38baa0d96f634dfb5fdfde147d16b820ef6038e65d5cc7aaa8f295d2fd9da105988d055591a8eec8e6346f14764947e3958e49d9015ad74907f11b
7
- data.tar.gz: dd9eeaebb25252a7fcad335f04baf1c323bcd44701c03bae46ea8fd3606320fcf7ba2868158c72498f8d49ff70a3fe37f7d9cf58bef1e4d5329c0eaedcdfa984
6
+ metadata.gz: d93ae4755d6650cf3a9a241f579713f8c74b2404837b1324aa09eb68c85905e0a467fa94b576728b72b20bdb2cde6c9f191727fb2f0827b18dfe52e6fae3fec3
7
+ data.tar.gz: ea6de4dc366438bf2710737a5162c75c85d57c63ffb65e1e5f735f9f16430d620937715997cb2c0f1d7142413a09633b2f989f6e2ae9feafc040a4d038c1007f
data/_sass/README.md CHANGED
@@ -1 +1,51 @@
1
1
  # My Sass Library
2
+ ## Table of Contents
3
+ - [About](#about)
4
+ - [Structure](#structure)
5
+ - [Is it any good?](#is-it-any-good?)
6
+
7
+
8
+ ## About
9
+ Just my collection of sassy snippets.
10
+
11
+
12
+ ## Structure
13
+ This repo is using the 7-1 structure with the `main.scss` file exstracted in the actual project.
14
+ The used naming convention was chosen in order to show the added complexity of content when going down the directory list.
15
+
16
+
17
+ ### Abstracts
18
+ ... __(or utilities)__ holds anything that does not output any CSS when compiled.
19
+
20
+
21
+ ### Base
22
+ ... holds the boilerplate code which commonly imports also all your [abstracts](#abstracts) and gives you a good way to start any project.
23
+ This means that any project will usually start with `@import "base/all"` which imports the chosen base ([normalize](https://necolas.github.io/normalize.css/) in my case) and anything else choosen worthy.
24
+
25
+
26
+ ### Components
27
+ ... __(or modules)__ holds all of your reusable styles which are independend of any real structure.
28
+
29
+
30
+ ### Layout
31
+ ... contains all styles involved with the layout of your project.
32
+ Such as styles for your header, footer, navigation and the grid system.
33
+
34
+
35
+ ### Pages
36
+ ... any styles specific to individual pages will sit here.
37
+ For example it's not uncommon for the home page of your site to require page specific styles that no other page receives.
38
+
39
+
40
+ ### Themes
41
+ ... this is likely not used in many projects.
42
+ It would hold files that create project specific themes.
43
+ For example if sections of your site contain alternate color schemes.
44
+
45
+
46
+ ### Vendors
47
+ ... contains all third party code.
48
+
49
+
50
+ ## Is it any good?
51
+ Yes!
@@ -0,0 +1,7 @@
1
+ @import "abstracts/variables/breakpoints";
2
+ @import "abstracts/variables/colors";
3
+ @import "abstracts/variables/spacing";
4
+ @import "abstracts/variables/transition";
5
+ @import "abstracts/variables/typography";
6
+ @import "abstracts/variables/z-index";
7
+ @import "abstracts/mixins";
@@ -0,0 +1,58 @@
1
+ @mixin transition {
2
+ transition: all $transition-duration $transition-timing-function;
3
+ }
4
+
5
+ @mixin media-screen-gt($breakpoint) {
6
+ @media screen and (min-width: $breakpoint) {
7
+ @content;
8
+ }
9
+ }
10
+
11
+ @mixin media-screen-gt-sm {
12
+ @include media-screen-gt($break-sm) {
13
+ @content;
14
+ }
15
+ }
16
+
17
+ @mixin media-screen-gt-md {
18
+ @include media-screen-gt($break-md) {
19
+ @content;
20
+ }
21
+ }
22
+
23
+ @mixin media-screen-gt-lg {
24
+ @include media-screen-gt($break-lg) {
25
+ @content;
26
+ }
27
+ }
28
+
29
+ @mixin media-screen-gt-xl {
30
+ @include media-screen-gt($break-xl) {
31
+ @content;
32
+ }
33
+ }
34
+
35
+ @mixin media-screen-width-breakpoints {
36
+ @include media-screen-gt-sm {
37
+ max-width: $break-sm;
38
+ }
39
+
40
+ @include media-screen-gt-md {
41
+ max-width: $break-md;
42
+ }
43
+
44
+ @include media-screen-gt-md {
45
+ max-width: $break-md;
46
+ }
47
+
48
+ @include media-screen-gt-xl {
49
+ max-width: $break-xl;
50
+ }
51
+ }
52
+
53
+
54
+
55
+
56
+ @mixin foreground {
57
+ z-index: $foreground-index;
58
+ }
@@ -13,3 +13,4 @@ $text-grey-color: #111111;
13
13
  // Menu
14
14
  $menu-background-color: $ubuntu-orange-color !default;
15
15
  $menu-text-color: $white-color !default;
16
+ $menu-separator-color: $warm-grey-color !default;
@@ -0,0 +1,8 @@
1
+ $menu-width: 160px !default;
2
+
3
+ $hamburger-color: #000000;
4
+ $hamburger-height: 5px;
5
+ $hamburger-width: 24px;
6
+ $hamburger-radius: 2px;
7
+ $hamburger-size: 32px;
8
+ $clickable-cursor: pointer;
@@ -0,0 +1,2 @@
1
+ $transition-duration: 1s !default;
2
+ $transition-timing-function: ease-out !default;
@@ -0,0 +1,3 @@
1
+ $link-text-decoration: none;
2
+
3
+ $font-stack: Ubuntu, sans-serif;
@@ -0,0 +1,4 @@
1
+ $ui-index: 1000;
2
+ $foreground-index: 1;
3
+ $middleground-index: 0;
4
+ $background-index: -1;
@@ -0,0 +1,3 @@
1
+ @import "abstracts/all";
2
+
3
+ @import "base/normalize";
@@ -0,0 +1 @@
1
+ @import "vendor/normalize"
@@ -0,0 +1,4 @@
1
+
2
+ .content p {
3
+ text-align: justify;;
4
+ }
@@ -0,0 +1,5 @@
1
+ #hero {
2
+ width: 100%;
3
+ height: 100vh;
4
+ overflow: hidden;
5
+ }
@@ -0,0 +1,7 @@
1
+ nav {
2
+ ul {
3
+ list-style-type: none;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+ }
@@ -0,0 +1,21 @@
1
+ .text-align {
2
+ &-start {
3
+ text-align: start !important;
4
+ }
5
+
6
+ &-end {
7
+ text-align: end !important;
8
+ }
9
+
10
+ &-center {
11
+ text-align: center !important;
12
+ }
13
+
14
+ &-justify {
15
+ text-align: justify !important;
16
+ }
17
+
18
+ &-match-parent {
19
+ text-align: match-parent !important;
20
+ }
21
+ }
@@ -0,0 +1,31 @@
1
+ #gallery {
2
+ #gallery-header {
3
+ #category-filter {
4
+
5
+ #category-list {
6
+
7
+ .category-item {
8
+ @extend .pure-menu-item;
9
+
10
+ .category-button {
11
+ }
12
+
13
+ .disabled {
14
+
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ #gallery-content {
22
+
23
+ img {
24
+ }
25
+
26
+ figure {
27
+
28
+
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,5 @@
1
+ @import "components/text-align";
2
+
3
+ p {
4
+ @extend .text-align-justify;
5
+ }
@@ -0,0 +1,118 @@
1
+ #menu-container {
2
+ * {
3
+ @include transition;
4
+ }
5
+
6
+ #menu-toggle {
7
+ display: none;
8
+
9
+ &:checked {
10
+ ~ #menu {
11
+ left: 0;
12
+ }
13
+
14
+ ~ #menu-icon {
15
+ background: green;
16
+ left: $menu-width;
17
+
18
+ span {
19
+ $translation-y: 9px;
20
+ $rotation-deg: 45deg;
21
+ &:first-child {
22
+ transform: translate(0, $translation-y) rotate($rotation-deg);
23
+ }
24
+
25
+ &:nth-child(2) {
26
+ opacity: 0;
27
+ }
28
+
29
+ &:last-child {
30
+ transform: translate(0, -$translation-y) rotate(-$rotation-deg);
31
+ }
32
+ }
33
+ }
34
+ }
35
+ } // #menu-toggle
36
+
37
+ #menu {
38
+ @include foreground;
39
+
40
+ position: fixed;
41
+ top: 0;
42
+ left: -$menu-width;
43
+ bottom: 0;
44
+ background: $menu-background-color;
45
+ width: $menu-width;
46
+ box-sizing: border-box;
47
+ overflow-y: auto;
48
+
49
+ #menu-header {
50
+ border-bottom: 1px solid $menu-separator-color;
51
+ }
52
+
53
+ .menu-heading {
54
+ font-size: 125%;
55
+ font-weight: 300%;
56
+ letter-spacing: .1em;
57
+ margin-top: 0;
58
+ text-transform: uppercase;
59
+ }
60
+
61
+ .menu-list {
62
+ .menu-item {
63
+ margin: 0;
64
+ padding: 0;
65
+ height: 100%;
66
+ }
67
+ }
68
+
69
+ .menu-link {
70
+ color: $menu-text-color;
71
+ text-decoration: $link-text-decoration;
72
+ padding: .5em .8em;
73
+ }
74
+
75
+ .menu-heading,
76
+ .menu-link {
77
+ display: block;
78
+ }
79
+
80
+ @include media-screen-gt-sm {
81
+ left: 0;
82
+ }
83
+
84
+ } // #menu
85
+
86
+ #menu-icon {
87
+ @include foreground;
88
+ position: fixed;
89
+
90
+ top: 0;
91
+ left: 0;
92
+ width: $hamburger-size;
93
+ height: $hamburger-size;
94
+ display: flex;
95
+ flex-flow: column nowrap;
96
+ justify-content: space-evenly;
97
+ align-items: center;
98
+
99
+ @include media-screen-gt-sm {
100
+ display: none;
101
+ }
102
+
103
+ span {
104
+ display: block;
105
+ background: $hamburger-color;
106
+ height: $hamburger-height;
107
+ width: $hamburger-width;
108
+ border-radius: $hamburger-radius;
109
+ cursor: $clickable-cursor;
110
+ }
111
+ } // #menu-icon
112
+ } // #menu-container
113
+
114
+ @include media-screen-gt-sm {
115
+ #layout {
116
+ margin-left: $menu-width;
117
+ }
118
+ }
File without changes
@@ -1,39 +1,42 @@
1
- #hero {
2
- display: grid;
3
- grid-template: 1fr / 1fr;
4
- width: 100%;
5
- height: 100vh;
1
+ $gallery-height: 80vh;
2
+ $tile-size: $gallery-height / 3;
6
3
 
7
- .hero-tile {
8
- animation: carousel ease-out 10s infinite;
9
4
 
10
- &:first-of-type {
11
- //animation: carousel ease-out 3s infinite;
12
- }
13
- }
5
+ #hero-gallery {
6
+ height: $gallery-height;
7
+ margin: ((100vh - $gallery-height) / 2) auto;
8
+
9
+ display: grid;
10
+ grid-template-columns: repeat(auto-fit, minmax($tile-size, 1fr));
11
+ grid-template-rows: repeat(3, 1fr);
12
+ gap: 0;
13
+
14
+ overflow: hidden;
14
15
  }
15
16
 
17
+ .tile {
18
+ //animation: carousel ease-out 10s infinite;
19
+ width: auto;
20
+ height: $tile-size;
16
21
 
17
- @keyframes carousel {
18
- 0% {
19
- opacity: 1;
20
- }
22
+ background-size: cover;
23
+ background-position: center;
21
24
 
22
- 30% {
23
- opacity: 1;
24
- }
25
+ a {
26
+ @include transition;
25
27
 
26
- 50% {
28
+ height: 100%;
29
+ text-decoration: none;
30
+ text-align: center;
31
+ display: flex;
32
+ justify-content: center;
33
+ align-items: center;
27
34
  opacity: 0;
28
- }
35
+ color: white;
36
+ background: #000;
29
37
 
30
- 70% {
31
- opacity: 1
32
- }
33
-
34
- /*
35
- 100% {
36
- background: 1;
38
+ &:hover {
39
+ opacity: 1;
40
+ }
37
41
  }
38
- */
39
42
  }
@@ -0,0 +1,60 @@
1
+ @import "vendor/bootstrap";
2
+ @import "vendor/dancing-script";
3
+
4
+ @import "base/all";
5
+
6
+ @import "components/hero";
7
+
8
+ :root {
9
+ #main {
10
+ min-height: 100vh;
11
+
12
+ > *:first-child:not(#hero) {
13
+ margin-top: 10vh;
14
+ }
15
+
16
+ #hero {
17
+ #hero-content {
18
+ background-color: black;
19
+ overflow: hidden;
20
+ height: 80vh;
21
+ margin: 10vh auto;
22
+
23
+
24
+ #hero-image {
25
+ background-image: url('../../assets/images/hero.webp');
26
+
27
+
28
+ background-size: contain;
29
+ background-position: left;
30
+ background-repeat: no-repeat;
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ .blockquote {
38
+ font-family: "Dancing Script", cursive;
39
+ position: static;
40
+
41
+ p {
42
+ @extend .fs-2;
43
+
44
+ &::before {
45
+ content: "\201C";
46
+ font-size: 200%;
47
+
48
+ //@extend .fs-1;
49
+ @extend .fw-bold;
50
+ }
51
+
52
+ /*
53
+ &::after {
54
+ content: "\201C";
55
+
56
+ @extend .fs-1;
57
+ }
58
+ */
59
+ }
60
+ }
@@ -0,0 +1,5 @@
1
+ @import "vendor/purecss";
2
+
3
+ @import "base/all";
4
+
5
+ @import "layout/justified-p";
@@ -0,0 +1,16 @@
1
+ @import "base/all";
2
+
3
+ @import "layout/justified-p";
4
+
5
+ #layout {
6
+ width: 100%;
7
+
8
+ & > * {
9
+ @include media-screen-width-breakpoints;
10
+
11
+ margin: {
12
+ left: auto;
13
+ right: auto;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ @import "bootstrap/scss/bootstrap";
@@ -0,0 +1 @@
1
+ @import "@fontsource/dancing-script"
@@ -0,0 +1 @@
1
+ @import "normalize.css/normalize"
@@ -0,0 +1,2 @@
1
+ @import "purecss/build/pure";
2
+ @import "purecss/build/grids-responsive";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simpleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoli Wagner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-02 00:00:00.000000000 Z
11
+ date: 2021-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -71,15 +71,32 @@ files:
71
71
  - _layouts/page.html
72
72
  - _layouts/post.html
73
73
  - _sass/README.md
74
- - _sass/modules/_all.scss
75
- - _sass/modules/_breakpoints.scss
76
- - _sass/modules/_colors.scss
77
- - _sass/modules/_mixins.scss
78
- - _sass/modules/_spacing.scss
79
- - _sass/modules/_typography.scss
74
+ - _sass/abstracts/_all.scss
75
+ - _sass/abstracts/_mixins.scss
76
+ - _sass/abstracts/variables/_breakpoints.scss
77
+ - _sass/abstracts/variables/_colors.scss
78
+ - _sass/abstracts/variables/_spacing.scss
79
+ - _sass/abstracts/variables/_transition.scss
80
+ - _sass/abstracts/variables/_typography.scss
81
+ - _sass/abstracts/variables/_z-index.scss
82
+ - _sass/base/_all.scss
83
+ - _sass/base/_normalize.scss
84
+ - _sass/base/_typography.scss
85
+ - _sass/components/_hero.scss
86
+ - _sass/components/_nav.scss
87
+ - _sass/components/_text-align.scss
88
+ - _sass/layout/_gallery.scss
89
+ - _sass/layout/_justified-p.scss
90
+ - _sass/layout/_side-menu.scss
91
+ - _sass/pages/_gallery.scss
80
92
  - _sass/pages/_home.scss
81
- - _sass/partials/base.scss
82
- - _sass/partials/side-menu.scss
93
+ - _sass/themes/_beko-art.scss
94
+ - _sass/themes/_purebred.scss
95
+ - _sass/themes/_simpleton.scss
96
+ - _sass/vendor/_bootstrap.scss
97
+ - _sass/vendor/_dancing-script.scss
98
+ - _sass/vendor/_normalize.scss
99
+ - _sass/vendor/_purecss.scss
83
100
  - assets/css/style.scss
84
101
  homepage: https://gitlab.com/anwait/jekyll-theme-simpleton
85
102
  licenses:
@@ -100,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
117
  - !ruby/object:Gem::Version
101
118
  version: '0'
102
119
  requirements: []
103
- rubygems_version: 3.1.4
120
+ rubygems_version: 3.2.13
104
121
  signing_key:
105
122
  specification_version: 4
106
123
  summary: A very simple jekyll theme with almost no css.
@@ -1,13 +0,0 @@
1
- @import "modules/breakpoints";
2
- @import "modules/colors";
3
- @import "modules/mixins";
4
- @import "modules/spacing";
5
- @import "modules/typography";
6
-
7
- // TODO move
8
- $hamburger-color: $black-color;
9
- $hamburger-margin: 0.5ex;
10
- $hamburger-height: 1ex;
11
- $hamburger-width: 2em;
12
- $hamburger-radius: 1ex;
13
- $clickable-cursor: pointer;
@@ -1,13 +0,0 @@
1
- @mixin transition {
2
- -webkit-transition: all 0.2s ease-out;
3
- -moz-transition: all 0.2s ease-out;
4
- -ms-transition: all 0.2s ease-out;
5
- -o-transition: all 0.2s ease-out;
6
- transition: all 0.2s ease-out;
7
- }
8
-
9
- @mixin media-query($breakpoint) {
10
- @media screen and (min-width: $breakpoint) {
11
- @content;
12
- }
13
- }
@@ -1 +0,0 @@
1
- $menu-width: 160px !default;
@@ -1 +0,0 @@
1
- $link-text-decoration: none;
@@ -1 +0,0 @@
1
- @import "modules/all";
@@ -1,86 +0,0 @@
1
- #menu-container {
2
- * {
3
- transition: all 1s ease-out;
4
- }
5
-
6
- #menu-toggle {
7
- display: none;
8
-
9
- &:checked {
10
- ~ #menu {
11
- left: 0;
12
- }
13
-
14
- ~ #menu-icon {
15
- background: green;
16
- left: $menu-width;
17
-
18
- span {
19
- /* TODO */
20
- &:first-child {
21
- transform: rotate(135deg) translate(21px, -13px);
22
- }
23
-
24
- &:nth-child(2) {
25
- opacity: 0;
26
- }
27
-
28
- &:last-child {
29
- transform: rotate(-135deg) translate(3px);
30
- }
31
- }
32
- }
33
- }
34
- } // #menu-toggle
35
-
36
- #menu {
37
- position: fixed;
38
- top: 0;
39
- left: -$menu-width;
40
- bottom: 0;
41
- background: $menu-background-color;
42
- width: $menu-width;
43
- display: flex;
44
- flex-flow: column nowrap;
45
- align-items: center;
46
-
47
- > * {
48
- margin: 0.5em;
49
- }
50
-
51
- header {
52
- display: flex;
53
- flex-flow: row wrap;
54
- justify-content: center;
55
- text-align: center; /* DEBUG */
56
- }
57
-
58
- ul {
59
- margin: 0;
60
- padding: 0;
61
- list-style-type: none;
62
- }
63
-
64
- a {
65
- color: $menu-text-color;
66
- text-decoration: $link-text-decoration;
67
- // margin: 1em;
68
- }
69
- } // #menu
70
-
71
- #menu-icon {
72
- position: fixed;
73
- top: 0;
74
- left: 0;
75
-
76
- span {
77
- display: block;
78
- background: $hamburger-color;
79
- margin: $hamburger-margin;
80
- height: $hamburger-height;
81
- width: $hamburger-width;
82
- border-radius: $hamburger-radius;
83
- cursor: $clickable-cursor;
84
- }
85
- } // #menu-icon
86
- } // #menu-container