简体   繁体   English

默认情况下将Skeleton框架更改为1400px

[英]Altering Skeleton framework to 1400px as default

I'm quite new to skeleton but I would like to use it for a project. 我对骨架很陌生,但我想将它用于一个项目。 The project consists of 4 divs that have a maximum width of 1400px, and I would need these to scale down along with the browser. 该项目由4个div组成,最大宽度为1400px,我需要将它们与浏览器一起缩小。 I'm not sure how I would go about altering the standard sixteen column width of 960px to 1400px and the various media queries associated with it. 我不知道如何改变960px到1400px的标准十六列宽度以及与之相关的各种媒体查询。

Any help would be appreciated. 任何帮助,将不胜感激。

If anybody is interested in this, Ian Yates does a good job explaining it in this article/tutorial series: 如果有人对此感兴趣,Ian Yates在本文/教程系列中做了很好的解释:

http://webdesign.tutsplus.com/tutorials/complete-websites/building-a-responsive-layout-with-skeleton-widescreen/ http://webdesign.tutsplus.com/tutorials/complete-websites/building-a-responsive-layout-with-skeleton-widescreen/

It is simply a case of setting your desired min-width media query into skeleton.css and changing the values; 这只是将所需的最小宽度媒体查询设置为skeleton.css并更改值的情况; either percentage of pixel-based. 基于像素的百分比。 Here is mine as an example. 这是我的一个例子。

/* Note: Design for a width of 1400px */
@media only screen and (min-width: 1400px) {
    .container                                  { width: 1400px; } /*whatever you want - can even be fixed if you prefer*/
    .container .column,
    .container .columns                         { margin-left: 0.78125%; margin-right: 0.78125%;  }
    .container .one.column,
    .container .one.columns                     { width: 4.6875%; }
    .container .two.columns                     { width: 10.9375%; }
    .container .three.columns                   { width: 17.1875%; }
    .container .four.columns                    { width: 23.4375%; }
    .container .five.columns                    { width: 29.6875%; }
    .container .six.columns                     { width: 35.9375%; }
    .container .seven.columns                   { width: 42.1875%; }
    .container .eight.columns                   { width: 48.4375%; }
    .container .nine.columns                    { width: 54.6875%; }
    .container .ten.columns                     { width: 60.9375%; }
    .container .eleven.columns                  { width: 67.1875%; }
    .container .twelve.columns                  { width: 73.4375%; }
    .container .thirteen.columns                { width: 79.6875%; }
    .container .fourteen.columns                { width: 85.9375%; }
    .container .fifteen.columns                 { width: 92.1875%; }
    .container .sixteen.columns                 { width: 98.4375%; }
    .container .one-third.column                { width: 31.7708%; }
    .container .two-thirds.column               { width: 65.1041%; }
    /* Offsets */
    .container .offset-by-one                   { padding-left: 6.25%; }
    .container .offset-by-two                   { padding-left: 12.5%; }
    .container .offset-by-three                 { padding-left: 18.75%; }
    .container .offset-by-four                  { padding-left: 25%; }
    .container .offset-by-five                  { padding-left: 31.25%; }
    .container .offset-by-six                   { padding-left: 37.5%; }
    .container .offset-by-seven                 { padding-left: 43.75%; }
    .container .offset-by-eight                 { padding-left: 50%; }
    .container .offset-by-nine                  { padding-left: 56.25%; }
    .container .offset-by-ten                   { padding-left: 62.5%; }
    .container .offset-by-eleven                { padding-left: 68.75%; }
    .container .offset-by-twelve                { padding-left: 75%; }
    .container .offset-by-thirteen              { padding-left: 81.25%; }
    .container .offset-by-fourteen              { padding-left: 87.5%; }
    .container .offset-by-fifteen               { padding-left: 93.75%; }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM