main.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. /* Main
  2. * ========================================================================== */
  3. /* Icons
  4. * -------------------------------------------------------------------------- */
  5. .icon {
  6. display: inline-block;
  7. width: 20px;
  8. height: 20px;
  9. background-image: url("../img/icons.png");
  10. vertical-align: middle;
  11. }
  12. .icon-move {
  13. background-position: 0 0;
  14. }
  15. .icon-crop {
  16. background-position: -30px 0;
  17. }
  18. .icon-zoom-in {
  19. background-position: -60px 0;
  20. }
  21. .icon-zoom-out {
  22. background-position: -90px 0;
  23. }
  24. .icon-rotate-left {
  25. background-position: -120px 0;
  26. }
  27. .icon-rotate-right {
  28. background-position: -150px 0;
  29. }
  30. .icon-lock {
  31. background-position: -180px 0;
  32. }
  33. .icon-unlock {
  34. background-position: -210px 0;
  35. }
  36. .icon-remove {
  37. background-position: -240px 0;
  38. }
  39. .icon-refresh {
  40. background-position: -270px 0;
  41. }
  42. .icon-upload {
  43. background-position: -300px 0;
  44. }
  45. .icon-off {
  46. background-position: -330px 0;
  47. }
  48. .icon-info {
  49. background-position: -360px 0;
  50. }
  51. /* Alerts
  52. * -------------------------------------------------------------------------- */
  53. .docs-alert {
  54. display: none;
  55. position: fixed;
  56. top: 20px;
  57. left: 0;
  58. right: 0;
  59. height: 0;
  60. text-align: center;
  61. opacity: 0.9;
  62. }
  63. .docs-alert .message {
  64. display: inline-block;
  65. padding: 5px 10px;
  66. border-radius: 2px;
  67. background-color: #aaa;
  68. color: #fff;
  69. }
  70. .docs-alert .primary {
  71. background-color: #0074d9;
  72. }
  73. .docs-alert .success {
  74. background-color: #2ecc40;
  75. }
  76. .docs-alert .info {
  77. background-color: #39cccc;
  78. }
  79. .docs-alert .warning {
  80. background-color: #ff851b;
  81. }
  82. .docs-alert .danger {
  83. background-color: #ff4136;
  84. }
  85. /* Button
  86. * -------------------------------------------------------------------------- */
  87. .btn-primary {
  88. border-color: #0066bf; /* hsb(208, 100%, 75%) */
  89. background-color: #0074d9; /* hsb(208, 100%, 85%) */
  90. }
  91. .btn-primary:hover,
  92. .btn-primary:focus,
  93. .btn-primary:active,
  94. .btn-primary.active,
  95. .btn-primary.active:focus,
  96. .btn-primary.active:hover {
  97. border-color: #005299; /* hsb(208, 100%, 60%) */
  98. background-color: #005fb3; /* hsb(208, 100%, 70%) */
  99. }
  100. /* Basic style
  101. * -------------------------------------------------------------------------- */
  102. body {
  103. overflow-x: hidden;
  104. }
  105. /* Header */
  106. .docs-header {
  107. border-color: #0066bf;
  108. background-color: #0074d9;
  109. color: #fff;
  110. }
  111. .docs-header .navbar-brand {
  112. color: #eee;
  113. }
  114. .docs-header .navbar-toggle {
  115. border-color: transparent;
  116. background-color: #0074d9;
  117. }
  118. .docs-header .navbar-toggle:hover,
  119. .docs-header .navbar-toggle:focus {
  120. border-color: transparent;
  121. background-color: #0066bf;
  122. }
  123. .docs-header .navbar-collapse {
  124. border-color: #0066bf;
  125. }
  126. .docs-header .navbar-text {
  127. color: #ddd;
  128. }
  129. .docs-header .navbar-nav > li > a {
  130. color: #eee;
  131. }
  132. /* Content */
  133. .img-container,
  134. .img-preview {
  135. background-color: #f7f7f7;
  136. overflow: hidden;
  137. width: 100%;
  138. text-align: center;
  139. }
  140. .img-container {
  141. min-height: 200px;
  142. max-height: 466px;
  143. margin-bottom: 20px;
  144. }
  145. @media (min-width: 768px) {
  146. .img-container {
  147. min-height: 466px;
  148. }
  149. }
  150. .img-container > img {
  151. max-width: 100%;
  152. }
  153. .docs-preview {
  154. margin-right: -15px;
  155. margin-bottom: 10px;
  156. }
  157. .img-preview {
  158. float: left;
  159. margin-right: 10px;
  160. margin-bottom: 10px;
  161. }
  162. .img-preview > img {
  163. max-width: 100%;
  164. }
  165. .preview-lg {
  166. width: 263px;
  167. height: 148px;
  168. }
  169. .preview-md {
  170. width: 139px;
  171. height: 78px;
  172. }
  173. .preview-sm {
  174. width: 69px;
  175. height: 39px;
  176. }
  177. .preview-xs {
  178. width: 35px;
  179. height: 20px;
  180. margin-right: 0;
  181. }
  182. .docs-data > .input-group {
  183. margin-bottom: 10px;
  184. }
  185. .docs-data > .input-group > label {
  186. min-width: 80px;
  187. }
  188. .docs-data > .input-group > span {
  189. min-width: 50px;
  190. }
  191. .docs-buttons > .btn,
  192. .docs-buttons > .btn-group,
  193. .docs-buttons > .form-control {
  194. margin-right: 5px;
  195. margin-bottom: 10px;
  196. }
  197. .docs-toggles > .btn,
  198. .docs-toggles > .btn-group,
  199. .docs-toggles > .dropdown {
  200. margin-bottom: 10px;
  201. }
  202. .docs-tooltip {
  203. display: block;
  204. margin: -6px -12px;
  205. padding: 6px 12px;
  206. }
  207. .docs-tooltip > .icon {
  208. margin: 0 -3px;
  209. vertical-align: top;
  210. }
  211. .tooltip-inner {
  212. white-space: normal;
  213. }
  214. .btn-upload .tooltip-inner,
  215. .btn-toggle .tooltip-inner {
  216. white-space: nowrap;
  217. }
  218. .btn-toggle {
  219. padding: 6px;
  220. }
  221. .btn-toggle > .docs-tooltip {
  222. margin: -6px;
  223. padding: 6px;
  224. }
  225. @media (max-width: 400px) {
  226. .btn-group-crop {
  227. margin-right: -15px!important;
  228. }
  229. .btn-group-crop > .btn {
  230. padding-left: 5px;
  231. padding-right: 5px;
  232. }
  233. .btn-group-crop .docs-tooltip {
  234. margin-left: -5px;
  235. margin-right: -5px;
  236. padding-left: 5px;
  237. padding-right: 5px;
  238. }
  239. }
  240. .docs-options .dropdown-menu {
  241. width: 100%;
  242. }
  243. .docs-options .dropdown-menu > li {
  244. padding: 3px 20px;
  245. }
  246. .docs-options .dropdown-menu > li:hover {
  247. background-color: #f7f7f7;
  248. }
  249. .docs-options .dropdown-menu > li > label {
  250. display: block;
  251. }
  252. .docs-cropped .modal-body {
  253. text-align: center;
  254. }
  255. .docs-cropped .modal-body > img,
  256. .docs-cropped .modal-body > canvas {
  257. max-width: 100%;
  258. }
  259. .docs-diagram .modal-dialog {
  260. max-width: 352px;
  261. }
  262. /* Footer */
  263. .docs-footer {
  264. margin-top: 100px;
  265. padding-top: 10px;
  266. padding-bottom: 10px;
  267. border-top: 1px solid #0066bf;
  268. background-color: #0074d9;
  269. color: #ddd;
  270. }
  271. .docs-footer a {
  272. color: #eee;
  273. }
  274. .docs-footer a:hover,
  275. .docs-footer a:focus {
  276. color: #fff;
  277. }
  278. .docs-footer a + a {
  279. margin-left: 10px;
  280. }
  281. @media (min-width: 768px) {
  282. .back-to-top {
  283. float: right;
  284. }
  285. }
  286. /* Examples
  287. * -------------------------------------------------------------------------- */
  288. .cropper-example-1 {
  289. max-height: 331px;
  290. }
  291. @media (min-width: 768px) {
  292. .cropper-example-1 {
  293. min-height: 305px;
  294. }
  295. }
  296. .cropper-example-1 > img {
  297. max-width: 100%;
  298. }
  299. /* Google code prettify
  300. * -------------------------------------------------------------------------- */
  301. .prettyprint {
  302. padding: 10px 15px !important;
  303. border: 1px solid #ddd !important;
  304. }