Skip to content

Instantly share code, notes, and snippets.

View BoxPistols's full-sized avatar

a.ito BoxPistols

View GitHub Profile
@BoxPistols
BoxPistols / index.html
Created February 2, 2024 12:32
Material Typography + WebFont Checker
<!-- Material Design Components for the WebのCDNの読み込み
https://github.com/material-components/material-components-web/tree/master/packages/mdc-typography
-->
<h1 class="mdc-typography--display1">マテリアルデザインTypography</h1>
<!-- Tool -->
<hr>
<div class="tool">
Select a font from the list below:
<select id="font-select">
<option value="未設定">未設定</option>
@BoxPistols
BoxPistols / font-family-win-mac.markdown
Created February 2, 2024 12:30
font-family 検証Win/Mac
/**
* ======= Flex Box =======
* Example:
* @include flex(center, center)
* @include flex(null, end, column, nowrap)
*/
@mixin flex($justify:null, $align:null, $column:null, $wrap:null) {
display:flex;
/**
* justify-content / Horizontal ===(1st Argument)
@BoxPistols
BoxPistols / index.html
Created August 14, 2021 10:10
Intersection Observer Scroll Animation
<section id="first" class="section">
<div class="section__container">
<p>First section</p>
<p>↓Scroll↓</p>
</div>
</section>
<section id="second" class="section obs">
<div class="section__container">
<p>Second section</p>
</div>
@BoxPistols
BoxPistols / css-in-js.js
Last active July 23, 2021 12:35
CSS in JS / UI Components
/* ===== Token ===== */
// font-size: px to rem Auto Calc
export const fz = (px) => {
/* if html element has font-size get root fontSize
* => const fontSize = getComputedStyle( document.documentElement).fontSize
*/
const fontSize = getComputedStyle(
document.querySelector('body')
).fontSize
@BoxPistols
BoxPistols / Welcome file.md
Created July 21, 2021 18:14
Welcome file


Welcome to StackEdit!

Hi! I’m your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

  • xxcxxxxxx
  • ccc
@BoxPistols
BoxPistols / index.html
Created April 30, 2021 13:10
Night Mode Toggle with Vue LocalStorage
<div id="page" :class="['hoge', nightMode ? 'theme-dark': '']">
<label for="theme-toggle"><span>Toggle</span></label>
<input type="checkbox" id="theme-toggle" v-model="nightMode">
</div>
@BoxPistols
BoxPistols / index.pug
Created March 13, 2021 16:02
Sass Mixin Grid System
h1 Sass mixin Grid
.container AAA
.row
.w-1 .w-1
.w-3 .w-3
.w-3 .w-3
.w-5 .w-5
.row
.w-sm-2 .w-sm-2
https://onedrive.live.com?invref=f0ff6a20aca239c5&invscr=90
@BoxPistols
BoxPistols / style.css
Last active November 3, 2020 13:24
style.css
@charset "UTF-8";
body {
background: #234;
color: #f9f9f9;
font-weight: 500;
}
/* 見出し関係のスタイル */