main.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. // Main CSS configuration file
  2. // by Thatcher Peskens, thatcher@dotcloud.com
  3. //
  4. // Please note variables.less is customized to include custom font, background-color, and link colors.
  5. @import "variables.less";
  6. // Variables for main.less
  7. // -----------------------
  8. @box-top-margin: 8px;
  9. @box-padding-size: 30px;
  10. @docker-background-color: #71AFC0;
  11. @very-dark-sea-green: #394D54;
  12. // Custom colors for Docker
  13. // --------------------------
  14. @gray-super-light: #F2F2F2;
  15. @deep-red: #A30000;
  16. @deep-blue: #1B2033;
  17. @deep-green: #007035;
  18. @link-blue: #213B8F;
  19. .debug {
  20. border: 2px dotted red !important;
  21. box-sizing: border-box;
  22. -moz-box-sizing: border-box;
  23. }
  24. // Other custom colors for Docker
  25. // --------------------------
  26. // ** are defined in sources/less/variables **
  27. //@import "bootstrap/variables.less";
  28. // Styles generic for each and every page
  29. // ----------------------------------- // -----------------------------------
  30. // moving body down to make place for fixed navigation
  31. body {
  32. min-width: 940px;
  33. font-family: @font-family-base;
  34. }
  35. p a {
  36. text-decoration: underline;
  37. &.btn {
  38. text-decoration: none;
  39. }
  40. }
  41. .brand.logo a {
  42. text-decoration: none;
  43. }
  44. // Styles for top navigation
  45. // ----------------------------------
  46. .navbar .navbar-inner {
  47. padding-left: 0px;
  48. padding-right: 0px;
  49. }
  50. .navbar .nav {
  51. li a {
  52. padding: ((@navbar-height - @line-height-base) / 2) 17px ((@navbar-height - @line-height-base) / 2);
  53. color: #777777;
  54. text-decoration: none;
  55. text-shadow: 0 1px 0 #f2f2f2;
  56. }
  57. }
  58. .navbar .nav > li {
  59. float: left;
  60. }
  61. .nav-underline {
  62. height: 6px;
  63. background-color: @docker-background-color;
  64. }
  65. .nav-login {
  66. li {
  67. a {
  68. color: white;
  69. padding: 10px 15px 10px;
  70. }
  71. }
  72. }
  73. .navbar .brand {
  74. margin-left: 0px;
  75. float: left;
  76. display: block;
  77. }
  78. .navbar-inner {
  79. min-height: 70px;
  80. padding-left: 20px;
  81. padding-right: 20px;
  82. background-color: #ededed;
  83. background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5);
  84. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5));
  85. background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5);
  86. background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5);
  87. background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);
  88. background-repeat: repeat-x;
  89. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0);
  90. border: 1px solid #c7c7c7;
  91. -webkit-border-radius: 4px;
  92. -moz-border-radius: 4px;
  93. border-radius: 4px;
  94. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  95. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  96. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
  97. }
  98. .brand-logo a {
  99. color: white;
  100. img {
  101. width: auto;
  102. }
  103. }
  104. .logo {
  105. // background-color: #A30000;
  106. // color: white;
  107. }
  108. .inline-icon {
  109. margin-bottom: 6px;
  110. }
  111. // Bootstrap elements
  112. // ----------------------------------
  113. .row {
  114. margin-top: 15px;
  115. margin-bottom: 15px;
  116. }
  117. .container {
  118. // background-color: green;
  119. }
  120. // Styles on blocks of content
  121. // ----------------------------------
  122. // everything which is a block should have box-sizing: border-box;
  123. div[class*='span']
  124. {
  125. -moz-box-sizing: border-box;
  126. box-sizing: border-box;
  127. }
  128. // Box for making white with a border, and some nice spacings
  129. .box {
  130. padding: @box-padding-size;
  131. background-color: white;
  132. margin-top: @box-top-margin;
  133. }
  134. .paper {
  135. background-color: white;
  136. padding-top: 30px;
  137. padding-bottom: 30px;
  138. }
  139. .copy-headline {
  140. margin-top: 0px;
  141. // border-bottom: 1.2px solid @veryDarkSeaGreen;
  142. }
  143. .box {
  144. h1, h2, h3, h4 {
  145. margin-top: -5px;
  146. }
  147. }
  148. .nested {
  149. padding: @box-padding-size;
  150. }
  151. .box.div {
  152. padding: @box-padding-size;
  153. }
  154. span.read-more {
  155. margin-left: 15px;
  156. white-space: nowrap;
  157. }
  158. // set a top margin of @box-top-margin + 8 px to make it show a margin
  159. //instead of the div being flush against the side. Typically only
  160. // required for a stacked div in a column, w.o. using row.
  161. .forcetopalign {
  162. margin-top: 15px !important;
  163. }
  164. .forcetopmargin {
  165. margin-top: 23px !important;
  166. }
  167. .forceleftalign {
  168. margin-left: 15px !important;
  169. }
  170. .forceleftmargin {
  171. margin-left: 21px !important;
  172. }
  173. // simple text aligns
  174. .textcenter {
  175. text-align: center;
  176. }
  177. .textright {
  178. text-align: right;
  179. }
  180. .textsmaller {
  181. font-size: @font-size-small;
  182. }
  183. .modal-backdrop {
  184. opacity: 0.4;
  185. }
  186. /* generic page copy styles */
  187. .copy-headline h1 {
  188. font-size: 21px;
  189. }
  190. /* =======================
  191. Sticky footer
  192. ======================= */
  193. @sticky-footer-height: 280px;
  194. html,
  195. body {
  196. height: 100%;
  197. /* The html and body elements cannot have any padding or margin. */
  198. }
  199. /* Wrapper for page content to push down footer */
  200. #wrap {
  201. min-height: 100%;
  202. height: auto !important;
  203. height: 100%;
  204. /* Negative indent footer by it's height */
  205. margin: 0 auto -@sticky-footer-height;
  206. }
  207. /* Set the fixed height of the footer here */
  208. #push-the-footer,
  209. #footer {
  210. height: @sticky-footer-height;
  211. }
  212. #footer {
  213. // margin-bottom: -60px;
  214. // margin-top: 160px;
  215. }
  216. .main-row {
  217. padding-top: @navbar-height;
  218. }
  219. // Styles on the footer
  220. // ----------------------------------
  221. //
  222. #footer .footer {
  223. margin-top: 160px;
  224. .ligaturesymbols {
  225. font-size: 30px;
  226. color: black;
  227. a {
  228. color: black;
  229. }
  230. }
  231. .footerlist {
  232. h3, h4 {
  233. /* correct the top alignment */
  234. margin-top: 0px;
  235. }
  236. }
  237. }
  238. .footer-landscape-image {
  239. position: absolute:
  240. bottom: 0;
  241. margin-bottom: 0;
  242. background-image: url('https://www.docker.io/static/img/website-footer_clean.svg');
  243. background-repeat: repeat-x;
  244. height: @sticky-footer-height;
  245. }
  246. .main-row {
  247. margin-top: 40px;
  248. }
  249. .sidebar {
  250. width: 215px;
  251. float: left;
  252. }
  253. .main-content {
  254. padding: 16px 18px inherit;
  255. margin-left: 230px; /* space for sidebar */
  256. }
  257. /* =======================
  258. Social footer
  259. ======================= */
  260. .social {
  261. margin-left: 0px;
  262. margin-top: 15px;
  263. }
  264. .social {
  265. .twitter, .github, .googleplus, .facebook, .slideshare, .linkedin, .flickr, .youtube, .reddit {
  266. background: url("../img/social/docker_social_logos.png") no-repeat transparent;
  267. display: inline-block;
  268. height: 32px;
  269. overflow: hidden;
  270. text-indent: 9999px;
  271. width: 32px;
  272. margin-right: 5px;
  273. }
  274. }
  275. .social :hover {
  276. -webkit-transform: rotate(-10deg);
  277. -moz-transform: rotate(-10deg);
  278. -o-transform: rotate(-10deg);
  279. -ms-transform: rotate(-10deg);
  280. transform: rotate(-10deg);
  281. }
  282. .social .twitter {
  283. background-position: -160px 0px;
  284. }
  285. .social .reddit {
  286. background-position: -256px 0px;
  287. }
  288. .social .github {
  289. background-position: -64px 0px;
  290. }
  291. .social .googleplus {
  292. background-position: -96px 0px;
  293. }
  294. .social .facebook {
  295. background-position: -0px 0px;
  296. }
  297. .social .slideshare {
  298. background-position: -128px 0px;
  299. }
  300. .social .youtube {
  301. background-position: -192px 0px;
  302. }
  303. .social .flickr {
  304. background-position: -32px 0px;
  305. }
  306. .social .linkedin {
  307. background-position: -224px 0px;
  308. }
  309. // Styles on the forms
  310. // ----------------------------------
  311. form table {
  312. th {
  313. vertical-align: top;
  314. text-align: right;
  315. white-space: nowrap;
  316. }
  317. }
  318. form {
  319. .labeldd label {
  320. font-weight: bold;
  321. }
  322. .helptext {
  323. font-size: @font-size-small;
  324. margin-top: -4px;
  325. margin-bottom: 10px;
  326. }
  327. .fielddd input {
  328. width: 250px;
  329. }
  330. .error {
  331. color: @deep-red;
  332. }
  333. [type=submit] {
  334. // margin-top: -8px;
  335. }
  336. }
  337. div.alert.alert-block {
  338. margin-bottom: 15px;
  339. }
  340. /* ======================= =======================
  341. Documentation
  342. ========================= ========================= */
  343. /* =======================
  344. Styles for the sidebar
  345. ========================= */
  346. @sidebar-navigation-border: 1.5px solid #595959;
  347. @sidebar-navigation-width: 225px;
  348. .page-title {
  349. // border-bottom: 1px solid #bbbbbb;
  350. background-color: white;
  351. border: 1px solid transparent;
  352. text-align: center;
  353. width: 100%;
  354. h4 {
  355. font-size: 20px;
  356. }
  357. }
  358. .bs-docs-sidebar {
  359. padding-left: 5px;
  360. max-width: 100%;
  361. box-sizing: border-box;
  362. -moz-box-sizing: border-box;
  363. margin-top: 18px;
  364. ul {
  365. list-style: none;
  366. margin-left: 0px;
  367. }
  368. .toctree-l2 > ul {
  369. width: 100%;
  370. }
  371. ul > li {
  372. &.toctree-l1.has-children {
  373. background-image: url('../img/menu_arrow_right.gif');
  374. background-repeat: no-repeat;
  375. background-position: 13px 13px;
  376. list-style-type: none;
  377. // margin-left: px;
  378. padding: 0px 0px 0px 0px;
  379. vertical-align: middle;
  380. &.open {
  381. background-image: url('../img/menu_arrow_down.gif');
  382. }
  383. }
  384. & > a {
  385. box-sizing: border-box;
  386. -moz-box-sizing: border-box;
  387. width: 100%;
  388. display:inline-block;
  389. padding-top: 8px;
  390. padding-bottom: 8px;
  391. padding-left: 35px;
  392. padding-right: 20px;
  393. font-size: @font-size-base;
  394. border-bottom: @sidebar-navigation-border;
  395. line-height: 20px;
  396. }
  397. &:first-child.active > a {
  398. border-top: @sidebar-navigation-border;
  399. }
  400. &:last-child > a {
  401. border-bottom: none;
  402. }
  403. &:last-child.active > a {
  404. border-bottom: @sidebar-navigation-border;
  405. }
  406. &.active > a {
  407. border-right: @sidebar-navigation-border;
  408. border-left: @sidebar-navigation-border;
  409. color: @very-dark-sea-green;
  410. }
  411. &:hover {
  412. background-color: #e8e8e8;
  413. }
  414. }
  415. &.toctree-l3 ul {
  416. display: inherit;
  417. margin-left: 15px;
  418. font-size: smaller;
  419. }
  420. .toctree-l3 a {
  421. border: none;
  422. font-size: 12px;
  423. line-height: 15px;
  424. }
  425. ul > li > ul {
  426. display: none;
  427. }
  428. ul > li.current > ul {
  429. display: inline-block;
  430. padding-left: 0px;
  431. width: 100%;
  432. }
  433. }
  434. .toctree-l2 {
  435. &.current > a {
  436. font-weight: bold;
  437. }
  438. &.current {
  439. border: 1.5px solid #595959;
  440. color: #394d54;
  441. }
  442. }
  443. /* =====================================
  444. Styles for the floating version widget
  445. ====================================== */
  446. .version-flyer {
  447. position: fixed;
  448. float: right;
  449. right: 0;
  450. bottom: 40px;
  451. background-color: #E0E0E0;
  452. border: 1px solid #88BABC;
  453. padding: 5px;
  454. font-size: larger;
  455. max-width: 300px;
  456. .content {
  457. padding-right: 45px;
  458. margin-top: 7px;
  459. margin-left: 7px;
  460. background-image: url('../img/container3.png');
  461. background-position: right center;
  462. background-repeat: no-repeat;
  463. }
  464. .alternative {
  465. }
  466. .active-slug {
  467. visibility: visible;
  468. display: inline-block;
  469. font-weight: bolder;
  470. }
  471. &:hover .alternative {
  472. animation-duration: 1s;
  473. display: inline-block;
  474. }
  475. .version-note {
  476. font-size: 16px;
  477. color: black;
  478. }
  479. }
  480. /* =====================================
  481. Styles for
  482. ====================================== */
  483. h1:hover > a.headerlink,
  484. h2:hover > a.headerlink,
  485. h3:hover > a.headerlink,
  486. h4:hover > a.headerlink,
  487. h5:hover > a.headerlink,
  488. h6:hover > a.headerlink,
  489. dt:hover > a.headerlink {
  490. visibility: visible;
  491. }
  492. .headerlink {
  493. font-size: smaller;
  494. color: #666;
  495. font-weight: bold;
  496. float: right;
  497. visibility: hidden;
  498. }
  499. /* =====================================
  500. Miscellaneous information
  501. ====================================== */
  502. .admonition {
  503. &.warning, &.note, &.seealso, &.todo {
  504. border: 3px solid black;
  505. padding: 10px;
  506. margin: 5px auto 10px;
  507. }
  508. .admonition-title {
  509. font-size: larger;
  510. }
  511. &.warning, &.danger {
  512. border-color: #ac0004;
  513. }
  514. &.note {
  515. border-color: #cbc200;
  516. }
  517. &.todo {
  518. border-color: orange;
  519. }
  520. &.seealso {
  521. border-color: #23cb1f;
  522. }
  523. }
  524. /* Add styles for other types of comments */
  525. .versionchanged,
  526. .versionadded,
  527. .versionmodified,
  528. .deprecated {
  529. font-size: larger;
  530. font-weight: bold;
  531. }
  532. .versionchanged {
  533. color: lightseagreen;
  534. }
  535. .versionadded {
  536. color: mediumblue;
  537. }
  538. .deprecated {
  539. color: orangered;
  540. }