Skip to content

Instantly share code, notes, and snippets.

View philippkuehn's full-sized avatar
🤦‍♂️
Coding

Philipp Kühn philippkuehn

🤦‍♂️
Coding
View GitHub Profile
@philippkuehn
philippkuehn / Component.vue
Created May 22, 2019 17:56
codeblock extension for tiptap using on scrumpy.io
<template>
<div class="c-code-block">
<div class="c-code-block__meta" contenteditable="false" v-if="editable">
<icon-btn
class="c-code-block__action-icon"
name="more"
:dropdown-props="{ closeOnClick: false }"
ref="icon"
>
<template v-slot:dropdown>
@philippkuehn
philippkuehn / gist:ca2d375841c585e89338
Created May 7, 2015 11:34
search a custom post type page
<?php
$args = array(
'posts_per_page' => 10,
'post_type' => 'your_custom_post_type',
'post_status' => 'publish',
's' => get_search_query()
);
$query = new WP_Query($args);
@philippkuehn
philippkuehn / SassMeister-input.sass
Created March 16, 2015 11:03
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
=font-size($sizeValue: 1.6, $lineHeight: 1.5, $important: false)
@if $sizeValue != false
@if type-of($sizeValue) == number
@if unitless($sizeValue)
font-size: ($sizeValue * 10) + px if($important, !important, null)
@philippkuehn
philippkuehn / SassMeister-input.scss
Last active August 29, 2015 14:13
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
// breakpoints
$small: 600px;
$medium: 800px;
$large: 1000px;
@philippkuehn
philippkuehn / SassMeister-input.scss
Last active August 29, 2015 14:13
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
// save options in map
// this have to be generated with php in a modules_options.scss
$module--text: (
module--text--146: (
color: #fff,
* {
margin: 0;
padding: 0;
font-weight: bold;
text-align: center;
box-sizing: border-box;
}
main, nav {
padding: 20px;
@philippkuehn
philippkuehn / dabblet.css
Created January 7, 2014 17:48 — forked from anonymous/dabblet.css
Untitled
* {
margin: 0;
padding: 0;
font-weight: bold;
text-align: center;
box-sizing: border-box;
}
.wrapper {
overflow: hidden;