UNPKG

@atlassian/aui

Version:

Atlassian User Interface Framework

506 lines (504 loc) 14.3 kB
/** * PAGE LAYOUT */ .aui-header, #footer { clear: both; float: left; width: 100%; } #content { box-sizing: border-box; clear: both; position: relative; } #content:before { content: ""; clear: both; display: table; } #footer .footer-body a { color: #7A869A; } #footer .footer-body > ul, #footer .footer-body > p { margin: 10px 0 0 0; } #footer .footer-body > ul:first-child, #footer .footer-body > p:first-child { margin: 0; } #footer .footer-body > ul { display: block; font-size: 0; list-style: none; padding: 0; } #footer .footer-body > ul > li { display: inline-block; font-size: 12px; line-height: 1.66666667; padding: 0; white-space: nowrap; } #footer .footer-body > ul > li + li { margin-left: 10px; } #footer .footer-body > ul > li:after { content: "\b7"; /* mid dot */ margin-left: 10px; speak: none; } #footer .footer-body > ul > li:last-child:after { display: none; } /** * DEFAULT THEME SPACING */ #content { margin: 0; padding: 0; } /** * PAGE DESIGN */ body { background: #F4F5F7; color: #172B4D; } #footer .footer-body { color: #7A869A; font-size: 12px; line-height: 1.66666667; margin: 20px 0; padding: 0 10px 21px 10px; min-height: 44px; /* margin + height of image, means footer is just as high if no footer link present */ text-align: center; } /** * CONTENT PANEL */ #content > .aui-panel { background: #FFFFFF; margin: 20px 0 0 0; padding: 20px; border-color: #DFE1E6; border-style: solid; border-width: 1px 0; } #content > .aui-page-header { padding: 20px; } #content > .aui-page-header + .aui-panel { margin-top: 0; } #content > .aui-page-header:first-child { margin-top: 0; } .aui-panel + .aui-panel { margin-top: 20px; } /*! AUI Page Panel */ .aui-page-panel { background: #FFFFFF; border: 1px solid #DFE1E6; border-left-width: 0; border-right-width: 0; box-sizing: border-box; clear: both; display: block; margin: 20px 0 0 0; padding: 0; position: relative; width: 100%; } .aui-page-panel-inner { border-spacing: 0; display: table; table-layout: fixed; width: 100%; } .aui-page-panel-nav, .aui-page-panel-content, .aui-page-panel-item, .aui-page-panel-sidebar { box-sizing: border-box; display: table-cell; padding: 20px; vertical-align: top; } .aui-page-panel-nav { border-right: 1px solid #DFE1E6; width: 240px; } .aui-navgroup ~ .aui-page-panel .aui-page-panel-nav, .aui-sidebar ~ .aui-page-panel .aui-page-panel-nav, .aui-page-header ~ .aui-page-panel .aui-page-panel-nav { background: #FFFFFF; } .aui-page-panel .aui-page-panel-nav { background: #F4F5F7; } .aui-page-panel-sidebar { width: 35%; } .aui-page-panel-item { padding: 0; } .aui-page-panel-nav ~ .aui-page-panel-sidebar { width: 30%; } /* Page Panel Interops */ .aui-page-header + .aui-page-panel, .aui-navbar + .aui-page-panel { margin-top: 0; } .aui-navbar + .aui-page-panel { border-top: none; } .aui-page-panel-nav > .aui-nav-vertical, .aui-page-panel-nav > .aui-navgroup-vertical { margin-left: -10px; margin-right: -10px; /* tree indication for nested aui-nav's. it is expected that these are always expanded and no icons are added to the nav items. */ } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav { margin-top: 0; padding: 0 0 0 20px; } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li { position: relative; } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li::before, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li::before, .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li::after, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li::after { background-color: #DFE1E6; content: ""; left: -5px; position: absolute; } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li::before, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li::before { bottom: 0; top: 0; width: 1px; } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li::after, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li::after { height: 1px; top: 14px; width: 5px; } .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li:last-child::before, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li:last-child::before, .aui-page-panel-nav > .aui-nav-vertical .aui-nav .aui-nav > li.aui-nav-more::before, .aui-page-panel-nav > .aui-navgroup-vertical .aui-nav .aui-nav > li.aui-nav-more::before { bottom: 50%; } .aui-page-panel-content > .aui-navgroup-horizontal { margin-left: -20px; margin-right: -20px; } .aui-navgroup-horizontal + .aui-page-panel { border-top: 0; margin-top: 0; } .aui-page-panel-content > .aui-navgroup-horizontal:first-child { margin-top: -20px; } /** * Page variations */ .aui-page-focused .aui-page-header, .aui-page-focused .aui-page-panel, .aui-page-focused #footer .footer-body, .aui-page-notification .aui-page-header, .aui-page-notification .aui-page-panel, .aui-page-notification #footer .footer-body, .aui-page-fixed .aui-header-inner, .aui-page-fixed .aui-page-header-inner, .aui-page-fixed .aui-navgroup-horizontal .aui-navgroup-inner, .aui-page-fixed .aui-page-panel-inner, .aui-page-fixed #footer .footer-body, .aui-page-hybrid .aui-page-header, .aui-page-hybrid .aui-navgroup-horizontal .aui-navgroup-inner, .aui-page-hybrid .aui-page-panel-inner, .aui-page-hybrid #footer .footer-body { margin-left: auto; margin-right: auto; width: 980px; } /* extra width so left edge of hoverable content aligns with left edge of content while inactive. On hover, the hover affordance does extend outside the alignment but this looks better than the other way around. */ .aui-page-fixed .aui-header-inner, .aui-page-fixed .aui-navgroup-horizontal .aui-navgroup-inner, .aui-page-hybrid .aui-navgroup-horizontal .aui-navgroup-inner { width: 1000px; } .aui-page-focused-small .aui-page-header, .aui-page-size-small .aui-page-header, .aui-page-focused-small .aui-page-panel, .aui-page-size-small .aui-page-panel, .aui-page-focused-small #footer .footer-body, .aui-page-size-small #footer .footer-body { width: 400px; } .aui-page-focused-medium .aui-page-header, .aui-page-size-medium .aui-page-header, .aui-page-focused-medium .aui-page-panel, .aui-page-size-medium .aui-page-panel, .aui-page-focused-medium #footer .footer-body, .aui-page-size-medium #footer .footer-body { width: 600px; } .aui-page-focused-large .aui-page-header, .aui-page-size-large .aui-page-header, .aui-page-focused-large .aui-page-panel, .aui-page-size-large .aui-page-panel, .aui-page-focused-large #footer .footer-body, .aui-page-size-large #footer .footer-body { width: 800px; } .aui-page-focused-xlarge .aui-page-header, .aui-page-size-xlarge .aui-page-header, .aui-page-focused-xlarge .aui-page-panel, .aui-page-size-xlarge .aui-page-panel, .aui-page-focused-xlarge #footer .footer-body, .aui-page-size-xlarge #footer .footer-body { width: 980px; } .aui-page-focused .aui-page-panel, .aui-page-notification .aui-page-panel { border-radius: 3px; border-width: 1px; } .aui-page-fixed .aui-page-panel-inner, .aui-page-fixed #content > .aui-page-header { padding-left: 0; padding-right: 0; } .aui-page-fixed .aui-page-panel-nav:first-child, .aui-page-fixed .aui-page-panel-content:first-child, .aui-page-fixed .aui-page-panel-item:first-child, .aui-page-fixed .aui-page-panel-sidebar:first-child, .aui-page-hybrid .aui-page-panel-nav:first-child, .aui-page-hybrid .aui-page-panel-content:first-child, .aui-page-hybrid .aui-page-panel-item:first-child, .aui-page-hybrid .aui-page-panel-sidebar:first-child { padding-left: 0; } .aui-page-fixed .aui-page-panel-nav:last-child, .aui-page-fixed .aui-page-panel-content:last-child, .aui-page-fixed .aui-page-panel-item:last-child, .aui-page-fixed .aui-page-panel-sidebar:last-child, .aui-page-hybrid .aui-page-panel-nav:last-child, .aui-page-hybrid .aui-page-panel-content:last-child, .aui-page-hybrid .aui-page-panel-item:last-child, .aui-page-hybrid .aui-page-panel-sidebar:last-child { padding-right: 0; } /* reset to 100% inside page panel */ .aui-page-panel .aui-page-header { width: auto; } .aui-page-panel .aui-page-header-inner { width: 100%; } /** * TABS AS FIRST CHILD IN CONTENT * Explicitly sets bg to white, changes horizontal hovers to work on grey. * Remember these extend the standard component styles. */ #content > .aui-tabs { margin: 20px; } #content > .aui-tabs > .tabs-pane { padding-top: 20px; padding-bottom: 20px; } /** * AUI Forms inside of a focused page */ .aui-page-focused .aui-page-panel-content > h2:first-child, .aui-page-notification .aui-page-panel-content > h1:first-child { border-bottom: 1px solid #DFE1E6; margin-bottom: 20px; padding-bottom: 20px; } .aui-page-notification .aui-page-panel { margin-top: 50px; } .aui-page-notification .aui-page-panel-content { color: #7A869A; padding: 40px; text-align: center; } .aui-page-notification .aui-page-panel-content .aui-page-notification-description { font-size: 20px; } .aui-page-notification .aui-page-panel-content form.aui .text { margin-right: 10px; } .aui-page-notification-details { margin: 0 auto; max-width: 90%; width: 980px; } .aui-page-notification-details-header { color: #7A869A; margin: 20px auto 0; position: relative; text-align: center; } .aui-page-notification-details-header-expander { display: flex; align-items: center; align-content: center; justify-content: center; } .aui-page-notification-details-header-expander::before, .aui-page-notification-details-header-expander::after { border-top: 1px solid #DFE1E6; content: ''; display: block; flex: 1; } .aui-page-notification-details-header-expander .aui-expander-trigger { background-color: rgba(9, 30, 66, 0.08); display: inline-block; padding: 10px; position: relative; } .aui-page-focused .aui-page-panel-content > form.aui .buttons-container { border-top: 1px solid #DFE1E6; margin-top: 20px; padding-top: 20px; } @media screen and (max-width: 767px) { html.aui-responsive .aui-page-fixed #content > .aui-page-header, html.aui-responsive .aui-page-hybrid #content > .aui-page-header, html.aui-responsive .aui-page-fixed .aui-page-panel-inner, html.aui-responsive .aui-page-hybrid .aui-page-panel-inner, html.aui-responsive .aui-page-fixed .aui-header-inner, html.aui-responsive .aui-page-hybrid .aui-header-inner, html.aui-responsive .aui-page-fixed .aui-navgroup-horizontal .aui-navgroup-inner, html.aui-responsive .aui-page-hybrid .aui-navgroup-horizontal .aui-navgroup-inner, html.aui-responsive .aui-page-fixed #footer .footer-body, html.aui-responsive .aui-page-hybrid #footer .footer-body { box-sizing: border-box; width: 100%; } html.aui-responsive .aui-page-header-inner { display: block; width: 100%; } html.aui-responsive .aui-page-header-actions { display: block; width: auto; text-align: left; margin-top: 20px; padding-left: 0; padding-right: 20px; } } @media screen and (max-width: 800px) { html.aui-responsive .aui-page-hybrid .aui-page-header, html.aui-responsive .aui-page-hybrid .aui-page-panel-inner, html.aui-responsive .aui-page-hybrid .aui-page-fixed .aui-header-inner, html.aui-responsive .aui-page-hybrid .aui-navgroup-horizontal .aui-navgroup-inner { box-sizing: border-box; width: 100%; } } @media screen and (max-width: 1023px) { html.aui-responsive .aui-page-fixed #content > .aui-page-header, html.aui-responsive .aui-page-hybrid #content > .aui-page-header, html.aui-responsive .aui-page-fixed .aui-page-panel-inner, html.aui-responsive .aui-page-hybrid .aui-page-panel-inner { padding-left: 20px; padding-right: 20px; } html.aui-responsive .aui-page-panel-content, html.aui-responsive .aui-page-panel-sidebar { display: block; padding-left: 0; padding-right: 0; width: auto; } html.aui-responsive .aui-page-fixed .aui-header-inner, html.aui-responsive .aui-page-fixed .aui-page-header-inner, html.aui-responsive .aui-page-fixed .aui-page-panel-inner, html.aui-responsive .aui-page-fixed #footer .footer-body { box-sizing: border-box; width: 100%; } } html.aui-responsive #footer .footer-body > ul > li { white-space: normal; } @media screen and (max-width: 400px) { html.aui-responsive .aui-page-focused-small .aui-page-header, html.aui-responsive .aui-page-focused-small .aui-page-panel { box-sizing: border-box; width: 100%; } html.aui-responsive .aui-page-focused-small .aui-page-panel { margin-top: 0; } html.aui-responsive .aui-page-focused-small .aui-page-panel { border-radius: 0; border-left: 0; border-right: 0; } } @media screen and (max-width: 600px) { html.aui-responsive .aui-page-focused-medium .aui-page-header, html.aui-responsive .aui-page-focused-medium .aui-page-panel { box-sizing: border-box; width: 100%; } html.aui-responsive .aui-page-focused-medium .aui-page-panel { margin-top: 0; } html.aui-responsive .aui-page-focused-medium .aui-page-panel { border-radius: 0; border-left: 0; border-right: 0; } } @media screen and (max-width: 800px) { html.aui-responsive .aui-page-focused-large .aui-page-header, html.aui-responsive .aui-page-focused-large .aui-page-panel { box-sizing: border-box; width: 100%; } html.aui-responsive .aui-page-focused-large .aui-page-panel { margin-top: 0; } html.aui-responsive .aui-page-focused-large .aui-page-panel { border-radius: 0; border-left: 0; border-right: 0; } } @media screen and (max-width: 980px) { html.aui-responsive .aui-page-focused-xlarge .aui-page-header, html.aui-responsive .aui-page-focused-xlarge .aui-page-panel { box-sizing: border-box; width: 100%; } html.aui-responsive .aui-page-focused-xlarge .aui-page-panel { margin-top: 0; } html.aui-responsive .aui-page-focused-xlarge .aui-page-panel { border-radius: 0; border-left: 0; border-right: 0; } } /*# sourceMappingURL=aui-page-layout.css.map */