Skip to content

Instantly share code, notes, and snippets.

View jeysonm82's full-sized avatar

JM jeysonm82

View GitHub Profile
@jeysonm82
jeysonm82 / vertical_align.html
Created November 8, 2016 14:55
4 Ways to vertical align list of elements in HTML
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="4 ways to vertical align list of elements.">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
ul li {list-style-type: none; border: 1px solid red; margin: 10px;}
ul li:hover {color: red;}
@jeysonm82
jeysonm82 / test_material_shadow.py
Last active March 14, 2023 15:07
Material shadow for Kivy widgets using Gaussian Blur
"""
Material shadow rendering using gaussian blur and two textures like in
https://codepen.io/sdthornton/pen/wBZdXq
Basically, implementing CSS box-shadow and aplying it like in the example
(two shadows with different blur radius and offset).
Screenshot: http://i.imgur.com/7VzE8Al.png
"""
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.label import Label