Skip to content

Instantly share code, notes, and snippets.

View spemer's full-sized avatar
👨‍💻
Designer

Hyouk Seo spemer

👨‍💻
Designer
View GitHub Profile
@spemer
spemer / webpack.config.js
Created August 16, 2018 06:47
webpack.config.js
require('es6-promise').polyfill();
@spemer
spemer / App.vue
Last active October 14, 2021 05:02
App.vue -> axios
<template lang="pug">
div#app
div(
v-for="user in users"
:key="users.id"
)
h1 {{ user.name }}
p {{ user.email }}
button(@click="fetchUsers") Click me!
</template>
@spemer
spemer / main.js
Created August 4, 2018 21:54
main.js - Axios
import Vue from 'vue'
import App from './App'
import axios from 'axios'
Vue.prototype.$http = axios
app = new Vue({
el: '#app',
components: { App },
template: '<App/>'
nav {
margin: 0 auto; }
nav ul {
margin: 8px;
padding: 0;
list-style-type: disc; }
nav li {
font-size: 16px; }
nav a {
display: block;
nav {
margin: 0 auto;
ul {
margin: 8px;
padding: 0;
list-style-type: disc;
}
li {
font-size: 16px;
h1 {
font-size: 32px;
font-size: 2rem;
}
p {
font-size: 16px;
font-size: 1rem;
}
@function calculateRem($size) {
$remSize: $size / 16px;
@return $remSize * 1rem;
}
@mixin font-size($size) {
font-size: $size;
font-size: calculateRem($size);
}
.normal {
opacity: 1;
filter: alpha(opacity=100);
}
.disabled {
opacity: 0.5;
filter: alpha(opacity=50);
}
@mixin opacity($opacity) {
opacity: $opacity;
$opacity-ie: $opacity * 100;
filter: alpha(opacity=$opacity-ie);
}
.normal {
@include opacity(1);
}
.code-block {
font: 100% Menlo, monospace, consolas;
color: #656c7a;
background-color: #e7e9ee;
}
.article-par {
font: 100% 'Merriweather',serif;
}