Skip to content

Instantly share code, notes, and snippets.

View Hazantip's full-sized avatar
🏠
Working from home

Hazantip

🏠
Working from home
View GitHub Profile
@Hazantip
Hazantip / UI-Kit.markdown
Last active August 29, 2015 14:13
UI Kit

UI Kit

How to stylize your inputs.

Hide inputs and work with <label for="#">

Compability: even IE8+;

A Pen by Viacheslav on CodePen.

@Hazantip
Hazantip / CSS-Pattern.markdown
Last active August 29, 2015 14:13
CSS Pattern

CSS Pattern

Mountains ornament

It became like this after transformed from rhombus. Just add background-position for first two gradients.

A Pen by Viacheslav on CodePen.

License.

@Hazantip
Hazantip / CSS-Pattern.markdown
Last active August 29, 2015 14:13
CSS Pattern

CSS Pattern

Shuriken ornament

This is a six triangles. They became triangles, when add a true deg value (for example: 45deg - triangle, 135deg - triangle (45+90), 225deg- triangle (135+90)... ),

@Hazantip
Hazantip / Custom-shadows.markdown
Created January 22, 2015 12:27
Custom shadows

Custom shadows

Used a styles: :before, :after, transform: rotate, z-index

A Pen by Viacheslav on CodePen.

@Hazantip
Hazantip / Frame.js
Created July 12, 2018 13:29 — forked from robertgonzales/Frame.js
Use React portals to render inside shadow dom and iframes
class Frame extends Component {
componentDidMount() {
this.iframeHead = this.node.contentDocument.head
this.iframeRoot = this.node.contentDocument.body
this.forceUpdate()
}
render() {
const { children, head, ...rest } = this.props
return (