main.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  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. }
  101. .logo {
  102. // background-color: #A30000;
  103. // color: white;
  104. }
  105. .inline-icon {
  106. margin-bottom: 6px;
  107. }
  108. // Bootstrap elements
  109. // ----------------------------------
  110. .row {
  111. margin-top: 15px;
  112. margin-bottom: 15px;
  113. }
  114. .container {
  115. // background-color: green;
  116. }
  117. // Styles on blocks of content
  118. // ----------------------------------
  119. // everything which is a block should have box-sizing: border-box;
  120. div[class*='span']
  121. {
  122. -moz-box-sizing: border-box;
  123. box-sizing: border-box;
  124. }
  125. // Box for making white with a border, and some nice spacings
  126. .box {
  127. padding: @box-padding-size;
  128. background-color: white;
  129. margin-top: @box-top-margin;
  130. }
  131. .paper {
  132. background-color: white;
  133. padding-top: 30px;
  134. padding-bottom: 30px;
  135. }
  136. .copy-headline {
  137. margin-top: 0px;
  138. // border-bottom: 1.2px solid @veryDarkSeaGreen;
  139. }
  140. .box {
  141. h1, h2, h3, h4 {
  142. margin-top: -5px;
  143. }
  144. }
  145. .nested {
  146. padding: @box-padding-size;
  147. }
  148. .box.div {
  149. padding: @box-padding-size;
  150. }
  151. span.read-more {
  152. margin-left: 15px;
  153. white-space: nowrap;
  154. }
  155. // set a top margin of @box-top-margin + 8 px to make it show a margin
  156. //instead of the div being flush against the side. Typically only
  157. // required for a stacked div in a column, w.o. using row.
  158. .forcetopalign {
  159. margin-top: 15px !important;
  160. }
  161. .forcetopmargin {
  162. margin-top: 23px !important;
  163. }
  164. .forceleftalign {
  165. margin-left: 15px !important;
  166. }
  167. .forceleftmargin {
  168. margin-left: 21px !important;
  169. }
  170. // simple text aligns
  171. .textcenter {
  172. text-align: center;
  173. }
  174. .textright {
  175. text-align: right;
  176. }
  177. .textsmaller {
  178. font-size: @font-size-small;
  179. }
  180. .modal-backdrop {
  181. opacity: 0.4;
  182. }
  183. /* generic page copy styles */
  184. .copy-headline h1 {
  185. font-size: 21px;
  186. }
  187. /* =======================
  188. Sticky footer
  189. ======================= */
  190. @sticky-footer-height: 280px;
  191. html,
  192. body {
  193. height: 100%;
  194. /* The html and body elements cannot have any padding or margin. */
  195. }
  196. /* Wrapper for page content to push down footer */
  197. #wrap {
  198. min-height: 100%;
  199. height: auto !important;
  200. height: 100%;
  201. /* Negative indent footer by it's height */
  202. margin: 0 auto -@sticky-footer-height;
  203. }
  204. /* Set the fixed height of the footer here */
  205. #push-the-footer,
  206. #footer {
  207. height: @sticky-footer-height;
  208. }
  209. #footer {
  210. // margin-bottom: -60px;
  211. // margin-top: 160px;
  212. }
  213. .main-row {
  214. padding-top: @navbar-height;
  215. }
  216. // Styles on the footer
  217. // ----------------------------------
  218. //
  219. #footer .footer {
  220. margin-top: 160px;
  221. .ligaturesymbols {
  222. font-size: 30px;
  223. color: black;
  224. a {
  225. color: black;
  226. }
  227. }
  228. .footerlist {
  229. h3, h4 {
  230. /* correct the top alignment */
  231. margin-top: 0px;
  232. }
  233. }
  234. }
  235. .footer-landscape-image {
  236. position: absolute:
  237. bottom: 0;
  238. margin-bottom: 0;
  239. background-image: url('https://www.docker.io/static/img/website-footer_clean.svg');
  240. background-repeat: repeat-x;
  241. height: @sticky-footer-height;
  242. }
  243. .main-row {
  244. margin-top: 40px;
  245. }
  246. .main-content {
  247. padding: 16px 18px inherit;
  248. }
  249. /* =======================
  250. Social footer
  251. ======================= */
  252. .social {
  253. margin-left: 0px;
  254. margin-top: 15px;
  255. }
  256. .social .twitter, .social .github, .social .googleplus {
  257. background: url("https://www.docker.io/static/img/footer-links.png") no-repeat transparent;
  258. display: inline-block;
  259. height: 35px;
  260. overflow: hidden;
  261. text-indent: 9999px;
  262. width: 35px;
  263. margin-right: 10px;
  264. }
  265. .social .twitter {
  266. background-position: 0px 2px;
  267. }
  268. .social .github {
  269. background-position: -59px 2px;
  270. }
  271. // Styles on the forms
  272. // ----------------------------------
  273. form table {
  274. th {
  275. vertical-align: top;
  276. text-align: right;
  277. white-space: nowrap;
  278. }
  279. }
  280. form {
  281. .labeldd label {
  282. font-weight: bold;
  283. }
  284. .helptext {
  285. font-size: @font-size-small;
  286. margin-top: -4px;
  287. margin-bottom: 10px;
  288. }
  289. .fielddd input {
  290. width: 250px;
  291. }
  292. .error {
  293. color: @deep-red;
  294. }
  295. [type=submit] {
  296. // margin-top: -8px;
  297. }
  298. }
  299. div.alert.alert-block {
  300. margin-bottom: 15px;
  301. }
  302. /* ======================= =======================
  303. Documentation
  304. ========================= ========================= */
  305. /* =======================
  306. Styles for the sidebar
  307. ========================= */
  308. @sidebar-navigation-border: 1.5px solid #595959;
  309. @sidebar-navigation-width: 225px;
  310. .page-title {
  311. // border-bottom: 1px solid #bbbbbb;
  312. background-color: white;
  313. border: 1px solid transparent;
  314. text-align: center;
  315. width: 100%;
  316. h4 {
  317. font-size: 20px;
  318. }
  319. }
  320. .bs-docs-sidebar {
  321. padding-left: 5px;
  322. max-width: 100%;
  323. box-sizing: border-box;
  324. -moz-box-sizing: border-box;
  325. margin-top: 18px;
  326. ul {
  327. list-style: none;
  328. margin-left: 0px;
  329. }
  330. .toctree-l2 > ul {
  331. width: 100%;
  332. }
  333. ul > li {
  334. &.toctree-l1.has-children {
  335. background-image: url('../img/menu_arrow_right.gif');
  336. background-repeat: no-repeat;
  337. background-position: 13px 13px;
  338. list-style-type: none;
  339. // margin-left: px;
  340. padding: 0px 0px 0px 0px;
  341. vertical-align: middle;
  342. &.open {
  343. background-image: url('../img/menu_arrow_down.gif');
  344. }
  345. }
  346. & > a {
  347. box-sizing: border-box;
  348. -moz-box-sizing: border-box;
  349. width: 100%;
  350. display:inline-block;
  351. padding-top: 8px;
  352. padding-bottom: 8px;
  353. padding-left: 35px;
  354. padding-right: 20px;
  355. font-size: @font-size-base;
  356. border-bottom: @sidebar-navigation-border;
  357. line-height: 20px;
  358. }
  359. &:first-child.active > a {
  360. border-top: @sidebar-navigation-border;
  361. }
  362. &:last-child > a {
  363. border-bottom: none;
  364. }
  365. &:last-child.active > a {
  366. border-bottom: @sidebar-navigation-border;
  367. }
  368. &.active > a {
  369. border-right: @sidebar-navigation-border;
  370. border-left: @sidebar-navigation-border;
  371. color: @very-dark-sea-green;
  372. }
  373. &:hover {
  374. background-color: #e8e8e8;
  375. }
  376. }
  377. &.toctree-l3 ul {
  378. display: inherit;
  379. margin-left: 15px;
  380. font-size: smaller;
  381. }
  382. .toctree-l3 a {
  383. border: none;
  384. font-size: 12px;
  385. line-height: 15px;
  386. }
  387. ul > li > ul {
  388. display: none;
  389. }
  390. ul > li.current > ul {
  391. display: inline-block;
  392. padding-left: 0px;
  393. width: 100%;
  394. }
  395. }
  396. .toctree-l2 {
  397. &.current > a {
  398. font-weight: bold;
  399. }
  400. &.current {
  401. border: 1.5px solid #595959;
  402. color: #394d54;
  403. }
  404. }
  405. /* =====================================
  406. Styles for the floating version widget
  407. ====================================== */
  408. .version-flyer {
  409. position: fixed;
  410. float: right;
  411. right: 0;
  412. bottom: 40px;
  413. background-color: #E0E0E0;
  414. border: 1px solid #88BABC;
  415. padding: 5px;
  416. font-size: larger;
  417. .content {
  418. padding-right: 45px;
  419. margin-top: 7px;
  420. margin-left: 7px;
  421. // display: inline-block;
  422. background-image: url('../img/container3.png');
  423. background-position: right center;
  424. background-repeat: no-repeat;
  425. }
  426. .alternative {
  427. visibility: hidden;
  428. display: none;
  429. }
  430. .active-slug {
  431. visibility: visible;
  432. display: inline-block;
  433. }
  434. &:hover .alternative {
  435. animation-duration: 1s;
  436. display: inline-block;
  437. visibility: visible;
  438. }
  439. }
  440. /* =====================================
  441. Styles for
  442. ====================================== */
  443. h1:hover > a.headerlink,
  444. h2:hover > a.headerlink,
  445. h3:hover > a.headerlink,
  446. h4:hover > a.headerlink,
  447. h5:hover > a.headerlink,
  448. h6:hover > a.headerlink,
  449. dt:hover > a.headerlink {
  450. visibility: visible;
  451. }
  452. .headerlink {
  453. font-size: smaller;
  454. color: #666;
  455. font-weight: bold;
  456. float: right;
  457. visibility: hidden;
  458. }
  459. /* =====================================
  460. Miscellaneous information
  461. ====================================== */
  462. .admonition {
  463. &.warning, &.note, &.seealso, &.todo {
  464. border: 3px solid black;
  465. padding: 10px;
  466. margin: 5px auto 10px;
  467. }
  468. .admonition-title {
  469. font-size: larger;
  470. }
  471. &.warning, &.danger {
  472. border-color: #ac0004;
  473. }
  474. &.note {
  475. border-color: #cbc200;
  476. }
  477. &.todo {
  478. border-color: orange;
  479. }
  480. &.seealso {
  481. border-color: #23cb1f;
  482. }
  483. }