Skip to content

Instantly share code, notes, and snippets.

View SelenIT's full-sized avatar
💭
I may be slow to respond.

Ilya Streltsyn SelenIT

💭
I may be slow to respond.
View GitHub Profile
@SelenIT
SelenIT / dabblet.css
Last active May 21, 2018 14:18 — forked from LeaVerou/dabblet.css
Responsive tables with element()
/**
* Responsive tables with element()
* Pros: No markup changes, works with normal table markup, no content duplication
* Cons: element() is only implemented in Firefox :(
*/
@media (max-width: 600px) {
table, tr, td, th, thead, tbody {
display: block;
}
@SelenIT
SelenIT / dabblet.css
Created October 27, 2017 16:15 — forked from LeaVerou/dabblet.css
tr + positioning
/**
* tr + positioning
*/
tr {
position: relative;
outline: 1px solid black;
}
table {
@SelenIT
SelenIT / dabblet.css
Created February 14, 2017 12:20 — forked from iamstarkov/dabblet.css
broken inlined button, FF
/* broken inlined button, FF */
.btn {
all: initial;
background: red;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/* fix for 140562 https://bugzilla.mozilla.org/show_bug.cgi?id=140562 */
@SelenIT
SelenIT / dabblet.css
Last active July 19, 2016 15:22 — forked from mokhov/dabblet.css
Untitled
.cube {
position: absolute;
top: 50px;
left: 50px;
width: 20px;
height: 20px;
background: red;
transition: .3s opacity;
}
@SelenIT
SelenIT / dabblet.css
Last active December 27, 2015 11:18 — forked from anonymous/dabblet.css
Общие стили - Для оформления
/* Общие стили - Для оформления */
body { min-width: 600px; margin: 0 10px; font: 0.8125em/1 Verdana,sans-serif; background: #fff; }
h1 {
font: 1.8em Georgia,Times,serif;
margin-bottom: 0.5em;
color: #E76D13;
text-align: center;
}
h1 span { color: #000;}
.test-box {
@SelenIT
SelenIT / dabblet.css
Created May 13, 2015 09:28 — forked from kizu/dabblet.css
Demo of Firefox inline-flex bug
/* Demo of Firefox inline-flex bug */
.baseline-wrapper {
overflow: auto;
white-space: nowrap;
}
.baseline-wrapper:before {
content: "";
position: relative;
@SelenIT
SelenIT / dabblet.css
Last active August 29, 2015 14:19
Media query to detect full screen mode — standards way (kind of)
/**
* Media query to detect full screen mode — standards way (kind of)
*/
@media screen and (-webkit-view-mode:windowed) {
body {
font-size: 12px;
border: 10px solid green;
}
}
@SelenIT
SelenIT / dabblet.css
Created April 13, 2015 06:57
Media query to detect full screen mode!
/**
* Media query to detect full screen mode!
* Y U NO WORK Chrome??
* Firefox, you’re lovely.
*/
body {
background: red;
font: bold 400% Helvetica Neue, sans-serif;
color: white;
@SelenIT
SelenIT / dabblet.css
Last active August 29, 2015 14:19 — forked from LeaVerou/dabblet.css
Media query to detect full screen mode!
/**
* Media query to detect full screen mode!
* Y U NO WORK Chrome??
* Firefox, you’re lovely.
*/
body {
background: red;
font: bold 400% Helvetica Neue, sans-serif;
color: white;
@SelenIT
SelenIT / dabblet.css
Created April 27, 2012 21:12
CSS2.1 8.3.1 Collapsing margins
/**
* CSS2.1 8.3.1 Collapsing margins
*/
div { margin: 50px; background: #000; color: #fff; }
p { margin: 10px 0; background: rgba(128,255,192,.2); }
p+p { margin: 20px 0 }
p+p+p { margin: 30px 0 }
p+p+p+p { margin: 40px 0 }
p+p+p+p+p { margin: 60px 0 }