Skip to content

Commit

Permalink
chore: move theme-related files into ksio folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Mar 23, 2023
1 parent e80ba46 commit 2be1a95
Show file tree
Hide file tree
Showing 91 changed files with 234 additions and 231 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# [Lime](https://ourai.github.io/lime/)

A simple, readable, responsive theme for blogs, personal websites and API docs.
A simple, readable, responsive theme that:

## Supports
- audience experience first design
- born for blogs, personal websites and API docs
- supports most of PC and mobile modern web browsers
- could be used with SSGs such as [Jekyll](src/jekyll/) (not gem-based), Hexo (coming soon)

Compatibility see below.
## Getting Started

### SSGs
Please follow the documentation [on the website](https://ourai.github.io/lime/).

Supported static site generators are:
## License

- [Jekyll](src/jekyll/) (not gem-based)
- Hexo (coming soon)
[MIT](https://opensource.org/licenses/MIT)

### Browsers

Most of PC and mobile modern web browsers.
Copyright (c) 2015-present, Yao (Ourai) Lin
1 change: 1 addition & 0 deletions man/cookbook/apis/html-reuse/entity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: 结构复用
3 changes: 3 additions & 0 deletions man/cookbook/apis/html-reuse/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
像 Jekyll 这类静态网站生成器并没有「组件」相关支持,但通过它提供的 [`include`](https://jekyllrb.com/docs/includes/){:target="_blank"}{:rel="external "} 机制可以进行一定程度上的模拟。

虽没明说,但 `include` 这种复用机制就相当于是模板引擎的「partial」,故在此也将通过 `include` 使用的片段都称为「partial」。
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions src/jekyll/_assets/javascripts/bootstrap-sprockets.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/jekyll/_assets/javascripts/global.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//= require ./jquery-1.11.3.min
//= require ./bootstrap-sprockets.js
//= require ./ksio/vendors/jquery-1.11.3.min
//= require ./ksio/bootstrap-sprockets.js
5 changes: 0 additions & 5 deletions src/jekyll/_assets/javascripts/initializers/time.coffee

This file was deleted.

12 changes: 12 additions & 0 deletions src/jekyll/_assets/javascripts/ksio/bootstrap-sprockets.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//= require ./vendors/bootstrap/affix
//= require ./vendors/bootstrap/alert
//= require ./vendors/bootstrap/button
//= require ./vendors/bootstrap/carousel
//= require ./vendors/bootstrap/collapse
//= require ./vendors/bootstrap/dropdown
//= require ./vendors/bootstrap/modal
//= require ./vendors/bootstrap/scrollspy
//= require ./vendors/bootstrap/tab
//= require ./vendors/bootstrap/transition
//= require ./vendors/bootstrap/tooltip
//= require ./vendors/bootstrap/popover
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#= require jquery.lazyload
#= require ksio/vendors/jquery.lazyload

$(document).ready ->
$(".Article-content img").lazyload()
5 changes: 5 additions & 0 deletions src/jekyll/_assets/javascripts/ksio/initializers/time.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#= require ksio/vendors/jquery.timeago
#= require ksio/vendors/jquery.timeago.zh-CN

$(document).ready ->
$("time").timeago()
File renamed without changes.
File renamed without changes.
10 changes: 1 addition & 9 deletions src/jekyll/_assets/stylesheets/_helper.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
@import "compass";
@import "compass/layout";

@import "variables";
@import "painter";

//= Bootstrap
@import "bootstrap/variables";
@import "bootstrap/mixins";
@import "ksio/helper";
114 changes: 1 addition & 113 deletions src/jekyll/_assets/stylesheets/global.scss
Original file line number Diff line number Diff line change
@@ -1,113 +1 @@
@import "./helper";

@import "bootstrap-sprockets";
@import "bootstrap-custom";

@import "font-awesome-sprockets";
@import "font-awesome";

@import "./reset";

@import "./components/utilities";
@import "./components/component";
@import "./components/widget";
@import "./components/page";
@import "./components/article";



.Page-banner {
height: 400px;
font: 0px/0 a;
@include covered_background;

&:before {
width: 100%;
height: 100%;
display: block;
content: $UN-space;
background-color: #000;
opacity: .35;
}

&.is-translucent:before {
opacity: .5;
}

@media (min-width: $screen-sm-min) {
+ .container {
.Article {
position: relative;
padding-top: 3em;
}

.Article-header {
position: absolute;
bottom: 100%;
width: 100%;
padding-bottom: 4em;

&,
* {
color: #fff !important;
}
}

.Article-title {
margin-bottom: 15px;
font-size: 3.5em;
}
}
}

@media (max-width: $screen-md-max) {
height: 340px;
}

@media (max-width: $screen-sm-max) {
height: 300px;
}

@media (max-width: $screen-xs-max) {
height: 150px;
}
}

.Page.has-headerImage {
@media (min-width: $screen-sm-min) {
$link-hover-color: rgba(255, 255, 255, .9);

.Page-header {
position: absolute;
top: 0;
right: 0;
left: 0;
color: #fff;
background-color: transparent;
border-bottom-color: transparent;

.navbar-brand {
text-shadow: none;

&:hover {
color: $link-hover-color;
}
}
}

.Page-navs > .nav > li > a {
color: inherit;

&:hover,
&:focus {
color: $link-hover-color;
}
}

.Page-content {
&:before {
display: none;
}
}
}
}
@import "ksio/all";
113 changes: 113 additions & 0 deletions src/jekyll/_assets/stylesheets/ksio/_all.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
@import "../helper";

@import "bootstrap-sprockets";
@import "bootstrap-custom";

@import "font-awesome-sprockets";
@import "font-awesome";

@import "./reset";

@import "./components/utilities";
@import "./components/component";
@import "./components/widget";
@import "./components/page";
@import "./components/article";



.Page-banner {
height: 400px;
font: 0px/0 a;
@include covered_background;

&:before {
width: 100%;
height: 100%;
display: block;
content: $UN-space;
background-color: #000;
opacity: .35;
}

&.is-translucent:before {
opacity: .5;
}

@media (min-width: $screen-sm-min) {
+ .container {
.Article {
position: relative;
padding-top: 3em;
}

.Article-header {
position: absolute;
bottom: 100%;
width: 100%;
padding-bottom: 4em;

&,
* {
color: #fff !important;
}
}

.Article-title {
margin-bottom: 15px;
font-size: 3.5em;
}
}
}

@media (max-width: $screen-md-max) {
height: 340px;
}

@media (max-width: $screen-sm-max) {
height: 300px;
}

@media (max-width: $screen-xs-max) {
height: 150px;
}
}

.Page.has-headerImage {
@media (min-width: $screen-sm-min) {
$link-hover-color: rgba(255, 255, 255, .9);

.Page-header {
position: absolute;
top: 0;
right: 0;
left: 0;
color: #fff;
background-color: transparent;
border-bottom-color: transparent;

.navbar-brand {
text-shadow: none;

&:hover {
color: $link-hover-color;
}
}
}

.Page-navs > .nav > li > a {
color: inherit;

&:hover,
&:focus {
color: $link-hover-color;
}
}

.Page-content {
&:before {
display: none;
}
}
}
}
9 changes: 9 additions & 0 deletions src/jekyll/_assets/stylesheets/ksio/_helper.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import "compass";
@import "compass/layout";

@import "./variables";
@import "./painter";

//= Bootstrap
@import "bootstrap/variables";
@import "bootstrap/mixins";
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../helper";
@import "../../helper";
@import "../components/brand";

$headerHeight: 60px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../helper";
@import "../../helper";
@import "../syntax-highlighting";


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

@font-face {font-family: "socialshare";
src: font-url('share/iconfont.eot'); /* IE9*/
src: font-url('share/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
font-url('share/iconfont.woff') format('woff'), /* chrome, firefox */
font-url('share/iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
font-url('share/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
src: font-url('ksio/vendors/share/iconfont.eot'); /* IE9*/
src: font-url('ksio/vendors/share/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
font-url('ksio/vendors/share/iconfont.woff') format('woff'), /* chrome, firefox */
font-url('ksio/vendors/share/iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
font-url('ksio/vendors/share/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}

.social-share {
Expand Down
Loading

0 comments on commit 2be1a95

Please sign in to comment.