« first day (1125 days earlier)      last day (2663 days later) » 

12:35 AM
@tereško call them your slaves, let them carry the burden of data
 
 
6 hours later…
6:13 AM
posted on May 29, 2016

New Cyanide and Happiness Comic

 
 
4 hours later…
9:57 AM
o/
any ideas why attr(data-image) comes out as a string?
@mixin responsive-image {
  content: url("../images/320/#{attr(data-image)}");
  @media screen and (min-width: 768px) {
    content: url("../images/768/#{attr(data-image)}");
  }
}
but looks like there's no other way
trying to avoid passing the image name to the mixin
 
 
7 hours later…
5:25 PM
@Kitler I don't know how SCSS is supposed to be able to do that :P
 
 
3 hours later…
8:11 PM
@ZachSaucier nope, regular styling has to be inlined to work with gmail. And to save space you can remove it from the <style> tag
 
8:29 PM
Anyone found any interesting blogs or resources lately?
 
9:04 PM
What do you think about using random background images on login screens?
They might look fancy, but don't they confuse the user?
 
@ChristophBühler As long as the text is legible on top, shouldn't be a problem.
 
@MadaraUchiha In terms of UX, I understand your point of view, but there is a reason Google does not use such images, right?
 
@ChristophBühler There are many reasons why not to.
Size, loading time, design choices.
Mobile data plans
 
@ChristophBühler you have to pick a really good image for that
hmmm ....
 
I think it's a stylistic choice, more than anything. Just be aware at the cost. Nothing is free. Extra data means extra time and cost for your users.
 
9:13 PM
is there a sane way to make input[type=text] grow wider as you type in it?
 
JavaScript
 
@tereško JS, and I can only hope you're using monospace.
 
no monospace
 
Although, you can use span[conteneditable] instead
 
9:14 PM
You could calculate the text length on an external canvas heh
 
That will widen and even line break, by default.
 
yeah, that's one of the "not sane" ways
 
@tereško contenteditable span?
Or canvas?
 
yes
 
Why?
I've used it before, it's not so bad
 
9:15 PM
well .. ok ... there are degree of insane
 
Not as accessible as an input, no default form behavior
But still very usable, has decent JS APIs
 
But I am using IE6 :/
 
does it have full set of keyboard events?
 
@tereško Yeah
 
copy-paste?
 
9:16 PM
@tereško Yup
 
hmmm
 
It even supports partial styling (because it's a <span> it can contain other inlines).
 
focus() ?
 
@tereško Yeah
 
mmh .. ok, I will give it a try
 
9:17 PM
Most WYSIWYGs are written as a <div contenteditable> with extra fancy features
 
that's true
 

« first day (1125 days earlier)      last day (2663 days later) »