![]() |
| Two arancini (foreground and background) |
![]() |
| Onigiri at Konbini |
Google doesn't know yet that Arancini come in multiple shapes.
No luck also with Microsoft's CaptionBot:
This is the full Google's answer:
![]() |
| Two arancini (foreground and background) |
![]() |
| Onigiri at Konbini |
![]() |
![]() |
|
| #1 Openability |
BAD
This container is difficult to open. It require, at first to remove the blue cap. Then there is a small handle that need to be pulled. Sometime it breakes and the pulling action, due to the strenght required, may make you spill some milk |
GOOD
This container is Easy to open knowing the method. Can be opened with two single steps using one hand while the other hold the bottle. The moviment are slow and would not cause any spill |
|---|---|---|
| #2 Closability |
BAD
The cup net to be screwed to close so it requires some work. It is a separate object that can get lost. It doesn't seal the container ermetically but it gives the false impression that it does so someone may try to store it horizzontally causing milk to spill |
GOOD
To close the container it is enough to fold it back. It doesn't seal ermetically but it is close enough |
凸.SmallFontChecker.highlight()This will highlight in purple color all the text that is smaller than 14 pixels.
凸.SmallFontChecker.highlight("13px", "red")
To restore to the original version you can run the command
凸.SmallFontChecker.reset()After restoring the page you can run the highlight command with different parameters.
@media (min-width: 200px) {
.logo {
width: 50%;
}
}
When those two logos reach again the maximum width, the screen will be at 200px * 2 = 400px. Time to add a new media query:
@media (min-width: 400px) {
.logo {
width: 33.33333%;
}
}
And so on. To simplify the list of media queries I first created a mixin like
@mixin mediaQuery($lev) @media (min-width: $max-element-size * $lev) width: percentage( 1 / ( $lev + 1 ) )Then I created a loop that generate the media query with the mixin
@while $level < $max-levels @include mediaQuery($level) $level: $level + 1Now the page adjust itself beautifully and logos width is never wider than 200 pixels.
Size of the image (percentage) = minPerc +
((( maxPerc - minPerc ) / ( maxRatio - 1 )) * ( r - 1 ) );
Dove r is the ratio of the image that can go from 1 for squared logos to a very large number for rectangular logos. A logos of size 100px horizontal and 50px vertical would have a ratio of 100/50 = 2. The ratio in this case ignore if the logo is bigger horizontally or vertically. So, to calculate the ration I used this formula:
r = Math.min( Math.max(x,y) / Math.min(x,y), maxRatio );Where maxRatio is the maximum ratio that I will take in consideration. In my example I use 4 so that all logos that have a side longer more than 4 times the other side will all be treated in similar way.
