This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Btn</title> | |
<style> | |
.text { | |
padding: 10px 0; | |
margin: 0; | |
/* marginの相殺が起きないようにする */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin text-bg-extend($image, $hover: "false") | |
display: block | |
width: image-width($image) | |
text-indent: -9999px | |
@if $hover == "false" | |
height: image-height($image) | |
@else if $hover == "true" | |
height: image-height($image) / 2 | |
&:hover | |
background-position: 0 image-height($image) / 2 * -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#id | |
p =lorem.word | |
.class | |
p =lorem.sentence | |
img src="#{lorem.image('300x300', :background_color => '333', :color => 'fff', :text => 'blah')}" | |
ul | |
- data.gnavi.nav.each do |i| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin box-sizing($width, $border-right, $padding-right, $padding-left: $padding-right, $border-left: $border-right) | |
width: $width - $border-right - $padding-right - $padding-left - $border-left | |
@mixin box-sizing-height($height, $border-top, $padding-top, $padding-bottom: $padding-top, $border-bottom: $border-top) | |
height: $height - $border-top - $padding-top - $padding-bottom - $border-bottom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass-convert -F scss -T sass -R sass/ convert/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// YAML | |
table: | |
- th: | |
aaa | |
td: | |
- bbb | |
- ccc | |
- ddd | |
- eee | |
- th: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// YAML :main.yml | |
tables: | |
- table: | |
- th: | |
aaa | |
td: | |
- bbb | |
- ccc | |
- th: | |
ddd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="orenge"> | |
<tbody> | |
<tr> | |
<th class="apple">name</th> | |
<th class="apple">birthday</th> | |
<th class="apple">tel</th> | |
<th class="apple">mail</th> | |
</tr> | |
<tr> | |
<td class="cherry">shgtkshruch</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ -> | |
# use settimeout | |
console.log 0 | |
setTimeout -> | |
console.log 'hi, 1' | |
setTimeout -> | |
console.log 'hi, 2' | |
, 1000 | |
console.log 1 | |
, 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="tooltip">What a lovely little tooltip!</div> | |
<p>Demo by Hugo Giraudel. <a href="http://www.sitepoint.com/sass-mixin-css-triangles/">See article</a>.</p> |
OlderNewer