タグ

cssとyuiに関するyhmtのブックマーク (5)

  • CSSをYUI Compressorで圧縮したらMedia Queriesが動かなくなった

    By geirarne (CC BY-NC-SA 2.0) YUI Compressorを使ってCSS3 Media Qureriesの入ったCSSを圧縮したらうまく動かなくなった。なにかと思って調べてみたら、どうやらYUI Compressor 2.4.2の問題らしいです。最新版を使えば問題なさそうですが、まだ古いバージョンを使っている方はお気をつけください。 Media Queriesの以下のスペースが取られてしまうために起こるエラーだそうです。 @media only screen and (max-width:320px) { h1 {font-size: 108%;} } 圧縮の際に、上記CSSから次のように「and」と「(max-device)」の間のスペースが取られてしまうために、問題が起こります: @media only screen and(max-width:320px

    CSSをYUI Compressorで圧縮したらMedia Queriesが動かなくなった
    yhmt
    yhmt 2011/11/01
  • YUI 3: CSS Resetの問題

    ブラウザごとのデフォルト・スタイルシートの違いを吸収するためのスタイルシートをメンテするのが面倒になったので、YUI 3のCSS Resetを使うことにした。が、このサイトではちょっとした問題が起こった。少し前にTwitterでつぶやいたりしたhtml要素にbackground-colorやbackground-imageを指定した場合、body要素の背景が描画エリアいっぱいにならなくなるというCSSの仕様絡みの問題。 この仕様によってbody要素に指定していたヘッダの背景画像がずれてしまった(ずれるサンプル)。ずれる理由は上記仕様によりbody要素の上下でmarginの相殺が起こり、marginの相殺が起こった部分は透明(親であるhtml要素)が透けて見える)ようになり、背景画像の開始点はそれに続くbody要素のコンテント・エリアになるから。 html { color: #000; ba

    YUI 3: CSS Resetの問題
    yhmt
    yhmt 2009/12/09
  • Refresh-SF - Online JavaScript and CSS Compressor

    We've moved! I finally got around to moving Refresh-SF to a GitHub/Heroku setup. The old tool is completely shut down, but you can find the shiny new tool over here. As always, feedback is welcome. Go to the compressor

    yhmt
    yhmt 2009/11/13
    YUI Compresser のオンライン版
  • YUI 3 — Yahoo! User Interface Library

    The YUI team is pleased to announce YUI 3.0 Preview Release 1. This preview is an early look at what we're working on for the next generation of YUI Library. Please review the API, play with the examples, and read the documentation on this site for details; download YUI 3.0 PR1 on the YUI project area on SourceForge; you can find us with questions or comments on the YUI 3.x discussion group. Pleas

  • YUI 3: CSS Base

    CSS Base is an optional CSS file that complements YUI's core CSS foundation (CSS Reset and CSS Fonts). CSS Base applies a style foundation for HTML elements that is consistent for A-grade browsers. CSS Base may also be useful as a template for your own base file, or a snippets library for styling HTML elements. More Information Examples: CSS Base in action. Download: CSS Base as part of the full Y

    yhmt
    yhmt 2009/11/06
  • 1