base.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. html,
  2. body {
  3. margin: 0;
  4. font-size: 14px;
  5. background-color: #F0F0F0;
  6. height: 100%;
  7. width: 100%;
  8. font-family: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  9. }
  10. h1,
  11. h2,
  12. h3,
  13. h4,
  14. h5,
  15. h6,
  16. .h1,
  17. .h2,
  18. .h3,
  19. .h4,
  20. .h5,
  21. .h6 {
  22. font-family: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  23. font-weight: 500;
  24. line-height: 1.1;
  25. color: #0e6b8d;
  26. }
  27. /* Content rendering styles */
  28. #content {
  29. font-size: 1.2em;
  30. line-height: 1.8em;
  31. }
  32. #content h1 {
  33. padding: 0.5em 0em 0em 0em;
  34. }
  35. #content h2 {
  36. padding: 0.5em 0em 0.3em 0em;
  37. /* Desktop click-to-scroll margin/padding fixes */
  38. padding-top: 2em !important;
  39. margin-top: -2em !important;
  40. pointer-events:none;
  41. }
  42. #content h3 {
  43. padding: 0.7em 0em 0.3em 0em;
  44. }
  45. #content ul {
  46. margin: 1em 0em 1.2em 0.3em;
  47. }
  48. #content li {
  49. margin: 0.5em 0em 0.3em 0em;
  50. }
  51. #content p {
  52. margin-bottom: 1.2em;
  53. }
  54. #content pre {
  55. margin: 1em 0em;
  56. padding: 0.5em 0.75em !important;
  57. line-height: 1.8em;
  58. background: #fff;
  59. overflow-x: auto;
  60. }
  61. #content pre code {
  62. word-wrap: normal;
  63. white-space: pre;
  64. }
  65. #content blockquote {
  66. background: #fff;
  67. border-left-color: #ccc;
  68. }
  69. #content blockquote p {
  70. line-height: 1.6em;
  71. margin-bottom: 0em !important;
  72. }
  73. #content .search_input {
  74. height: 30px;
  75. color: #5992a3;
  76. font-weight: bold;
  77. padding: 10px 5px;
  78. border: 1px solid #71afc0;
  79. -webkit-border-radius: 3px;
  80. -moz-border-radius: 3px;
  81. border-radius: 3px;
  82. background: #fff;
  83. }
  84. #content .search_input:focus {
  85. background: #fff;
  86. outline: none;
  87. border-color: #71afc0;
  88. }
  89. #content .search_input::-webkit-input-placeholder {
  90. color: #71afc0;
  91. }
  92. /* Content rendering END */
  93. /* Fix bootstrap madding (//padding) issue(s) */
  94. .row {
  95. margin-left: 0;
  96. margin-right: 0;
  97. }
  98. [class^="col-"] > [class^="col-"]:first-child,
  99. [class^="col-"] > [class*=" col-"]:first-child
  100. [class*=" col-"] > [class^="col-"]:first-child,
  101. [class*=" col-"]> [class*=" col-"]:first-child,
  102. .row > [class^="col-"]:first-child,
  103. .row > [class*=" col-"]:first-child{
  104. padding-left: 0px;
  105. }
  106. [class^="col-"] > [class^="col-"]:last-child,
  107. [class^="col-"] > [class*=" col-"]:last-child
  108. [class*=" col-"] > [class^="col-"]:last-child,
  109. [class*=" col-"]> [class*=" col-"]:last-child,
  110. .row > [class^="col-"]:last-child,
  111. .row > [class*=" col-"]:last-child{
  112. padding-right: 0px;
  113. }
  114. .navbar {
  115. border: none;
  116. }
  117. /* Previous & Next floating navigation */
  118. #nav_prev_next {
  119. position: fixed;
  120. bottom: 0; right: 1em;
  121. background: #fff !important;
  122. border: 1px solid #ccc;
  123. border-bottom: none;
  124. list-style: none;
  125. -webkit-border-radius: 7px 7px 0px 0px;
  126. -moz-border-radius: 7px 7px 0px 0px;
  127. border-radius: 7px 7px 0px 0px;
  128. }
  129. #nav_prev_next > li:hover > a {
  130. background: none;
  131. }
  132. #nav_prev_next > li:hover > a > span {
  133. color: #8fb0ba;
  134. }
  135. #nav_prev_next > li.prev {
  136. text-align: right;
  137. }
  138. #nav_prev_next > li.next {
  139. text-align: left;
  140. }
  141. #nav_prev_next > li > a {
  142. padding: 0.5em 0.7em !important;
  143. }
  144. #nav_prev_next > li > a > span {
  145. display: block;
  146. color: #a4c9d4;
  147. }
  148. /* Scroll to top button */
  149. #scroll_to_top {
  150. position: fixed;
  151. bottom: 0; left: 1em;
  152. background: #fff !important;
  153. border: 1px solid #ccc;
  154. border-bottom: none;
  155. list-style: none;
  156. -webkit-border-radius: 7px 7px 0px 0px;
  157. -moz-border-radius: 7px 7px 0px 0px;
  158. border-radius: 7px 7px 0px 0px;
  159. font-weight: bold;
  160. }
  161. #scroll_to_top > li:hover > a {
  162. background: none;
  163. }
  164. #scroll_to_top > li:hover > a > span {
  165. color: #8fb0ba;
  166. }
  167. #scroll_to_top > li.prev {
  168. text-align: right;
  169. }
  170. #scroll_to_top > li.next {
  171. text-align: left;
  172. }
  173. #scroll_to_top > li > a {
  174. padding: 0.5em 0.7em !important;
  175. }
  176. #scroll_to_top > li > a > span {
  177. display: block;
  178. color: #a4c9d4;
  179. min-width: 75px;
  180. }
  181. /* Top navigation from Docker IO */
  182. #header {
  183. margin-bottom: 0;
  184. width: 100%;
  185. height: 70px;
  186. z-index: 10;
  187. background-color: #f2f2f2;
  188. }
  189. #header .brand > img {
  190. height: 70px;
  191. }
  192. #header ul li a {
  193. padding: 25px 15px 25px 15px;
  194. color: #777777;
  195. }
  196. #header .navbar-nav {
  197. float: right;
  198. }
  199. #header .navbar-inner {
  200. padding-right: 0px;
  201. padding-left: 0px;
  202. }
  203. #header ul li.active {
  204. color: #555555;
  205. background-color: #d8d8d8;
  206. }
  207. #header ul li.active a:hover {
  208. background-color: #d8d8d8;
  209. }
  210. /* Horizontal Thin Sticky Menu */
  211. #horizontal_thin_menu {
  212. width: 100%;
  213. background-color: #5992a3;
  214. height: 30px;
  215. color: white;
  216. text-align: right;
  217. padding: 5px 10px;
  218. }
  219. #horizontal_thin_menu a {
  220. display: inline-block;
  221. color: white;
  222. padding: 0px 10px;
  223. }
  224. /* Submenu (dropdown) styling */
  225. .dd_menu {
  226. cursor: pointer;
  227. }
  228. .dd_menu .dd_submenu {
  229. display: none;
  230. position: absolute;
  231. top: 50px;
  232. list-style: none;
  233. margin: 0px;
  234. margin-left: -15px;
  235. font-size: 18px;
  236. overflow-y: auto;
  237. background: #fff;
  238. border: 1px solid #ccc;
  239. border-top: none;
  240. border-bottom: 3px solid #ccc;
  241. -webkit-border-radius: 0px 0px 4px 4px;
  242. -moz-border-radius: 0px 0px 4px 4px;
  243. border-radius: 0px 0px 4px 4px;
  244. padding: 0px;
  245. }
  246. .dd_menu.dd_on_hover .dd_submenu {
  247. display: block;
  248. }
  249. .dd_menu.dd_on_hover .dd_submenu > li:first-child {
  250. border: none;
  251. }
  252. .dd_menu.dd_on_hover .dd_submenu > li {
  253. border-top: 1px solid #ddd;
  254. }
  255. .dd_menu.dd_on_hover .dd_submenu > li.active > a {
  256. border-color: #b1d5df;
  257. color: #FF8100 !important;
  258. }
  259. .dd_menu.dd_on_hover .dd_submenu > li:hover {
  260. background: #eee;
  261. }
  262. .dd_menu.dd_on_hover .dd_submenu > li > a {
  263. padding: 0.6em 0.8em 0.4em 0.8em;
  264. width: 100%;
  265. display: block;
  266. }
  267. /* Main Docs navigaton menu (horizontal) */
  268. #nav_menu {
  269. position: relative;
  270. width: 100%;
  271. background-color: #71afc0;
  272. padding: 0px 10px;
  273. color: white;
  274. }
  275. #nav_menu > #docsnav > #nav_search_toggle {
  276. display: none;
  277. margin-top: 10px;
  278. }
  279. #nav_menu > #docsnav > #nav_search {
  280. margin-top: 10px;
  281. }
  282. .search_input {
  283. height: 30px;
  284. color: #5992a3;
  285. font-weight: bold;
  286. padding: 10px 5px;
  287. background: #b1d5df;
  288. border: 1px solid #71afc0;
  289. -webkit-border-radius: 3px;
  290. -moz-border-radius: 3px;
  291. border-radius: 3px;
  292. }
  293. .search_input:focus {
  294. background: #fff;
  295. outline: none;
  296. }
  297. .search_input::-webkit-input-placeholder {
  298. color: #71afc0;
  299. }
  300. #nav_menu > #docsnav > #mobile_menu_button {
  301. display: none;
  302. float: left;
  303. height: 50px;
  304. font-size: 1.2em;
  305. padding: 0em 14px;
  306. padding-top: 12px;
  307. }
  308. #nav_menu > #docsnav > .arrow {
  309. display: none;
  310. }
  311. #nav_menu > #docsnav > #main-nav {
  312. height: 50px;
  313. margin: 0px;
  314. padding: 0em;
  315. }
  316. #nav_menu > #docsnav > #main-nav > li {
  317. display: block;
  318. padding: 0em 14px;
  319. height: 100%;
  320. padding-top: 12px;
  321. color: #fff;
  322. font-size: 1.2em;
  323. }
  324. #nav_menu > #docsnav > #main-nav > li.active {
  325. background: #5992a3;
  326. }
  327. #nav_menu > #docsnav > #main-nav > li.dd_on_hover {
  328. background: #b1d5df;
  329. color: #5992a3;
  330. }
  331. #nav_menu > #docsnav > #main-nav > li > span > b {
  332. border-top-color: #b1d5df !important;
  333. }
  334. #nav_menu > #docsnav > #main-nav > li.dd_on_hover > span > b {
  335. border-top-color: #71afc0 !important;
  336. }
  337. #nav_menu > #docsnav > #main-nav > li form {
  338. margin-top: -12px;
  339. }
  340. #nav_menu > #docsnav > #main-nav > li.home > a {
  341. color: #fff;
  342. }
  343. #nav_menu > #docsnav > #main-nav > li.home:hover {
  344. background: #b1d5df;
  345. }
  346. #nav_menu > #docsnav > #main-nav > li.home:hover > a {
  347. color: #5992a3;
  348. }
  349. /* TOC (Left) */
  350. #toc_table {
  351. margin-right: 1em;
  352. }
  353. #toc_table > h2 {
  354. margin: 0px;
  355. font-size: 1.7em;
  356. font-weight: bold;
  357. color: #0e6b8d;
  358. }
  359. #toc_table > h2 > a > b {
  360. display: none;
  361. border-top-color: #0e6b8d !important;
  362. }
  363. #toc_table > h3 {
  364. font-size: 1em;
  365. color: #0e6b8d;
  366. }
  367. #toc_table > #toc_navigation {
  368. display: block;
  369. margin-top: 1.5em !important;
  370. background: #fff;
  371. border-bottom: 3px solid #ddd;
  372. border: 1px solid #eee;
  373. -webkit-border-radius: 4px;
  374. -moz-border-radius: 4px;
  375. border-radius: 4px;
  376. }
  377. #toc_table > #toc_navigation > li {
  378. font-size: 1.2em;
  379. padding-bottom: 0px;
  380. padding: 0.2em 0.5em;
  381. border-bottom: 1px solid #ddd;
  382. text-align: left;
  383. }
  384. #toc_table > #toc_navigation > li > a {
  385. padding: 0.4em 0.5em 0.4em 0em;
  386. }
  387. #toc_table > #toc_navigation > li > a:hover {
  388. color: #71afc0;
  389. background: none;
  390. text-decoration: underline;
  391. }
  392. #toc_table > #toc_navigation > li > a > .active_icon {
  393. display: none;
  394. text-decoration: none;
  395. width: 1.5em;
  396. margin-top: 0.2em;
  397. }
  398. #toc_table > #toc_navigation > li.active > a > .active_icon {
  399. display: block;
  400. float: left;
  401. }
  402. #toc_table > #toc_navigation > li > a > .passive_icon {
  403. text-decoration: none;
  404. margin-right: 0.3em;
  405. margin-top: 0.2em;
  406. }
  407. #toc_table > #toc_navigation > li.active > a > .passive_icon {
  408. display: none;
  409. float: left;
  410. }
  411. #toc_table > #toc_navigation > li.active > a {
  412. color: #FF8100;
  413. }
  414. #toc_table .bs-sidenav {
  415. margin: 0;
  416. }
  417. /* Main content area */
  418. #content {
  419. margin-left: -15px;
  420. min-height: 500px;
  421. }
  422. ol.breadcrumb {
  423. margin-left: -15px;
  424. background: #fff;
  425. border-bottom: 3px solid #ccc;
  426. }
  427. ol.breadcrumb > li + li:before {
  428. content: "\3E";
  429. }
  430. ol.breadcrumb > li:last-child > a {
  431. font-weight: bold;
  432. }
  433. ol.breadcrumb > li.edit-on-github:before {
  434. content: none;
  435. }
  436. ol.breadcrumb > li.edit-on-github a {
  437. color: #FF8100;
  438. }
  439. ol.breadcrumb > li.edit-on-github span {
  440. margin-right: 0.25em;
  441. }
  442. #content h1 {
  443. margin-top: 0px;
  444. }
  445. /* Footer from original CSSs */
  446. @media (min-width: 960px) {
  447. #footer {
  448. height: 450px;
  449. }
  450. #footer .container {
  451. max-width: 952px;
  452. }
  453. footer,
  454. .footer {
  455. margin-top: 160px;
  456. }
  457. footer .ligaturesymbols,
  458. .footer .ligaturesymbols {
  459. font-size: 30px;
  460. color: black;
  461. }
  462. footer .ligaturesymbols a,
  463. .footer .ligaturesymbols a {
  464. color: black;
  465. }
  466. footer .footerlist,
  467. .footer .footerlist {
  468. float: left;
  469. margin: 3px;
  470. margin-right: 30px;
  471. }
  472. footer .footer-items-right,
  473. .footer .footer-items-right {
  474. text-align: right;
  475. margin-top: -6px;
  476. float: right;
  477. }
  478. footer .footer-licence,
  479. .footer .footer-licence {
  480. line-height: 2em;
  481. }
  482. footer form,
  483. .footer form {
  484. margin-bottom: 0px;
  485. }
  486. .footer-landscape-image {
  487. bottom: 0;
  488. width: 100%;
  489. margin-bottom: 0;
  490. background-image: url('../img/website-footer_clean.svg');
  491. background-repeat: repeat-x;
  492. height: 450px;
  493. position: relative;
  494. clear: both
  495. }
  496. .social {
  497. margin-left: 0px;
  498. margin-top: 15px;
  499. }
  500. .social .twitter,
  501. .social .github,
  502. .social .googleplus,
  503. .social .facebook,
  504. .social .slideshare,
  505. .social .linkedin,
  506. .social .flickr,
  507. .social .youtube,
  508. .social .reddit {
  509. background: url("../img/social/docker_social_logos.png") no-repeat transparent;
  510. display: inline-block;
  511. height: 32px;
  512. overflow: hidden;
  513. text-indent: 9999px;
  514. width: 32px;
  515. margin-right: 5px;
  516. }
  517. .social :hover {
  518. -webkit-transform: rotate(-10deg);
  519. -moz-transform: rotate(-10deg);
  520. -o-transform: rotate(-10deg);
  521. -ms-transform: rotate(-10deg);
  522. transform: rotate(-10deg);
  523. }
  524. .social .twitter {
  525. background-position: -160px 0px;
  526. }
  527. .social .reddit {
  528. background-position: -256px 0px;
  529. }
  530. .social .github {
  531. background-position: -64px 0px;
  532. }
  533. .social .googleplus {
  534. background-position: -96px 0px;
  535. }
  536. .social .facebook {
  537. background-position: 0px 0px;
  538. }
  539. .social .slideshare {
  540. background-position: -128px 0px;
  541. }
  542. .social .youtube {
  543. background-position: -192px 0px;
  544. }
  545. .social .flickr {
  546. background-position: -32px 0px;
  547. }
  548. .social .linkedin {
  549. background-position: -224px 0px;
  550. }
  551. ul.unstyled,
  552. ol.unstyled {
  553. margin-left: -40px;
  554. list-style: none;
  555. }
  556. }
  557. /*****************************
  558. * Mobile CSS Adjustments *
  559. *****************************/
  560. /* Horizontal nav. (menu & thin menu) convenience fix for Tablets */
  561. @media (min-width: 768px) and (max-width: 952px) {
  562. #docsnav, #horizontal_thin_menu {
  563. width: 100% !important;
  564. }
  565. }
  566. @media (max-width: 767px) {
  567. /* TOC Table (Left) */
  568. #toc_table {
  569. padding: 1em;
  570. margin: 0em -15px 15px 0em;
  571. -webkit-border-radius: 4px;
  572. -moz-border-radius: 4px;
  573. border-radius: 4px;
  574. cursor: pointer;
  575. background: #fff;
  576. border-bottom: 3px solid #ccc;
  577. }
  578. #toc_table > h2 {
  579. margin-bottom: 0.3em;
  580. font-size: 2em;
  581. }
  582. #toc_table > h2 > a > b {
  583. display: inline-block;
  584. }
  585. #toc_table > h3 {
  586. display: block;
  587. margin: 0;
  588. }
  589. #toc_table > #toc_navigation {
  590. display: none;
  591. margin-top: 1em !important;
  592. border: none;
  593. background: #f2f2f2;
  594. }
  595. #toc_table > #toc_navigation > li > a > .passive_icon {
  596. display: block;
  597. display: inline-block;
  598. }
  599. #toc_table > #toc_navigation > li > a > .active_icon {
  600. display: none;
  601. }
  602. }
  603. /* Container responsiveness fixes to maximise realestate expenditure */
  604. .container {
  605. width: 100% !important;
  606. }
  607. @media (max-width: 900px) {
  608. #nav_menu {
  609. padding-left: 0px !important;
  610. padding-right: 0px !important;
  611. }
  612. /* Dropdown Submenu adjust */
  613. .dd_menu .dd_submenu > li > a {
  614. padding: 1em 0.8em 0.7em 0.8em !important;
  615. min-width: 10em;
  616. }
  617. /* Disable breadcrumbs */
  618. ol.breadcrumb {
  619. display: none;
  620. }
  621. /* Shrink main navigation menu to one item (i.e., form breadcrumbs) */
  622. #nav_menu > #docsnav > #main-nav > li {
  623. display: none;
  624. }
  625. #nav_menu > #docsnav > #main-nav > .dd_menu.active {
  626. display: block;
  627. background: #71afc0;
  628. }
  629. #nav_menu > #docsnav > #main-nav > .dd_menu.active:hover {
  630. background: #b1d5df;
  631. }
  632. #nav_menu > #docsnav > #mobile_menu_button {
  633. display: block;
  634. }
  635. #nav_menu > #docsnav > #mobile_menu_button:hover {
  636. background: #b1d5df;
  637. }
  638. #nav_menu > #docsnav > #mobile_menu_button > b {
  639. border-top-color: #b1d5df !important;
  640. }
  641. #nav_menu > #docsnav > #mobile_menu_button:hover > b {
  642. border-top-color: #71afc0 !important;
  643. }
  644. #nav_menu > #docsnav > .arrow {
  645. display: block;
  646. }
  647. /* Prev Next for Mobile */
  648. #nav_prev_next {
  649. background: #f2f2f2;
  650. border-bottom: none;
  651. list-style: none;
  652. -webkit-border-radius: 7px 0px 0px 7px;
  653. -moz-border-radius: 7px 0px 0px 7px;
  654. border-radius: 7px 0px 0px 7px;
  655. border: 1px solid #ccc;
  656. font-weight: bold !important;
  657. }
  658. #nav_prev_next > li > a {
  659. padding: 0.5em 0.7em !important;
  660. }
  661. #nav_prev_next > li > a > span, i {
  662. display: none;
  663. }
  664. /* Scroll up */
  665. #scroll_to_top {
  666. background: #f2f2f2;
  667. border-bottom: none;
  668. list-style: none;
  669. -webkit-border-radius: 0px 7px 7px 0px;
  670. -moz-border-radius: 0px 7px 7px 0px;
  671. border-radius: 0px 7px 7px 0px;
  672. border: 1px solid #ccc;
  673. }
  674. #scroll_to_top > li > a {
  675. padding: 0.5em 0.7em !important;
  676. }
  677. #scroll_to_top > li > a > span, i {
  678. display: none;
  679. }
  680. /* Main Content Clip */
  681. #content {
  682. max-width: 100%;
  683. }
  684. /* Thin menu (login - signup) */
  685. #horizontal_thin_menu { display: none; }
  686. #header #nav_docker_io {
  687. display: none;
  688. }
  689. #header #condensed_docker_io_nav {
  690. display: block;
  691. }
  692. }
  693. @media (min-width: 999px) {
  694. /* Hide in-content search box for desktop */
  695. #content .search_input {
  696. display: none;
  697. }
  698. }
  699. @media (max-width: 1025px) {
  700. /* Search on mobile */
  701. #nav_menu > #docsnav > #nav_search {
  702. display: none;
  703. }
  704. #nav_menu > #docsnav > #nav_search_toggle {
  705. display: block;
  706. margin-top: 10px;
  707. margin-right: 0.5em;
  708. }
  709. /* Show in-content search box for desktop */
  710. #content .search_input {
  711. display: block;
  712. }
  713. #nav_menu > #docsnav {
  714. padding-left: 0px !important;
  715. padding-right: 0px !important;
  716. }
  717. }