You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/assets/stylesheets/components/_page.scss

92 lines
1.4 KiB

11 years ago
//
// Page
//
._page {
position: relative;
&._page-error { position: static; }
11 years ago
> h1 { @extend ._lined-heading; }
> h1:first-child { margin-top: 0; }
a[href^="http:"], a[href^="https:"] { @extend %external-link; }
a:not([href]) {
color: inherit;
text-decoration: none;
}
iframe {
display: block;
margin-bottom: 1em;
11 years ago
padding: 1px;
10 years ago
border: 1px dotted $boxBorder;
11 years ago
border-radius: 3px;
}
}
//
// Links
//
._links {
position: absolute;
top: 0;
right: 0;
margin: 0;
line-height: 2em;
text-align: right;
+ h1 { margin-top: 0; }
@media (max-width: 1023px) { display: none; }
}
._links-link {
display: inline-block;
vertical-align: top;
padding: 0 .5rem;
background: $contentBackground;
@extend %internal-link;
& + & { margin-left: .75rem; }
&:first-child { padding-left: 1rem; }
&:last-child { padding-right: 0; }
}
11 years ago
//
// Attribution box
//
._attribution {
clear: both;
margin: 2rem 0 1.5rem;
font-size: .75rem;
color: $textColorLight;
text-align: center;
-webkit-font-smoothing: subpixel-antialiased;
& + & { margin-top: 1.5rem; }
& + & > ._attribution-link { display: none; }
}
._attribution-p {
display: inline-block;
margin: 0;
padding: .25rem .75rem;
10 years ago
background: $labelBackground;
11 years ago
border-radius: 3px;
}
._attribution-link { @extend %internal-link; }
//
// Entry list
//
._entry-list {
padding-left: 1em;
list-style: none;
}