Giter Site home page Giter Site logo

Comments (2)

manabuyasuda avatar manabuyasuda commented on June 16, 2024

grid: trueは非推奨になっていて、代わりに"no-autoplace"を使う。
もしくは自動配置サポートもする"autoplace"を使う。

options

from website-template.

manabuyasuda avatar manabuyasuda commented on June 16, 2024

変換前

.container {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 50px 1fr 50px;
}

aside {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
}

header {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

grid:no-autoplacetrue)で変換後

.container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 200px 1fr;
  grid-template-columns: 200px 1fr;
  -ms-grid-rows: 50px 1fr 50px;
  grid-template-rows: 50px 1fr 50px
}
aside {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 1/2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  grid-row: 1/4
}
header {
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
  grid-column: 2/3;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1/2
}

autoplaceで変換後。no-autoplace.container > :nth-child(1)のセレクターが追加される。

.container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 200px 1fr;
  grid-template-columns: 200px 1fr;
  -ms-grid-rows: 50px 1fr 50px;
  grid-template-rows: 50px 1fr 50px
}
.container > :nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1
}
.container > :nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 2
}
.container > :nth-child(3) {
  -ms-grid-row: 2;
  -ms-grid-column: 1
}
.container > :nth-child(4) {
  -ms-grid-row: 2;
  -ms-grid-column: 2
}
.container > :nth-child(5) {
  -ms-grid-row: 3;
  -ms-grid-column: 1
}
.container > :nth-child(6) {
  -ms-grid-row: 3;
  -ms-grid-column: 2
}
aside {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 1/2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  grid-row: 1/4
}
header {
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
  grid-column: 2/3;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1/2
}

from website-template.

Related Issues (20)

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.