Skip to content

Instantly share code, notes, and snippets.

View ksyunnnn's full-sized avatar
🏠
Working from home

こばしゅん ksyunnnn

🏠
Working from home
View GitHub Profile
@ksyunnnn
ksyunnnn / index.pug
Last active April 13, 2018 08:39
Portfolio
.app
//-  作業の流れ
1. 全体の枠組み、headerやcontentを実装 done
2. ルーティングを実装(top/aboutくらい) done
3. 子ページを実装
4. リファクタリング
//- ルール
@ksyunnnn
ksyunnnn / SpecifyMyStyle.scss
Created February 26, 2018 11:02
SpecifyMyStyle.scss
$font-size-root: 16px;
$color-describe-casual-use: #333;
$color-describe-key: #eee;
// 継承元としてのみ利用
.class-font-root {
font-family: monospace;
font-size: $font-size-root;
}
@ksyunnnn
ksyunnnn / index.pug
Created February 26, 2018 10:39
my CSS templete for Codepen
.my-page
.my-container
h1 CodePenのためのテンプレート
hr
p rowgitを利用して、GistのCSSを読み込んでます。
ul
li
a(href="https://rawgit.com/") https://rawgit.com/
li
a(href="https://gist.github.com/ksyunnnn/") https://gist.github.com/ksyunnnn/
@mixin max-screen($break-point) {
@media screen and (max-width: $break-point) {
@content;
}
}
@mixin min-screen($break-point) {
@media screen and (min-width: $break-point) {
@content;
// 好みのスタイル
// * CDN化はこちら https://rawgit.com/
.class-font-root, .my-page {
font-family: monospace;
font-size: 16px;
}
.class-font-custom h1, .my-container h1 {
font-size: 2rem;
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@ksyunnnn
ksyunnnn / index.pug
Created February 2, 2018 11:33
YewwBE
.container
h1.title Hello, World!
section.about
h2 ABOUT
p これはHTMLとCSSを学ぶためのサンプルコードです。
section.how_it_works
h2 HOW IT WORKS
p 使い方は以下
ol
li Githubからソースをダウンロード(もしくはクローン)
@ksyunnnn
ksyunnnn / index.html
Created December 30, 2017 03:57
Range slider.rz
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
<script src="https://rawgit.com/rzajac/angularjs-slider/master/dist/rzslider.js"></script>
<div ng-app="rzSliderDemo">
<div ng-controller="MainCtrl" class="wrapper">
<article>
<h2>Range slider</h2>
Min Value:
<input id="min" type="number" ng-model="minRangeSlider.minValue" />
@ksyunnnn
ksyunnnn / index.html
Last active December 29, 2017 04:36
range by two input[OK]
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#slider-range" ).slider({
range: true,
min: 0,
max: 100000,
step: 1000,
classes: {