picklecore 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88bdad539a4762bcc54d9b16da8b149a40330a9302c32300e4e87dff110b3436
4
- data.tar.gz: 64bdcdf1edb2df97e557a61291fa0c473925aa49bdf171d47814b6bf0889a3f9
3
+ metadata.gz: 75712eed93fa12b6fbb4cd5ae3099da622efc2db8d4f44d18446696327f6844e
4
+ data.tar.gz: 648363d1a6b8158712399b33ace4251bbc4facb9d886b5b284fce8a4a9ab5e72
5
5
  SHA512:
6
- metadata.gz: d59d4a5bd4c4b1fe791e3f62b6c30a420fb2a85eb9383aee2b6448f1e7e1730bb0a3e6add52f79dbdae71ffcf1a061952eba524daf3bd99dbd7b10f3a4c09e02
7
- data.tar.gz: '009fc5344cfa0fd2780c88c71915fc8f6d1655b0344838ef4f00a78ba08edf2d5f0326e2e9ff2fc39f3d3cf0cd6493b7e99e7b9de32c80cf6941b6864a790b0e'
6
+ metadata.gz: 0a7ca4dfc5ffee0f595adeae510d9662cd23f88ac84ebe0c898f8ab000b2cf5325bb12d91a730d326dff2164e305b6e34ed1b1d2149a5471c8778b26fe722827
7
+ data.tar.gz: b4c214ce935c3db8b205de2d975fd06c5f17813e24dcf7adf3a0d3ae74b3db721b2e69b831a8bf4ac29cf028fa67205a8bee2a475d6370201289f99da998fb90
data/README.md CHANGED
@@ -62,6 +62,7 @@ PickleCore is (probably) the most customizable theme out in the Jekyllverse. Her
62
62
  * `twitter` - Twitter meta dictionary
63
63
  * `username`: your Twitter username as a string (no `@`!)
64
64
  * `devto` - your [DEV](https://dev.to/) username (if you want it on the sidebar)
65
+ * `no_extra_css` - prevent custom stylesheets (see below) from being loaded (defaults to `false`)
65
66
 
66
67
  Most of the favicons and images listed here can be made over at https://realfavicongenerator.net
67
68
 
@@ -70,6 +71,12 @@ Most of the favicons and images listed here can be made over at https://realfavi
70
71
  To change the base color, which defaults to `#303f9f`, you can add a file called `_includes/styling/theme-color.css`,
71
72
  and put the hex color on the first line. **Do not** add a newline at the end of the file, it will break the CSS!
72
73
 
74
+ ### Custom CSS
75
+
76
+ To apply custom CSS, add a file called `_includes/styling/extra.css` and put styles in that file.
77
+
78
+ Note: this will not work if you specify the `no_extra_css` key in your config.
79
+
73
80
  ## Applying Theme Components
74
81
 
75
82
  The PickleCore theme allows you to apply some nice looking components that match with the theme via `includes`.
@@ -81,7 +88,10 @@ The PickleCore theme allows you to apply some nice looking components that match
81
88
  A card (shown above) can be applied by adding the following to any page **with [Front Matter](https://jekyllrb.com/docs/front-matter/) on it**:
82
89
 
83
90
  ```html
84
- <!-- Note: you can put as many cards as you want in each card container, but all cards NEED to be in a container -->
91
+ <!--
92
+ Note: you can put as many cards as you want in each card container,
93
+ but all cards NEED to be in a container (with the class 'cards').
94
+ -->
85
95
  <div class="cards">
86
96
  <!-- In this container, render a card -->
87
97
  {% include components/card.html cardtitle="My Card" cardbody="The text of the card!" %}
@@ -92,7 +102,7 @@ A card (shown above) can be applied by adding the following to any page **with [
92
102
 
93
103
  The easiest way to apply the sidebar to your website is to use the `default-with-sidebar` layout via Jekyll:
94
104
 
95
- ```html
105
+ ```yaml
96
106
  ---
97
107
  layout: default-with-sidebar
98
108
  ---
@@ -104,13 +114,11 @@ The second easiest way is to add it via the include:
104
114
  ---
105
115
  layout: default
106
116
  ---
107
-
108
117
  <!--
109
- Anchor the sidebar opener to this location on the page
118
+ Anchor the sidebar opener to this location on the page.
110
119
  Note: trying to move it via CSS may prove difficult!
111
120
  -->
112
-
113
- {%- include components/binds/sidebar-anchor.html -%}
121
+ {% include components/binds/sidebar-anchor.html %}
114
122
 
115
123
  <!-- Other content -->
116
124
  ```
@@ -119,3 +127,15 @@ But you should ***most certainly not*** simply use the `sidebar.html` component
119
127
 
120
128
  > *Help! My sidebar is blank when I open it - what do I do?*
121
129
  > Certain site config fields will populate the sidebar, so see the customization section above.
130
+
131
+ ### Solid Blocks
132
+
133
+ Sometimes you need to group data, or show something off, and a card just doesn't work. That's alright, you can just use the solid block element.
134
+
135
+ Example:
136
+
137
+ ```html
138
+ <div class="block-solid">
139
+ <h2>I am in a block!</h2>
140
+ </div>
141
+ ```
File without changes
data/assets/css/main.css CHANGED
@@ -271,3 +271,15 @@ button:hover:after {
271
271
  a {
272
272
  color: white
273
273
  }
274
+
275
+ .block-solid {
276
+ display: block;
277
+ border: white solid 4px;
278
+ padding: 7.5px;
279
+ margin-top: -5px;
280
+ text-align: center
281
+ }
282
+
283
+ {% unless site.no_extra_css %}
284
+ {% include styling/extra.css %}
285
+ {% endunless %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picklecore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reece Dunham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-22 00:00:00.000000000 Z
12
+ date: 2019-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -100,6 +100,7 @@ files:
100
100
  - _includes/components/card.html
101
101
  - _includes/components/sidebar.html
102
102
  - _includes/metadata/metadata.html
103
+ - _includes/styling/extra.css
103
104
  - _includes/styling/font.css
104
105
  - _includes/styling/theme-color.css
105
106
  - _layouts/default-with-sidebar.html