Skip to content

Instantly share code, notes, and snippets.

View hiloki's full-sized avatar

Hiroki Tani hiloki

View GitHub Profile
function hasRoundedCorners(r) {
const result = figma.currentPage.findAll(n => n.cornerRadius === r)
figma.currentPage.selection = result
}
// 引数に任意のnumber
hasRoundedCorners(8);

(・谷・)<下記はセミナースライド用のダミーだよ

ボキャブラリーガイド

大枠の構造

/* モジュールのヘッダ部分(タイトルやメタ情報)にあたるもの */
xxx__head {...}
@hiloki
hiloki / dnGeB.markdown
Created June 20, 2014 13:06
A Pen by Hiroki Tani.
@hiloki
hiloki / designer.html
Created June 20, 2014 12:01
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hiloki
hiloki / designer.html
Created June 20, 2014 12:00
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hiloki
hiloki / SassMeister-input.scss
Created May 9, 2014 01:52
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
// Mixin A
@mixin kiteA {
display: table;
width: 100%;
font-size: 0 !important;
ul,li {
margin: 0;
padding: 0;
list-style: none;
}
a {
color: inherit;
text-decoration: none;
}
/* Sprite */
.btn-login {
display: inline-block;
width: 528px; /* 使いたい画像のサイズ */
height: 82px; /* 使いたい画像のサイズ */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAACkCAMAAADxGufxAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAL0UExURQAAAGXLM2bLM2TNM2bNMWbLM2XMMlXUKmbMM2bLM1WqVWbMM2TMMWXLMWXLMWbMMmbLMmbMM2bLM2XLM2bMM2XLMmXLM2bMM2fPL2nSNGbMM2XMMWbMM2bMM////4W1CmbMM3HNA5TECom5CnnVA3bSA4i4CormBHXRA4vnBIe3CpfHCozoBHPPA4a2CpjICnLOA4u7Co3pBI6+CpHBCobiBHjUA5PDCoq6CnfTA4jkBIXhBJXFConlBJXGCpbGCnTQA5jJCpnJCo3qBJLCCnCTB1KVAnrWA4DcA4+/CoHdA5DACn3ZA3/bA429CoLeA3zYA3vXA4y8CobjBIq7CpPECofkBIfjBIm6Coi5CpTFCojlBJLDCoe4CnTPA5bHCoa3CpfICozpBIW2CoThBITgBJnKCo7qBHCUB4/ACn7bA37aA4PgBIu8Cn3aA42+CpHCCo6/CpDBCoPfBIPfA4y9Cvn78fj98Mjhhev00sHvguH3wfD74M/xoWbLMeTwwuPvwp7jQ77sgpzhQ9/2wcbfhdXnpG6RB+f40ajMR/H34b3rgpPBGazQR8ffhc7jlNf0sZbDGcjwkqvPR7LTV8DugsDbdbHrYq3SR6PKOKrOR+j50aLnQ4zdI57JKWfMMa7nYtbopGXILqbNOFacBKXkUqDlQ5vFKNzrs5LjI8XdhVqkCLrYZoXbE3LVJH+7Em/GKJjFGaHmQ4PaE22YDJTfM4fdE5rmM9HzoXuiCFyuFmnNL1OYAmvABJfiM7jWZ
@hiloki
hiloki / SassMeister-input.scss
Created March 26, 2014 17:11
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$module: module-item;
$--: "--";
.#{$module}#{$--}body {
width: 100px;
}
@hiloki
hiloki / SassMeister-input.scss
Created March 26, 2014 13:30
Generated by SassMeister.com.
// ----
// Sass (v3.2.17)
// Compass (v0.12.4)
// ----
$module: module-item;
.#{$module}--body {
width: 100px;
}