当前位置:首页 >> 药膳食疗 >> 阅读Skeleton.css源码,改善睡眠密度(尽管它只有419行代码)

阅读Skeleton.css源码,改善睡眠密度(尽管它只有419行代码)

发布时间:2024-10-18

< divclass= "row">

< divclass= "four columns"> Fout

< divclass= "eight columns"> Eight

< divclass= "row">

< divclass= "five columns"> Five

< divclass= "seven columns"> Seven

< divclass= "row">

< divclass= "six columns"> Six

< divclass= "six columns"> Six

< divclass= "row">

< divclass= "twelve columns"> Twelve

< style>

.row.column, .row.columns{ margin-bottom: 10px; background: #eee;

}

本例适用了 .container 作为液体,容许了较大阔度是 980px ,并且水准居当中。

因为结构设计液体是不获取文化背景和内都边距等外观上,所以本例读完到了一个文化背景色给 .columns 以便检视。

.row 这个却是不却是需要纳的,本例添纳这个类只是希望标识符看慢慢地能愈发易读完。

比率结构设计

获取了 3 个类名,却是需要配合 .column 适用。

.one-third :三分之一 .two-thirds :三分之二 .one-half :一半

< divclass= "row">

< divclass= "one-third column"> 1/3

< divclass= "two-thirds column"> 2/3

< divclass= "row">

< divclass= "one-half column"> 1/2

< divclass= "one-half column"> 1/2

< style>

.row.column, .row.columns{ margin-bottom: 10px; background: #eee;

}

四支反转

< divclass= "row">

< divclass= "offset-by-eleven one columns"> One

< divclass= "row">

< divclass= "offset-by-ten two columns"> Two

< divclass= "row">

< divclass= "offset-by-nine three columns"> Three

< divclass= "row">

< divclass= "offset-by-eight four columns"> Fout

< divclass= "row">

< divclass= "offset-by-seven five columns"> Five

< divclass= "row">

< divclass= "offset-by-six six columns"> Six

< divclass= "row">

< divclass= "offset-by-five seven columns"> Seven

< divclass= "row">

< divclass= "offset-by-four eight columns"> Eight

< divclass= "row">

< divclass= "offset-by-three nine columns"> Nine

< divclass= "row">

< divclass= "offset-by-two ten columns"> Ten

< divclass= "row">

< divclass= "offset-by-one eleven columns"> Eleven

< divclass= "row">

< divclass= "offset-by-two-thirds one-third column"> 1/3

< divclass= "row">

< divclass= "offset-by-one-third two-thirds column"> 2/3

< divclass= "row">

< divclass= "offset-by-one-half one-half column"> 1/2

< style>

.container{ border: 1pxsolid #ccc;

} .row.column, .row.columns{ margin-bottom: 10px; background: #eee;

}

程大体上型码比对

结构设计却是分了几个外:

液体外 四支(已确定个数) 四支(比率) 四支条带 四支反转 液体外

.container{

position: relative; /* 相较定位 */

width: 100%; /* 液体阔度100% */

max-width: 960px; /* 但较大阔度不最多980px */

margin: 0auto; /* 水准居当中 */

padding: 020px; /* 液体右下右内边距20px */

box-sizing: border-box; /* 新设液体纸制三维,新设了液体的圆点、内边距都不想最多液体阔度 */}

/* 当液体不之比400px时 */

@ media(min-width: 400px) {

.container{

width: 85%; /* 阔度为85% */

padding: 0; /* 内边距为0 */

}

}

/* 当液体不之比550px时 */

@ media(min-width: 550px) {

.container{

width: 80%; /* 阔度80,同时padding受到 @media (min-width: 400px) 内都新设的阻碍 */

}

}

.container:after{

content: "";

display: table;

clear: both;

/* 清空见下文 */

}

液体适用了 container 这个类名,可以可知 skeleton 是先读完到了小屏的解决方案,然后再继续读完到大屏的。

当前持续性下(PDF阔度之比 400px ), container 液体的阔度是 100% ,较大阔度是 980px ,通过 margin: 0 auto; 意味着了水准居当中缺点。 当PDF阔度更少于等同 400px 时,液体阔度消失 85% ,但也就会被较大阔度(980px)容许,同时内边距所设 0 。 当PDF阔度更少于等同 550px 时,液体阔度消失 80% ,就会遮盖 @media (min-width: 400px) 内都新设的阔度,但就会受到 @media (min-width: 400px) 内都新设的 padding 阻碍。 就此新设了一个实为类型 :after 清空见下文( clear: both; )。 四支结构设计(鼓动大体上型的开始)

Skeleton.css 适用 见下文 + 比率的作法意味着鼓动大体上型。

四支(已确定个数 )、** 四支(比率)** 和 四支条带这三个要放在朋友们讲到。

skeleton 合计有 12 四支结构设计,所以配置了大体上的:one、two、three、four、five、six、seven、eight、nine、ten、eleven、twelve。

都是基础的数别号中文名,我就不中文翻译了。

这内都要分 2 种持续性来发表意见,

能正数 12 的(one、two、three、four、six、twelve) 不会正数 12 的(five、seven、eight、nine、then、eleven)

接依然就会分开发表意见这两种持续性。

.column, .columns{ width: 100%; /* 所有四支的阔度都是100%。*/ float: left; /* 右下见下文 */ box-sizing: border-box; /* 新设液体纸制三维,新设了液体的圆点、内边距都不想最多液体阔度 */ }

@ media(min-width: 550px) { .column, .columns{ margin-left: 4%; /* 右下边距4% */}.column:first-child, .columns:first-child{ margin-left: 0; /* 第一个类型不却是需要右下边距,所以所设0 */}

.one.column, .one.columns{ width: 4.66666666667%; } .two.columns{ width: 13.3333333333%; } .three.columns{ width: 22%; } .four.columns{ width: 30.6666666667%; } .five.columns{ width: 39.3333333333%; } .six.columns{ width: 48%; } .seven.columns{ width: 56.6666666667%; } .eight.columns{ width: 65.3333333333%; } .nine.columns{ width: 74.0%; } .ten.columns{ width: 82.6666666667%; } .eleven.columns{ width: 91.3333333333%; } .twelve.columns{ width: 100%; margin-left: 0; } /* 只有一四支,不却是需要右下边距了 */

/* 1/3,互换 .four */.one-third.column{ width: 30.6666666667%; } /* 2/3,互换 .eight */.two-thirds.column{ width: 65.3333333333%; }

/* 1/2,互换 .six */.one-half.column{ width: 48%; } }

当前持续性下(PDF阔度之比 550px )所有四支的阔度都是 100% 。 除了第一四支,上面跟着的四支都有一个 4%的右下边距 。 能正数 12 的

.one 、 .two 、 .three 、 .four 、 .six 、 .twelve

结构设计作法如下左图所示(本文只详细讲到 .one 和 .two 两种四支,其他的原理都是一样的,自己推算没法)

从上左图可以可知,都适用 .one 的话,合计有 12 四支、 11 个间隔时间,偷偷地的阔度是 100% ,每个间隔时间的占到比是 4% ,11 个间隔时间合计就花干脆了 44% ,剩下 56% 给 12 四支次之。

所以 .one 的阔度就是 56 ÷ 12 ≈ 4.66666666667 ,单位是 %

都用 .two 的话,从上左图可以可知合计有 6 四支、 5 个间隔时间,每个间隔时间的阔度是 4% ,5 个间隔时间合计占到用 20% 的阔度,剩下 80% 的阔度给 6 四支次之。

** 所以 .two 的阔度就是 80 ÷ 6 ≈ 13.3333333333 ,单位是 % **

剩下的我就这样一来读完到关系大体上型了,懂的可以在纽约时报区内发表意见~

关系大体上型:(100% - 间隔时间数量 × 4%) ÷ 四支的数量

.three :(100% - 4% × 3) ÷ 4 = 22% .six :(100% - 4% × 1) ÷ 2 = 48% .twelve :就是 100% 咯,而且不却是需要右下边距 不会正数 12 的

.five 、 .seven 、 .eight 、 .nine 、 .then 、 .eleven

首先看 .five ,代表 5,12 - 5 = 7,但以前 .five 和 .seven 的个数是多更少我们都不并不知道,虽然可以按 5:7 再继续纳一个 间隔时间(4%) 来测算,但我更愿意适用推断的个数来推算。

.two + .five + .five 三四支纳慢慢地刚好是 12,而 .two 的个数我们是并不知道的,由此可以得到一个代数大体上型:

间隔时间的占到比是 4% 所以得到下面的代数大体上型

根据纸片的小学生归纳法,并不知道一个 .five 是 39.3333333333%

.seven

刚刚有讲到到, 5 + 7 = 12,那以前 5出来了, 7也就通过纳减法能算出来

.five + 间隔时间 + .seven = 100%

综上所述, .seven 的阔度是 56.6666666667%

这是我的归纳作法,就此的个数也和 skeleton 的个数一样。 .eight 、 .nine 、 .then 、 .eleven 的归纳作法却是也和纸片一样,这内都我就才会继续啰嗦了。有疑问的可以在纽约时报区内学术交流。

就此得出

.nine :74.0% 比率 .one-third :三分之一。互换 .four .two-thirds :三分之二。互换 .eight .one-half :一半。互换 .six 四支反转

四支反转的类名都是 .offset-by- 段落的,上面再继续连带互换的数别号或者比率的词根。

@ media(min-width: 550px) { .offset-by-one.column, .offset-by-one.columns{ margin-left: 8.66666666667%; } .offset-by-two.column, .offset-by-two.columns{ margin-left: 17.3333333333%; } .offset-by-three.column, .offset-by-three.columns{ margin-left: 26%; } .offset-by-four.column, .offset-by-four.columns{ margin-left: 34.6666666667%; } .offset-by-five.column, .offset-by-five.columns{ margin-left: 43.3333333333%; } .offset-by-six.column, .offset-by-six.columns{ margin-left: 52%; } .offset-by-seven.column, .offset-by-seven.columns{ margin-left: 60.6666666667%; } .offset-by-eight.column, .offset-by-eight.columns{ margin-left: 69.3333333333%; } .offset-by-nine.column, .offset-by-nine.columns{ margin-left: 78.0%; } .offset-by-ten.column, .offset-by-ten.columns{ margin-left: 86.6666666667%; } .offset-by-eleven.column, .offset-by-eleven.columns{ margin-left: 95.3333333333%; }

.offset-by-one-third.column, .offset-by-one-third.columns{ margin-left: 34.6666666667%; } .offset-by-two-thirds.column, .offset-by-two-thirds.columns{ margin-left: 69.3333333333%; }

.offset-by-one-half.column, .offset-by-one-half.columns{ margin-left: 52%; } }

如果用 .offset-by-one ,那我们就却是需要论点上面的内容可说明完是 12。

1 + 11 = 12,我们通过纸片的测算并不知道 .eleven 的阔度是 91.3333333333% ,所以 .offset-by-one 的占到比是:

.offset-by-one = 100% - .eleven

其他的 .offset-by-two 、 .offset-by-three 那些也可以用某种程度的法则去测算。就此再继续和 skeleton 的个数对比一下没法。

基础外观上 Base Styles

这外主要界定了具体来说 别号体和 行距的外观上,效用在 html 和 body 附加上。

适用法则

< div> 雷猴

程大体上型码比对

看看这外的程大体上型码:

html{

font-size: 62.5%; /* 16px × 62.5% = 10px */

}

body{

font-size: 1.5em; /* 10px × 1.5 = 15px */

line-height: 1.6; /* 15px * 1.6 = 24px */

font-weight: 400; /* 别号体粗细 */

font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; /* 别号体 */

color: #222; /* 重构粉红色 */

}

HTML的当前武进是 16px ,在 html 新设武进是 62.5% ,那就是消失 10px 了。

在 body 新设 font-size: 1.5em; ,那么之后的内容可当前都就会承传 body 的,也就是普通的重构是 15px 。

就此再继续新设 行高、 别号体粗细、 别号体、 重构粉红色。

印刷技术 Typography

不却是需要适用特别的类名,这外效用在 h1 ~ h6 附加当中。适用了 rem 的作法新设别号体大小,就会受到 附加别号体大小阻碍。

适用法则

< h1> Heading

< h2> Heading

< h3> Heading

< h4> Heading

< h5> Heading

< h6> Heading

< p> The base type is 15px over 1.6 line height (24px)

程大体上型码比对

h1, h2, h3, h4, h5, h6{ margin-top: 0; margin-bottom: 2rem; font-weight: 300; } h1{ font-size: 4.0rem; line-height: 1.2; letter-spacing: -. 1rem;} h2{ font-size: 3.6rem; line-height: 1.25; letter-spacing: -. 1rem; } h3{ font-size: 3.0rem; line-height: 1.3; letter-spacing: -. 1rem; } h4{ font-size: 2.4rem; line-height: 1.35; letter-spacing: -. 08rem; } h5{ font-size: 1.8rem; line-height: 1.5; letter-spacing: -. 05rem; } h6{ font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }

/* Larger than phablet */@ media(min-width: 550px) { h1{ font-size: 5.0rem; } h2{ font-size: 4.2rem; } h3{ font-size: 3.6rem; } h4{ font-size: 3.0rem; } h5{ font-size: 2.4rem; } h6{ font-size: 1.5rem; } }

p{ margin-top: 0; }

这段程大体上型码却是有一点好断言的了,主要新设了 h1 ~ h6 的 内都边距、 武进、 文别号粗细、 行高、 别号距,并且用 电子媒体查找来之后界定有所不同尺寸的HTML阔度显示出来的标题 武进有所不同。

就此界定了段落 p 的下边距,这内都的 p 的武进当前承传 body 内都的新设,也就是 15px 。

元数据 Links适用法则

< a> Colored

程大体上型码比对

a{

color: #1EAEDB; }

a:hover{

color: #0FA0CE; }

这内都只界定了 a 的别号体粉红色,还有滑鼠经过时的粉红色。武进当前承传 body ,也就是 15px 。

操纵杆 Buttons适用法则

< aclass= "button"href= "#"> Anchor button

< button> Button element

< inputtype= "submit"value= "submit input">

< inputtype= "button"value= "button input">

< aclass= "button button-primary"href= "#"> Anchor button

< buttonclass= "button-primary"> Button element

< inputclass= "button-primary"type= "submit"value= "submit input">

< inputclass= "button-primary"type= "button"value= "button input">

程大体上型码比对

/* 当前外观上 */.button, button,

input[type="submit"],

input[type="reset"],

input[type="button"]{

display: inline-block; /* 行内块 */

height: 38px; /* 移动性 */

padding: 030px; /* 内边距:上下0,右下右30px */

color: #555; /* 别号体粉红色:紫色(实在太更深) */

text-align: center; /* 本文居当中 */

font-size: 11px; /* 武进 */

font-weight: 600; /* 别号体稍微纳粗 */

line-height: 38px; /* 行高(和height一样,所以是向下居当中了) */

letter-spacing: . 1rem; /* 别号距 */

text-transform: uppercase; /* 别号母消失全大读完到 */

text-decoration: none; /* 不却是需要重构修饰 */

white-space: nowrap; /* 不冒号 */

background-color: transparent; /* 文化背景色:绿色 */

border-radius: 4px; /* 菱形:4px */

border: 1pxsolid #bbb; /* 圆点:1px,下边,灰白色灰 */

cursor: pointer; /* 滑鼠指针外观上 */

box-sizing: border-box; /* 纸制三维前提 */

}

/* 滑鼠经过、赢取关注点 */.button:hover,

button:hover,

input[type="submit"]:hover,

input[type="reset"]:hover,

input[type="button"]:hover,

.button:focus,

button:focus,

input[type="submit"]:focus,

input[type="reset"]:focus,

input[type="button"]:focus{

color: #333; /* 文别号粉红色比当前更深或许 */

border-color: #888; /* 圆点粉红色比当前更深或许 */

outline: 0; /* 形状:0 */

}

/* primary类型 */

.button.button-primary,

button.button-primary,

input[type="submit"].button-primary,

input[type="reset"].button-primary,

input[type="button"].button-primary{

color: #FFF; /* 别号变白 */

background-color: #33C3F0; /* 文化背景自是蓝 */

border-color: #33C3F0; /* 圆点颜自是蓝 */

}

/* 适用primary类型时:滑鼠经过、赢取关注点 */

.button.button-primary:hover,

button.button-primary:hover,

input[type="submit"].button-primary:hover,

input[type="reset"].button-primary:hover,

input[type="button"].button-primary:hover,

.button.button-primary:focus,

button.button-primary:focus,

input[type="submit"].button-primary:focus,

input[type="reset"].button-primary:focus,

input[type="button"].button-primary:focus{

color: #FFF; /* 重构粉红色 */

background-color: #1EAEDB; /* 文化背景自是更深或许 */

border-color: #1EAEDB; /* 圆点颜自是更深或许 */

}

操纵杆的意味着作法有很多种,比如 、 等等,这内都就不一一四支举固山了, skeleton 把这类持续性都读完到好了,可以这样一来在程大体上型码当中看不到。

skeleton 获取了 2 当中外观上的操纵杆,一个是当前的(白时为黑别号),一个是 primary 的(蓝时为白别号)。

还有一些选当中状态。

skeleton 的不合时宜是先读完到好当前的,其他状态都在当前状态的基础上遮盖新的外观上。

程序中 Forms适用法则

< form>

< divclass= "row">

< divclass= "six columns">

< labelfor= "exampleEmailInput"> Your email

< inputclass= "u-full-width"type= "email"placeholder= "test@mailbox.com"id= "exampleEmailInput">

< divclass= "six columns">

< labelfor= "exampleRecipientInput"> Reason for contacting

< selectclass= "u-full-width"id= "exampleRecipientInput">

< optionvalue= "Option 1"> Questions

< optionvalue= "Option 2"> Admiration

< optionvalue= "Option 3"> Can I get your number?

< labelfor= "exampleMessage"> Message

< textareaclass= "u-full-width"placeholder= "Hi De …"id= "exampleMessage">

< labelclass= "example-send-yourself-copy">

< inputtype= "checkbox">

< spanclass= "label-body"> Send a copy to yourself

< inputclass= "button-primary"type= "submit"value= "Submit">

程大体上型码比对

/* 单行重构框、多行重构框、依然选择器 */

input[type="email"],

input[type="number"],

input[type="search"],

input[type="text"],

input[type="tel"],

input[type="url"],

input[type="password"],

textarea,

select{

height: 38px; /* 移动性 */

padding: 6px10px; /* 内边距:上下6px,右下右10px */

background-color: #fff; /* 文化背景色:粉红色 */

border: 1pxsolid #D1D1D1; /* 圆点:1px,下边,紫色 */

border-radius: 4px; /* 菱形:4px */

box-shadow: none; /* 对角:无 */

box-sizing: border-box; /* 纸制三维 */

}

/* 针对单行和多行重构框的外观上新设*/

input[type="email"],

input[type="number"],

input[type="search"],

input[type="text"],

input[type="tel"],

input[type="url"],

input[type="password"],

textarea{

-webkit-appearance: none;

-moz-appearance: none;

appearance: none; /* 外表 */

}

/* 多行重构框 */

textarea{

min-height: 65px; /* 大于移动性是65px,就会遮盖纸片新设的height */

padding-top: 6px; /* 上内边距 */

padding-bottom: 6px; /* 下内边距 */

}

/* 单行重构框、多行重构框、依然选择器 获取关注点时 */

input[type="email"]:focus,

input[type="number"]:focus,

input[type="search"]:focus,

input[type="text"]:focus,

input[type="tel"]:focus,

input[type="url"]:focus,

input[type="password"]:focus,

textarea:focus,

select:focus{

border: 1pxsolid #33C3F0; /* 圆点:1px,下边,蓝色 */

outline: 0; /* 形状:0 */

}

/* label(附加)

legend(重新组合程序中当中的相关类型,legend 类型为 fieldset 类型界定标题) */

legend(重新组合程序中当中的相关类型,legend 类型为 fieldset 类型界定标题) */

label,

legend{

display: block; /* 粒状 */

margin-bottom: . 5rem; /* 下内都边距 */

font-weight: 600; /* 别号体实在太粗 */

}

/* fieldset(可将程序中内的相关类型分组) */

fieldset{

padding: 0; /* 内边距 */

border-width: 0; /* 圆点阔度 */

}

/* 多选和单选 */

input[type="checkbox"],

input[type="radio"]{

display: inline; /* 行内 */

}

/* label附加下的 .label-body,可看适用例子 */

label> .label-body{

display: inline-block; /* 行内 */

margin-left: . 5rem; /* 右下内都边距:5px */

font-weight: normal; /* 别号体粗细 */

}

表四支出 Lists适用法则

< ul>

< li> Item 1

< li>

Item 2 < ul>

< li> Item 2.1

< li> Item 2.2

< li> Item 3 < ol>

< li> Item 1

< li>

Item 2 < ol>

< li> Item 2.1

< li> Item 2.2

< li> Item 3

程大体上型码比对

/* 无序表四支出 */

ul{

list-style: circle inside; /* 标记外观上:圆,下侧 */

}

/* 有序表四支出 */

ol{

list-style: decimal inside; /* 标记外观上:进制,下侧 */

}

ol, ul{

padding-left: 0; /* 前方内边距:0 */

margin-top: 0; /* 前方内都边距:0 */

}

/* 嵌套表四支出 */

ulul,

ulol,

olol,

olul{

margin: 1.5rem01.5rem3rem; /* 内都边距 */

font-size: 90%; /* 武进 */

}

/* 表四支出项 */

li{

margin-bottom: 1rem; /* 下内都边距 */

}

标识符 Code适用法则

< pre> < code> .some-class {

background-color: red;

}

程大体上型码比对

code{

padding: . 2rem. 5rem; /* 内边距 */

margin: 0. 2rem; /* 内都边距 */

font-size: 90%; /* 武进 */

white-space: nowrap; /* 不冒号 */

background: #F1F1F1; /* 文化背景色:超级灰白色的紫色 */

border: 1pxsolid #E1E1E1; /* 圆点:1px,下边,紫色 */

border-radius: 4px; /* 菱形:4px */}

pre> code{

display: block; /* 粒状 */

padding: 1rem1.5rem; /* 内边距 */

white-space: pre; /* 值得注意就会被HTML保留。*/

}

code 和 pre 是 HTML 原生附加。

注记 Tables适用法则

< table>

< thead>

< tr>

< th> Name

< th> Age

< th> Sex

< th> Location

< tbody>

< tr>

< td> De Gamache

< td> 26

< td> Male

< td> San Francisco

< tr>

< td> Dwayne Johnson

< td> 42

< td> Male

< td> Hayward

程大体上型码比对

/* tag的四支 和 普通四支 */

th,

td{

padding: 12px15px; /* 内边距 */

text-align: left; /* 重构右下反转 */

border-bottom: 1pxsolid #E1E1E1; /* 时为圆点 */

}

/* 第一个tag的四支 和 每行第一个普通四支 */

th:first-child,

td:first-child{

padding-left: 0; /* 右下内边距 */

}

/* 就此一个tag的四支 和 每行就此一个普通四支 */

th:last-child,

td:last-child{

padding-right: 0; /* 右内边距 */

}

没法想到注记的 css 外观上这么最简单吧哈哈哈哈~

间隔时间 Spacing程大体上型码比对

button,

.button{

margin-bottom: 1rem;

}

input,

textarea,

select,

fieldset{

margin-bottom: 1.5rem;

}

pre,

blockquote,

dl,

figure,

table,

p,

ul,

ol,

form{

margin-bottom: 2.5rem;

}

这外主要界定惯用的附加和类的上部内都边距,想像中最简单,不一一细讲到了。

工具集 Utilities程大体上型码比对

.u-full-width{

width: 100%;

box-sizing: border-box;

}

.u-max-full-width{

max-width: 100%;

box-sizing: border-box;

}

.u-pull-right{

float: right;

}

.u-pull-left{

float: left;

}

这外程大体上型码想像中最简单了,不讲到了~

.u-full-width :阔度满屏 .u-max-full-width :较大阔度是满屏 .u-pull-right :右见下文 .u-pull-left :右下见下文 分割线 Hr适用法则

程大体上型码比对

hr{

margin-top: 3rem;

margin-bottom: 3.5rem;

border-width: 0;

border-top: 1pxsolid #E1E1E1;

}

上下新设了内都边距 清空干脆所有 border 就此再继续新设回侧面圆点为 1px,下边,紫色 清空见下文 Clearing程大体上型码比对

.container:after,

.row:after,

.u-cf{

content: "";

display: table;

clear: both;

}

液体和 宣慰新设了明确见下文。

.u-cf 是专门明确见下文的。

明确见下文的不合时宜在很多基础的 css 教程有讲到,这内都才会继续啰嗦了。

电子媒体查找 Media Queries程大体上型码比对

@media( min-width: 400px) {}

@media( min-width: 550px) {}

@media( min-width: 750px) {}

@media( min-width: 1000px) {}

@media( min-width: 1200px) {}

这外的程大体上型码,是预留给开发人员自己读完到的。

如果开发人员却是需要自己之后界定某些类型的外观上,根据有所不同的窗口阔度来界定,可以在此编读完到。

Skeleton.css 程大体上型码

/** Skeleton V2.0.4* Copyright 2014, De Gamache* www.getskeleton.com* Free to use under the MIT license.* * 12/29/2014*/

/* Table of contents––––––––––––––––––––––––––––––––––––––––––––––––––- Grid- Base Styles- Typography- Links- Buttons- Forms- Lists- Code- Tables- Spacing- Utilities- Clearing- Media Queries*/

/* Grid–––––––––––––––––––––––––––––––––––––––––––––––––– */.container{ position: relative; width: 100%; max-width: 960px; margin: 0auto; padding: 020px; box-sizing: border-box; } .column, .columns{ width: 100%; float: left; box-sizing: border-box; }

/* For devices larger than 400px */@ media(min-width: 400px) { .container{ width: 85%; padding: 0; } }

/* For devices larger than 550px */@ media(min-width: 550px) { .container{ width: 80%; } .column, .columns{ margin-left: 4%; } .column:first-child, .columns:first-child{ margin-left: 0; }

.one.column, .one.columns{ width: 4.66666666667%; } .two.columns{ width: 13.3333333333%; } .three.columns{ width: 22%; } .four.columns{ width: 30.6666666667%; } .five.columns{ width: 39.3333333333%; } .six.columns{ width: 48%; } .seven.columns{ width: 56.6666666667%; } .eight.columns{ width: 65.3333333333%; } .nine.columns{ width: 74.0%; } .ten.columns{ width: 82.6666666667%; } .eleven.columns{ width: 91.3333333333%; } .twelve.columns{ width: 100%; margin-left: 0; }

.one-third.column{ width: 30.6666666667%; } .two-thirds.column{ width: 65.3333333333%; }

.one-half.column{ width: 48%; }

/* Offsets */.offset-by-one.column, .offset-by-one.columns{ margin-left: 8.66666666667%; } .offset-by-two.column, .offset-by-two.columns{ margin-left: 17.3333333333%; } .offset-by-three.column, .offset-by-three.columns{ margin-left: 26%; } .offset-by-four.column, .offset-by-four.columns{ margin-left: 34.6666666667%; } .offset-by-five.column, .offset-by-five.columns{ margin-left: 43.3333333333%; } .offset-by-six.column, .offset-by-six.columns{ margin-left: 52%; } .offset-by-seven.column, .offset-by-seven.columns{ margin-left: 60.6666666667%; } .offset-by-eight.column, .offset-by-eight.columns{ margin-left: 69.3333333333%; } .offset-by-nine.column, .offset-by-nine.columns{ margin-left: 78.0%; } .offset-by-ten.column, .offset-by-ten.columns{ margin-left: 86.6666666667%; } .offset-by-eleven.column, .offset-by-eleven.columns{ margin-left: 95.3333333333%; }

.offset-by-one-third.column, .offset-by-one-third.columns{ margin-left: 34.6666666667%; } .offset-by-two-thirds.column, .offset-by-two-thirds.columns{ margin-left: 69.3333333333%; }

.offset-by-one-half.column, .offset-by-one-half.columns{ margin-left: 52%; }

}

/* Base Styles–––––––––––––––––––––––––––––––––––––––––––––––––– *//* NOTEhtml is set to 62.5% so that all the REM measurements throughout Skeletonare based on 10px sizing. So basically 1.5rem = 15px :) */html{ font-size: 62.5%; } body{ font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */line-height: 1.6; font-weight: 400; font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; }

/* Typography–––––––––––––––––––––––––––––––––––––––––––––––––– */h1, h2, h3, h4, h5, h6{ margin-top: 0; margin-bottom: 2rem; font-weight: 300; } h1{ font-size: 4.0rem; line-height: 1.2; letter-spacing: -. 1rem;} h2{ font-size: 3.6rem; line-height: 1.25; letter-spacing: -. 1rem; } h3{ font-size: 3.0rem; line-height: 1.3; letter-spacing: -. 1rem; } h4{ font-size: 2.4rem; line-height: 1.35; letter-spacing: -. 08rem; } h5{ font-size: 1.8rem; line-height: 1.5; letter-spacing: -. 05rem; } h6{ font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }

/* Larger than phablet */@ media(min-width: 550px) { h1{ font-size: 5.0rem; } h2{ font-size: 4.2rem; } h3{ font-size: 3.6rem; } h4{ font-size: 3.0rem; } h5{ font-size: 2.4rem; } h6{ font-size: 1.5rem; } }

p{ margin-top: 0; }

/* Links–––––––––––––––––––––––––––––––––––––––––––––––––– */a{ color: #1EAEDB; } a:hover{ color: #0FA0CE; }

/* Buttons–––––––––––––––––––––––––––––––––––––––––––––––––– */.button, button, input[type="submit"], input[type="reset"], input[type="button"]{ display: inline-block; height: 38px; padding: 030px; color: #555; text-align: center; font-size: 11px; font-weight: 600; line-height: 38px; letter-spacing: . 1rem; text-transform: uppercase; text-decoration: none; white-space: nowrap; background-color: transparent; border-radius: 4px; border: 1pxsolid #bbb; cursor: pointer; box-sizing: border-box; } .button:hover, button:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, .button:focus, button:focus, input[type="submit"]:focus, input[type="reset"]:focus, input[type="button"]:focus{ color: #333; border-color: #888; outline: 0; } .button.button-primary, button.button-primary, input[type="submit"].button-primary, input[type="reset"].button-primary, input[type="button"].button-primary{ color: #FFF; background-color: #33C3F0; border-color: #33C3F0; } .button.button-primary:hover, button.button-primary:hover, input[type="submit"].button-primary:hover, input[type="reset"].button-primary:hover, input[type="button"].button-primary:hover, .button.button-primary:focus, button.button-primary:focus, input[type="submit"].button-primary:focus, input[type="reset"].button-primary:focus, input[type="button"].button-primary:focus{ color: #FFF; background-color: #1EAEDB; border-color: #1EAEDB; }

/* Forms–––––––––––––––––––––––––––––––––––––––––––––––––– */input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea, select{ height: 38px; padding: 6px10px; /* The 6px vertically centers text on FF, ignored by Webkit */background-color: #fff; border: 1pxsolid #D1D1D1; border-radius: 4px; box-shadow: none; box-sizing: border-box; } /* Removes awkward default styles on some inputs for iOS */input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea{ -webkit-appearance: none; -moz-appearance: none; appearance: none; } textarea{ min-height: 65px; padding-top: 6px; padding-bottom: 6px; } input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="text"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, textarea:focus, select:focus{ border: 1pxsolid #33C3F0; outline: 0; } label, legend{ display: block; margin-bottom: . 5rem; font-weight: 600; } fieldset{ padding: 0; border-width: 0; } input[type="checkbox"], input[type="radio"]{ display: inline; } label> .label-body{ display: inline-block; margin-left: . 5rem; font-weight: normal; }

/* Lists–––––––––––––––––––––––––––––––––––––––––––––––––– */ul{ list-style: circle inside; } ol{ list-style: decimal inside; } ol, ul{ padding-left: 0; margin-top: 0; } ulul, ulol, olol, olul{ margin: 1.5rem01.5rem3rem; font-size: 90%; } li{ margin-bottom: 1rem; }

/* Code–––––––––––––––––––––––––––––––––––––––––––––––––– */code{ padding: . 2rem. 5rem; margin: 0. 2rem; font-size: 90%; white-space: nowrap; background: #F1F1F1; border: 1pxsolid #E1E1E1; border-radius: 4px; } pre> code{ display: block; padding: 1rem1.5rem; white-space: pre; }

/* Tables–––––––––––––––––––––––––––––––––––––––––––––––––– */th, td{ padding: 12px15px; text-align: left; border-bottom: 1pxsolid #E1E1E1; } th:first-child, td:first-child{ padding-left: 0; } th:last-child, td:last-child{ padding-right: 0; }

/* Spacing–––––––––––––––––––––––––––––––––––––––––––––––––– */button, .button{ margin-bottom: 1rem; } input, textarea, select, fieldset{ margin-bottom: 1.5rem; } pre, blockquote, dl, figure, table, p, ul, ol, form{ margin-bottom: 2.5rem; }

/* Utilities–––––––––––––––––––––––––––––––––––––––––––––––––– */.u-full-width{ width: 100%; box-sizing: border-box; } .u-max-full-width{ max-width: 100%; box-sizing: border-box; } .u-pull-right{ float: right; } .u-pull-left{ float: left; }

/* Misc–––––––––––––––––––––––––––––––––––––––––––––––––– */hr{ margin-top: 3rem; margin-bottom: 3.5rem; border-width: 0; border-top: 1pxsolid #E1E1E1; }

/* Clearing–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Self Clearing Goodness */.container:after, .row:after, .u-cf{ content: ""; display: table; clear: both; }

/* Media Queries–––––––––––––––––––––––––––––––––––––––––––––––––– *//*Note: The best way to structure the use of media queries is to create the queriesnear the relevant code. For example, if you wanted to change the styles for buttonson small devices, paste the mobile query code up in the buttons section and style itthere.*/

/* Larger than mobile */@ media(min-width: 400px) {}

/* Larger than phablet (also point when grid becomes active) */@ media(min-width: 550px) {}

/* Larger than tablet */@ media(min-width: 750px) {}

/* Larger than desktop */@ media(min-width: 1000px) {}

/* Larger than Desktop HD */@ media(min-width: 1200px) {}

< br>

在在主流脚本语言性能PK,结果出乎意料 被不当一些公司,源代码概念设计原作者欲众筹60万打官司 面向程序员的精品源代码别号体

这内都有最新源代码资讯、该软件更新、技术干货等内容可

点这内都 ↓↓↓ 记得 关注✔ 标星⭐ 哦~

夏天中暑怎么办
消化不良想吐吐不出来怎么办
江中牌健胃消食片

宝宝拉肚子吃什么止泻
艾得辛艾拉莫德片与羟氯喹比哪个疗效好
前列腺增生夜里尿急怎么办
民得维和先诺欣哪个好
再林阿莫西林胶囊可以治什么病
阳了以后出现黄痰需要使用抗菌药物吗
标签:
友情链接: