$doc_coverage_color: #999; $content_wrapper_width: 980px; html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td { background: transparent; border: 0; font-size: 100%; margin: 0; outline: 0; padding: 0; vertical-align: baseline; } #reference { .declaration .Swift pre { // Ensure that declarations wrap, as they're a single line white-space: pre-wrap; font-size: 140%; } .x-instance-method.Swift { margin-left: 15px; } .chapter { overflow-x: hidden; border-top: 0; border-left: 1px solid rgba(233, 233, 233, 1); border-right: 1px solid rgba(233, 233, 233, 1); border-bottom: 1px solid rgba(233, 233, 233, 1); } .nav-chapters { height: 100%; } .part-name { color: #000; cursor: default; padding: 15px 15px 15px 20px; min-height: 61px; &.tasks { background: #fff; overflow: auto; } } .book-parts a { display: initial; margin-left: 0; } .nav-chapters li { color: rgba(128, 128, 128, 1); margin-left: 12px; padding-left: 10px; text-indent: -10px; } .chapter-name { margin-top: 21px; } } .rubber-band-gap { background: #fff; height: 250px; position: fixed; width: 734px; z-index: -1; top: 70px; margin: 0 0 0 247px; } #reference { .task-name-container { background: #fff; left: -25px; margin-bottom: 0; padding: 35px 25px 0; position: relative; width: 100%; } .section-name { cursor: pointer; display: inline-block; } .section .section { margin-top: 0; } .task-group-section { padding: 1px 25px 0; } .symbol { background: #fff; left: -25px; list-style-type: none; padding: 13px 25px 0; position: relative; width: 100%; } .task-group-term { font-size: 1.4em; word-break: break-all; > code { display: inline-block; } } .pointy-thing-container { background: #fff; border-bottom: 1px solid rgba(233, 233, 233, 1); left: -25px; padding-left: 25px; padding-right: 25px; padding-bottom: 13px; position: relative; width: 100%; } .pointy-thing { background: rgba(249, 249, 249, 1); border-left: 1px solid rgba(233, 233, 233, 1); border-top: 1px solid rgba(233, 233, 233, 1); height: 12px; left: 21px; top: -7px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); position: absolute; width: 12px; } .height-container { display: none; left: -25px; padding: 0 25px; position: relative; width: 100%; overflow: hidden; .section { background: rgba(249, 249, 249, 1); border-bottom: 1px solid rgba(233, 233, 233, 1); left: -25px; margin: 0; padding: 13px 25px 0; position: relative; width: 100%; h4 { font-size: 13px; line-height: 1.5; margin-top: 21px; } } } .section .declaration { margin-top: 21px; code { color: rgba(128, 128, 128, 1); margin-bottom: 15px; padding-bottom: 6px; } } .declaration div .para { margin-bottom: 0; } .task-group .item .graybox { margin: 5px 0 26px; } .symbol .graybox .para:last-of-type { margin-bottom: 0; padding-bottom: 0; } .parameters .graybox tr td:first-of-type { text-align: right; padding: 7px; vertical-align: top; word-break: normal; width: 40px; } em { &.term, &.parameter-name { color: rgba(65, 65, 65, 1); font-size: 12px; line-height: 1.5; } } .height-container .section > div:last-of-type { margin-bottom: 15px; } #footer { width: 614px; z-index: 1; } .item .para { padding-bottom: 0; margin: 0 0 15px; } a[name] { padding-top: 112px; margin: -112px 0 0; } .height-container td { max-width: inherit; } .declaration .n a { color: inherit; &:hover { border-bottom: 1px solid; } } .copyright { margin: 10px 0; } } .nav-chapters { font-weight: 400; line-height: 110%; list-style-position: outside; list-style-type: none; margin: 0; padding: 8px 0 0; height: 100%; width: 200px; position: relative; top: 15px; } body { background-color: rgba(242, 242, 242, 1); color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 62.5%; margin: 0 auto; -webkit-font-smoothing: subpixel-antialiased; } a[name] { display: block; padding-top: 85px; margin: -85px 0 0; width: 0; height: 0; } .content-wrapper { background-color: rgba(242, 242, 242, 1); margin: 0 auto; width: $content_wrapper_width; } .pixel-line { background: rgba(233, 233, 233, 1); height: 1px; position: fixed; top: 70px; width: 734px; z-index: 3; top: 70px; margin: 0 0 0 247px; } .chapter { background-color: #fff; border: 1px solid rgba(233, 233, 233, 1); border-top: 0; box-shadow: 0 0 1px rgba(0, 0, 0, 0.07); display: block; margin-left: 246px; min-height: calc(100% - 173px); min-height: -moz-calc(100% - 173px); min-height: -webkit-calc(100% - 173px); min-height: -o-calc(100% - 173px); position: absolute; overflow: auto; padding-bottom: 100px; top: 70px; -webkit-overflow-scrolling: touch; width: 734px; } #hierarchial_navigation { float: left; font-size: 1.4em; margin-top: 29px; vertical-align: middle; } .section { padding: 15px 25px 0px; .section { margin: 30px 0 0; padding: 0; } } header { background-color: rgba(65, 65, 65, 1); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.07); color: #fff; height: 25px; letter-spacing: .05em; position: fixed; top: 0; width: 100%; z-index: 4; } .header-text { font-size: 1.1em; margin: 0 auto; padding-top: 6px; vertical-align: middle; float: left; color: $doc_coverage_color; a { color: #fff; text-decoration: none; } } #header-icon { padding-right: 8px; vertical-align: -3px; } #header-links a { float: right; padding-top: 4px; padding-left: 16px; font-size: 1.1em; vertical-align: middle; margin: 0 auto; color: #fff; text-decoration: none; } #valence { background-color: rgba(242, 242, 242, 1); display: block; height: 60px; padding-top: 10px; position: fixed; top: 0; width: 100%; z-index: 3; } #carat { margin: 0 10px; } #design_resources_link { color: rgba(0, 136, 204, 1); text-decoration: none; } .para { color: rgba(65, 65, 65, 1); font-size: 1.4em; line-height: 145%; margin-bottom: 15px; } .chapter-name { color: rgba(0, 0, 0, 1); display: block; font-family: Helvetica; font-size: 2.8em; font-weight: 100; margin-bottom: 0; padding: 15px 25px; width: 63%; margin-top: 21px; } .chapter a { color: rgba(0, 136, 204, 1); text-decoration: none; } h3.section-name:before { display: block; content: " "; margin-top: -85px; height: 85px; visibility: hidden; } .section-name { color: rgba(128, 128, 128, 1); display: block; font-family: Helvetica; font-size: 2.2em; font-weight: 100; margin-bottom: 15px; } .copyright { clear: both; color: rgba(160, 160, 160, 1); float: none; margin: 70px 25px 10px 0; } .link { color: rgba(0, 136, 204, 1); text-decoration: none; } .item p { margin: 0; padding-bottom: 6px; } .book-parts { background-color: rgba(249, 249, 249, 1); border-top: 1px solid rgba(233, 233, 233, 1); border-left: 1px solid rgba(233, 233, 233, 1); border-right: 1px solid rgba(233, 233, 233, 1); bottom: 0; box-shadow: 0 0 1px rgba(0, 0, 0, 0.07); overflow: auto; -webkit-overflow-scrolling: touch; position: fixed; top: 70px; width: 230px; } .nav-parts { color: rgba(128, 128, 128, 1); font-weight: 100; line-height: 140%; list-style-type: none; margin: 0; -webkit-padding-start: 0; } .part-name { border-bottom: 1px solid rgba(233, 233, 233, 1); font-family: Helvetica; font-size: 1.6em; line-height: 150%; list-style-type: none; margin: 0; padding: 15px 30px 15px 20px; cursor: pointer; } .nav-chapters { font-weight: 400; line-height: 110%; list-style-position: outside; list-style-type: none; margin: 0; margin-bottom: 10px; padding: 0; height: 0; overflow: hidden; -webkit-transition: height .3s ease-in-out; -moz-transition: height .3s ease-in-out; -o-transition: height .3s ease-in-out; -ms-transition: height .3s ease-in-out; transition: height .3s ease-in-out; } .nav-chapter { font-size: .8em; list-style-position: outside; list-style-type: none; margin: 0; padding: 0 0 8px; } .nav-chapters .nav-chapter { margin-left: 0; } .book-parts a { color: rgba(128, 128, 128, 1); display: block; text-decoration: none; margin-left: 24px; } .aside-title { color: rgba(128, 128, 128, 1); font-size: 9px; letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase; } div.Swift { padding: 4px 0 2px 10px; margin: 10px 0 21px; border-left: 5px solid rgba(205, 233, 244, 1); .aside-title { color: rgba(75, 138, 251, 1); -webkit-user-select: none; } } #footer { font-size: 1.1em; bottom: 0; color: rgba(0, 136, 204, 1); margin: 0 25px; position: absolute; width: 684px; } .graybox { border: 1px solid rgba(233, 233, 233, 1); border-collapse: collapse; border-spacing: 0; empty-cells: hide; margin: 20px 0 36px; text-align: left; width: 100%; p { margin: 0; word-break: break-word; min-width: 50px; } } td { border: 1px solid rgba(233, 233, 233, 1); padding: 5px 25px 5px 10px; margin: 0; vertical-align: middle; max-width: 260px; } #reference .rubber-band-gap { background: #fff; height: 250px; position: fixed; width: 734px; z-index: -1; } .readme { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: rgba(65, 65, 65, 1); overflow: hidden; font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; font-size: 16px; line-height: 1.6; word-wrap: break-word; a { background: transparent; &:active, &:hover { outline: 0; } } strong { font-weight: bold; } h1 { font-size: 2em; margin: 0.67em 0; } img { border: 0; } hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre { font-family: monospace, monospace; font-size: 1em; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } * { -moz-box-sizing: border-box; box-sizing: border-box; } a { color: #4183c4; text-decoration: none; &:hover, &:focus, &:active { text-decoration: underline; } } hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; &:before { display: table; content: ""; } &:after { display: table; clear: both; content: ""; } } h1, h2, h3, h4, h5, h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 16px; } h4 { font-size: 14px; } h5 { font-size: 12px; } h6 { font-size: 11px; } blockquote { margin: 0; } ul, ol { padding: 0; margin-top: 0; margin-bottom: 0; } ol ol, ul ol { list-style-type: lower-roman; } ul ul ol, ul ol ol, ol ul ol, ol ol ol { list-style-type: lower-alpha; } dd { margin-left: 0; } code { font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } & > *:first-child { margin-top: 0 !important; } & > *:last-child { margin-bottom: 0 !important; } h1, h2, h3, h4, h5, h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } h3 { font-size: 1.5em; line-height: 1.43; } h4 { font-size: 1.25em; } h5 { font-size: 1em; } h6 { font-size: 1em; color: #777; } p, blockquote, ul, ol, dl, table, pre { margin-top: 0; margin-bottom: 16px; } hr { height: 4px; padding: 0; margin: 16px 0; background-color: #e7e7e7; border: 0 none; } ul, ol { padding-left: 2em; } ul ul, ul ol, ol ol, ol ul { margin-top: 0; margin-bottom: 0; } li > p { margin-top: 16px; } dl { padding: 0; dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } dd { padding: 0 16px; margin-bottom: 16px; } } blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; & > :first-child { margin-top: 0; } & > :last-child { margin-bottom: 0; } } table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; th { font-weight: bold; } th, td { padding: 6px 13px; border: 1px solid #ddd; } tr { background-color: #fff; border-top: 1px solid #ccc; &:nth-child(2n) { background-color: #f8f8f8; } } } img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; &:after, &:before { letter-spacing: -0.2em; content: "\00a0"; } } pre > code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .highlight { margin-bottom: 16px; } .highlight pre, pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .highlight pre { margin-bottom: 0; word-break: normal; } pre { word-wrap: normal; code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; &:before, &:after { content: normal; } } } } html.dash { .book-parts { display: none; width: 0; } .chapter { width: $content_wrapper_width; margin-left: 0; } #reference { .height-container { display: block; } .x-instance-method { margin-left: 0; } } }