This domain may be for sale!
This domain may be for sale!
ä»ã¯ã³ã¬ã§ãã $sprite2x: sprite-map("sprite2x/*.png"); $sprite-img:sprite-url($sprite2x); @mixin sprite-background2x($name) { background-image: sprite-url($sprite2x); background-repeat: no-repeat; overflow: hidden; width: image-width(sprite-file($sprite2x, $name)) / 2; height: image-height(sprite-file($sprite2x, $name)) / 2; $ypos: round(nth(sprite-position($sprite2x, $name), 2) / 2); background-positio
Posted on: 2013/06/21 Compass CSSã¹ãã©ã¤ã+Retina対å¿+ãã¼ã¿URIã¹ãã¼ã ã®Mixin [2014/06/27 æ´æ°] â» Sassã¨Compassã使ãããã¨ãåæ Compassã§CSSã¹ãã©ã¤ããã¦Retina対å¿ãã¦ãã¼ã¿URLã¹ãã¼ã ãè¡ãããã¯ã¹ã¤ã³ãä½ã£ãã®ã§ããã®ã¡ã¢ã æºå ãã£ã¬ã¯ããªæ§æã¯ä»¥ä¸ã®éãï¼Compassæ¨æºï¼ images/spritesãã£ã¬ã¯ããªã«å¿ è¦ãªç»åãæ ¼ç´ãã¦ããã ã³ã³ãã£ã°ãã¡ã¤ã«ã®ç·¨é relative_assetsã¯ããã«ãã¼é¢æ°ã§çæããURLãç¸å¯¾ãã¹ããããã¨ã絶対ãã¹ã§è¡¨ç¾ãããã®è¨å®ã ãããtrueã«ãããã¨ã§ãã¹ãã©ã¤ããçæããæã«ç¸å¯¾ãã¹ã«ãªãã®ã§è¨å®ãã¦ãããã¨ã > config.rb css_dir = "css" sass_dir = "sass" images_dir
Sassã«ã¤ãã¦ã¨Compasså°å ¥ããå©ç¨ã¾ã§ã®ç°¡åãªè§£èª¬ 2013-04-09 ã¯ããã« ãã®ãã¼ã¸ã§ã¯RubyãSassã®ã¤ã³ã¹ãã¼ã«æé ãªã©ã®åæ©çãªãã¨ããé«åº¦ãªSassã®ä½¿ç¨æ¹æ³ã«ã¤ãã¦ã¯ã»ã¨ãã©è§£èª¬ããã¦ãã¾ããã Sassã«èå³ããã£ã¦ããæ¹ããããã¯ãã§ã«Sassã使ç¨ãã¦ã㦠â¦ã¯ããã« ãã®ãã¼ã¸ã§ã¯RubyãSassã®ã¤ã³ã¹ãã¼ã«æé ãªã©ã®åæ©çãªãã¨ããé«åº¦ãªSassã®ä½¿ç¨æ¹æ³ã«ã¤ãã¦ã¯ã»ã¨ãã©è§£èª¬ããã¦ãã¾ããã Sassã«èå³ããã£ã¦ããæ¹ããããã¯ãã§ã«Sassã使ç¨ãã¦ãã¦ãããããCompassãBourbonã®å°å ¥ãèãã¦ããæ¹ã主ã«å¯¾è±¡ã¨ãã¦ãã¾ãã Sassã¨SCSS Sassã¨ã¯CSS3ã®æ¡å¼µã§ããããã¹ãã»å¤æ°ã»Mixinã»ã»ã¬ã¯ã¿ã®ç¶æ¿ãªã©ã®æ©è½ãå®è£ ããã¦ãã¾ãã以ä¸ã¯ãã®4ã¤ã®æ©è½ã使ã£ãããªã³ã¯ã¨ãã®ããã¼æã®è²ãå¤æ´ããä¾ã§ãã $l
ããã«ã¡ã¯ãUFOãã£ããã£ã¼éãæ¥éä¸ä¸ããã¶ã¤ãã¼ã®ãããã§ãã 輪ã£ããã¤ãããã¼ãã«ãã¼ç³»ããã¾ãåããããã«ãªãããâ¦(´ã»Ïã»ï½) æ°ãåãç´ãã¦ãä»åã¯Compassã使ã£ã¦ä½ã£ãCSSã¹ãã©ã¤ãç»åã§Retina対å¿ãè¡ãæ¹æ³ããç´¹ä»ãã¾ãã Compassã使ã£ã¦æ¸ãåºããã¹ãã©ã¤ãç»åãèªåã§Retina対å¿ã«ããã ã¹ãã©ã¤ãç»åã®çæ $sprites: sprite-map("sprites/*.png"); $sprites-img:sprite-url($sprites); ã¾ãã¯ã¹ãã©ã¤ãç»åãçæãã¾ãã åä¸ã®ç»åããã©ã«ãã«å ¥ããã¨ãè¦äºã«åä½ããã¹ãã©ã¤ãç»åãimagesãã©ã«ãã«æ¸ãåºããã¾ãã sprite-mapã«ã¯config.rbã§æå®ããimagesãã©ã«ã以ä¸ã®ã«ã¼ããå ¥ãã¦ä¸ããã Mixinãè¨è¿°ãã @mixin sprite-
ããã ï¼ã£ã¦ããRetina対å¿ããCSSã¹ãã©ã¤ãã®mixinããªãã£ããã ãããããã ããããããã«ããã£ã¦ãã¡ãã®mixinãåèã«ããã¦ããã ãã¾ãã ãããã¨ããããã¾ã https://gist.github.com/4072251 ä¾ï¼ ã¹ãã©ã¤ãç»åã®ãã£ã¬ã¯ã㪠buttons åã ã®ç»åå nav01,nav02,nav03,nav04 åã ã®ç»åã®ãµã¤ãºããã¹ã¦åããªå ´å mixin @mixin all-retina-sprites($map, $dimensions: false){ $base-class: sprite-map-name($map); $child-name: nth((sprite-names($map)),1); .#{$base-class} { background: sprite-url($map) no-repea
Compassã§ã¹ãã©ã¤ãç»è±¡ãé«éã«æ¸ãåºãæ¹æ³ Compassã§Retina対å¿ãããã¨ã³ã³ãã¤ã«ã«ãããã¨æéãããã£ã¦ãã¾ãã¾ãã 以ä¸ã®ã¾ã¾ã§ãã¨ãããæéããããã®ã§ããã $sprites: sprite-map("sprites/*.png"); @mixin sprite-background($name) { background-image: sprite-url($sprites); background-repeat: no-repeat; display: block; height: image-height(sprite-file($sprites, $name)) / 2; width: image-width(sprite-file($sprites, $name)) / 2; $ypos: round(nth(sprite-position($spri
Because I am an artist before being a developer, I will focus on offering the best experience to the user. That's what matter after all. Focusing on UX doesn't mean that compromises on what is under the hood are made. The right technologies have their responsibilities on the end result and they must not be neglected. Depending on your need, I will always be sure to offer you what is best to achiev
Iâm a Rubyist. But Iâm also a pragmatic front-end developer. When I have to write a full-stack solution, I pick Rails or Sinatra because writing Ruby is a joy and the Ruby ecosystem is so darn cool. But when I have to create a CMS-based site for myself or a client I love the usability and community behind WordPress. Although I can reluctantly lay Ruby aside when I extend WordPress, I really miss m
Update 01/11/12: new code at the bottom of this post. Sass has been kicking around for a while, but I hadnât given it a try until just recently. Sass usually goes hand-in-hand with Rails, Compass makes it so easy to run Sass on standalone projects that Iâve started using it on nearly everything. The result is faster, DRYer, more enjoyable coding. The biggest benefit for me has been Compassâs sprit
Susy was a responsive layout engine for Sass, before flexbox and CSS grid were available. Susy is now deprecated, and will not receive updates. If you need help moving off Susy, or learning the latest in web layout, we offer training and consulting to help bring you up-to-date. Contact us for details » Not everyone can play with the latest specs, and there will always be edge-cases that require ma
Surgeworks' Blog Our team talking about our company, our work, our client and each other. The responsive web design comes as a solution to better display content across tablets, mobiles phones and laptops of the most varied screen sizes and resolutions. In order to achieve a responsive layout, all we need is: a Flexible grid, Flexible Content (Images and Media) and CSS Media Queries. The use of th
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}