Giter Club home page Giter Club logo

musubii's Introduction

MUSUBii

Site & Documentation

About

MUSUBii(ムスビー)は、日本語ウェブサイトの下地として使える CSS フレームワークです。

Packages

Credit

musubii's People

Contributors

dependabot[bot] avatar qrac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musubii's Issues

WYSIWYGのcodeサイズ調整

サイズ指定を間違えているので、通常のcodeより小さくなってしまっている。

before

.wysiwyg :not(pre) code {
  font-size: 0.765em;
}

after

.wysiwyg :not(pre) code {
  font-size: 0.875em;
}

グリッドのmargin検証

ブロック要素のmarginは、基本的に後ろの要素が前との距離を取るmargin設定を行っているが、グリッドは初期に作ったため、そのルールにのっとっていない。検討する。

ボタンCSSの見直し

使用頻度の下がってきているFlatタイプの削除。

.btn.is-flat {
  border-bottom: 3px solid $dark-7;
  transition: none;
  &:hover {
    border-bottom-width: 2px;
    margin-top: 1px;
  }
  &:active {
    border-bottom: 1px solid transparent;
    margin-top: 2px;
  }
  &.is-disable,
  &.is-disable:hover,
  &.is-disable:active {
    border-bottom: 3px solid $dark-9;
    margin-top: 0;
  }
}

AMP対応

  • 50KBまで(v1.2.0のmusubii.min.cssは52.9KB)
  • !important禁止

WYSIWYG imgタグ周りのマージン設定

書くのを忘れていた。_space.scssのWYSIWYG部分を更新する。

.wysiwyg {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    + h1,
    + h2,
    + h3,
    + h4,
    + h5,
    + h6 {
      margin-top: 1em;
    }
    + img,
    + p,
    + blockquote,
    + pre,
    + ul,
    + ol,
    + table,
    + hr {
      margin-top: 1em;
    }
  }
  img,
  p,
  blockquote,
  pre,
  ul,
  ol,
  table,
  hr {
    + h1,
    + h2,
    + h3,
    + h4,
    + h5,
    + h6 {
      margin-top: 2em;
    }
    + img,
    + p,
    + blockquote,
    + pre,
    + ul,
    + ol,
    + table,
    + hr {
      margin-top: 1em;
    }
  }
}

テンプレート制作

よくあるサイトレイアウト、WordPressテーマベースを先に作っておきたい。

テーブルCSSの見直し

幅の指定はHTMLもしくはプロジェクトごとのCSSにゆだねるので削除。

@for $i from 1 through $split-table {
  .table .box.is-width-#{$i} {
    width: 100% / $split-table * $i;
  }
}

100vhの指定方法

100vh超えた場合にコンテンツがセクションをまたぐ可能性。
IEバグを念のためチェック。

不要なutilityを除去

前回のアップデートで消している予定だった。

* {
  &.is-none-touch {
    @include touch {
      display: none;
    }
  }
  &.is-none-landscape {
    @include landscape {
      display: none;
    }
  }
  &.is-none-portrait {
    @include portrait {
      display: none;
    }
  }
}

jsDelivr リニューアル対応

CDNサービスとして配信をお願いしてきたjsDelivrが、npmとGitHubにアップしたものを自動的に取得する仕様に変わった。旧配信URLは残る。新しいアップデートは配信URLが変わっているので、ドキュメント・デモページに記載する。

MUSUBii / jsDelivr - GitHub

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/qrac/[email protected]/docs/css/musubii.min.css">

MUSUBii / jsDelivr - npm

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/docs/css/musubii.min.css">

select[multiple]のpadding調整

img_2481

デスクトップで見たときにselectよりoptionにpaddingつけた方がいいなと思って修正したけれど、iOSで効いていないみたい。ボタンがつぶれて見えてしまうのでまずい。

リンクの下線調整

IE11だとinheritでテキストの色が引き継がれない。currentColorを使う。

before

.text.is-link {
  cursor: pointer;
  border-bottom: 1px solid;
  &:hover {
    border-bottom-color: transparent;
  }
}

.text.is-link-reverse {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  &:hover {
    border-color: inherit;
  }
}

.wysiwyg a {
  cursor: pointer;
  color: $primary;
  border-bottom: 1px solid;
  &:hover,
  &:active {
    border-bottom-color: transparent;
  }
}

after

.text.is-link {
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  &:hover {
    border-bottom-color: transparent;
  }
}

.text.is-link-reverse {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  &:hover {
    border-color: currentColor;
  }
}

.wysiwyg a {
  cursor: pointer;
  color: $primary;
  border-bottom: 1px solid currentColor;
  &:hover {
    border-bottom-color: transparent;
  }
}

ボタンホバー時の変化速度を0.12sに変更

感覚的な判断でtransition: ease-out 0.15s;を設定してきたが、RAIL | Google Developersを考慮し修正を加える。

CSSのみのアニメーション設定としては0.16sをクリアしているが、マシンの処理による遅延やスクリプトの実行が絡むことを想定し、0.12sに早める。

※v2.3.0時点で、MUSUBiiには.btn以外にtransitionを使っていない。

メインメニューのスクロールバーが折り返されない件について

qracさんはじめまして。とてもよいフレームワークですね。一つ教えてください。下記デモをモバイルサイズで表示した場合、メインメニューにスクロールバーが表示される(折り返されない)のは意図した(何らかの外的要因による)挙動でしょうか?また、このことに関連することとして、DOCUMENTATIONには他のフレームワークによくあるナビゲーション部品(nav/navbar)が見当たりませんが、これは、今後開発予定なのか、それとも何らかの設計**があって敢えて作っていないのでしょうか?
https://qrac.github.io/musubii/
2017-05-26_081220
不躾な質問ですが、どうぞ宜しくお願いします。

spaceの小さいバージョン

モジュールの組み合わせによってmargin-topを設定しているが、場合によっては小さくしたり大きくしたい場合もあるので.is-margin-smなどの追記で調整できないだろうか。

ボタンのinline-block化

img_2480

submitのテキストがiOSで**寄せになっていない。
text-align: centerかければ直るか?

ユーティリティCSSの調整

不要なCSSを削除。

* {
  &.is-small {
    font-size: 80%;
  }
  &.is-super {
    vertical-align: super;
    font-size: 70%;
  }
  &.is-none-touch {
    @include touch {
      display: none;
    }
  }
  &.is-none-landscape {
    @include landscape {
      display: none;
    }
  }
  &.is-none-portrait {
    @include portrait {
      display: none;
    }
  }
}

フォームCSSの見直し

今一度、ブラウザデフォルトスタイルの確認を。(※差異はブラウザリロードで解決)

2017-05-02 14 01 18

2017-05-02 14 02 06

ボタン・フォームのmargin

2017-02-12 9 41 43

再度調整を検討。

  • 左寄せにする単純な仕様にしたが、margin-rightだけではコンテンツが左寄りになってしまう。
  • marginを左右にばらしては他のコンテンツと端が揃わない。marginが打ち消しあう問題も。
  • first-childの調整では、パーツが折り返した時に端が揃わない。
  • グリッドのようにflexコンテンツとアイテムを用意すれば解決するが、HTMLが複雑になる。

やはり親にネガティブマージンを設定する方向へ。
その場合の影響を再度検証すること。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.