Skip to content

Commit

Permalink
feat: add border shadow style
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Feb 9, 2018
1 parent 9034d76 commit b17d490
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 45 deletions.
2 changes: 1 addition & 1 deletion _config.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ mermaid: true
chart: true

## Paginate ##
paginate: 5
paginate: 7
paginate_path: /blog/page:num

## Post excerpts ##
Expand Down
2 changes: 1 addition & 1 deletion _config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ leancloud:
# chart: true

## Paginate ##
paginate: 5
paginate: 7
paginate_path: /blog/page:num

## Post excerpts ##
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ leancloud:
# chart: true

## Paginate ##
paginate: 5
paginate: 7
paginate_path: /blog/page:num

## Post excerpts ##
Expand Down
7 changes: 0 additions & 7 deletions _layouts/blog-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
{%- assign __path = '/assets/css/blog.css' -%}
{%- include snippets/prepend-baseurl.html -%}
<link rel="stylesheet" href="{{ __return }}">
<style>
{%- if page.picture_frame == 'shadow' -%}
.m-article-content img:not(.emoji) {
box-shadow: 0 0 5px rgba(0, 0, 0, .4);
}
{%- endif -%}
</style>
<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions _sass/components/_article.content.extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
border: 1px solid $red;
}

.shadow {
.shadow > img {
@include box-shadow(3);
}

.border {
.border > img {
border: 1px solid $border-color-l;
}
}
2 changes: 1 addition & 1 deletion test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ leancloud:
# chart: true

## Paginate ##
paginate: 5
paginate: 7
paginate_path: /blog/page:num

## Post excerpts ##
Expand Down
24 changes: 0 additions & 24 deletions test/_posts/2017-02-02-images-with-shadow.md

This file was deleted.

54 changes: 52 additions & 2 deletions test/_posts/2017-05-05-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,58 @@ tags:
chart: true
---

```chart
{
"type": "line",
"data": {
"labels": [
"January",
"February",
"March",
"April",
"May",
"June",
"July"
],
"datasets": [
{
"label": "# of bugs",
"fill": false,
"lineTension": 0.1,
"backgroundColor": "rgba(75,192,192,0.4)",
"borderColor": "rgba(75,192,192,1)",
"borderCapStyle": "butt",
"borderDash": [],
"borderDashOffset": 0,
"borderJoinStyle": "miter",
"pointBorderColor": "rgba(75,192,192,1)",
"pointBackgroundColor": "#fff",
"pointBorderWidth": 1,
"pointHoverRadius": 5,
"pointHoverBackgroundColor": "rgba(75,192,192,1)",
"pointHoverBorderColor": "rgba(220,220,220,1)",
"pointHoverBorderWidth": 2,
"pointRadius": 1,
"pointHitRadius": 10,
"data": [
65,
59,
80,
81,
56,
55,
40
],
"spanGaps": false
}
]
},
"options": {}
}
```

<!--more-->

Simple HTML5 Charts using the canvas element [chartjs.org](http://www.chartjs.org/).

## Line Chart
Expand Down Expand Up @@ -62,8 +114,6 @@ Simple HTML5 Charts using the canvas element [chartjs.org](http://www.chartjs.or
}
```

<!--more-->

[Documentation for Line Chart](http://www.chartjs.org/docs/latest/charts/line.html)

```chart
Expand Down
12 changes: 10 additions & 2 deletions test/_posts/2017-06-06-mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ tags:
mermaid: true
---

```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

<!--more-->

Generation of diagrams and flowcharts from text in a similar manner as markdown.

Ever wanted to simplify documentation and avoid heavy tools like Visio when explaining your code?
Expand All @@ -24,8 +34,6 @@ graph TD;
C-->D;
```

<!--more-->

```mermaid
graph TD;
A-->B;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
---
layout: post
title: TeXt - Extra Styles
title: TeXt - Additional Styles
key: 20170808
tags:
- TeXt
- English
---

![TeXt](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.png "TeXt Theme")
{:.shadow}

Success Text.
{:.success}

<!--more-->

## Alert

Success Text.
Expand All @@ -21,8 +29,6 @@ Warning Text.
Error Text.
{:.error}

<!--more-->

Success Text.
{:.success}
^
Expand All @@ -35,7 +41,7 @@ Error Text.
Error Text.
{:.error}

## Styles
## Image

### border

Expand Down

0 comments on commit b17d490

Please sign in to comment.