manabuyasuda / website-template Goto Github PK
View Code? Open in Web Editor NEW静的Webサイト制作を少しモダンにするためのテンプレート
Home Page: https://manabuyasuda-website-template.netlify.com/styleguide/
License: MIT License
静的Webサイト制作を少しモダンにするためのテンプレート
Home Page: https://manabuyasuda-website-template.netlify.com/styleguide/
License: MIT License
gulp-cachedでキャッシュをもたせて、差分だけビルドするようにしているけど、インポートしているcommon.scssが動いていないのでコンパイルされない。
inline-blockを指定したspanで改行させない範囲を囲む。
sw-Delimiter
現状では以下のように1つ1つのファイルを指定して読み込んでいる。
'site': JSON.parse(fs.readFileSync(develop.data + 'site.json'))
ループさせて、ファイル名によって呼び出せるように変更する。
radioボタンにvalue
属性が付いていなかったりしている。
_script.pugが_footer.pugの上に来てしまっている。
.sw-Break-md
ではなく、.sw-BreakMd
.sw-Break
は削除する。
normarize.cssで指定されているinput[type="button"]
のスタイルが当たっていてスタイルが反映されていない。
いわゆる普通のWebサイト制作にES2015は現時点でオーバースペックな面もある。
例えば、JQueryプラグインがあるような状況。
現状ではjsファイルを個別に書いて、commonとmoduleでそれぞれ連結、commonを先に読み込むことで依存関係を解決している。
ES2015を導入する場合、モジュールの依存関係はどのように解決するのがいいのか、必要な構文だけ使うようにするのか。
trim_trailing_whitespace = false
をPugにも適応する。
半角スペースが記述できないことがある。
gulp-cachedがうまく動作していないので、JSの連結がうまくできないことがある。
現状では2カラムと3カラムのような指定を組み合わせるとそれぞれの間に縦の余白がつかない。
.st-Gridsが並列に並んでいる場合には.st-Grids_Item内に指定している余白と同じ値が.st-Gridsと.st-Gridsの間につくようにする。
現状では、
index.pug
=> /index.pug
about/index.pug
=> /about/index.pug
のようになっている。index.pugの出力は不要なので、
index.pug
=> /
about/index.pug
=> /about/
としたい。
http://mkasumi.com/scrolling-hints-by-css.html
このスタイルを参考にする。
スタイルガイド生成時に、中に入れているファイルが消えてしまうのが原因?
CSSで変更できる箇所を増やす。
現状では複雑に打ち消し合っているけど、切り替わるごとにリセットして必要な余白をつける、ような書き方にできたらしたい。
均等なグリッドだけでなく、8:4や7:3のような比率も作っておく。同じパターンが続くときはひとつの.st-Grids内で完結して、違うパターンになるときは別の.st-Gridsを並列で記述する。
切り替わるタイミングで要素順が変更できるようにもしておく。ただし、3つ以上の要素がある場合はリバースはできない。
名前は.st-Grids-col8to4のようにする。
#3 でsvgoにエラーが出てしまって画像の圧縮に対応できてない。
imagemin/imagemin#237
別のパッケージにするか、エラーの原因を探る。
パッケージのバージョンを固定したいので、yarnを導入する。
インクルードするときのパスが意味の通るものにしたい。
現状
include /_include/_meta.pug
include /_include/_layout.pug
改良後
include /_partial/_meta.pug
include /_partial/_default-template.pug
もしくは
include /_partial/_meta.pug
include /_template/_default.pug
IE9以上
iOS8以上
Android4.4以上
その他は最新版
csswringはNode.jsの5.0以上。
最低限の環境でも動いて欲しいので、いったんgulp-clean-cssに変更する。
ページの評価を1つにまとめるためにcanonicalタグを追加する。
URLはsite.rootUrl + pageRootPath
で取得可能。
last 2 version
のように指定すると、Blackberry Browserなどの影響で不要なプレフィックスがつく恐れがある。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.