styles.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. /**
  2. * SonataAdminBundle Theme based on SB Admin v2.0
  3. * http://startbootstrap.com/templates/sb-admin-v2/
  4. */
  5. html {
  6. position: relative;
  7. min-height: 100%;
  8. }
  9. footer {
  10. position: absolute;
  11. bottom: 0;
  12. width: 100%;
  13. height: 20px;
  14. background-color: #333;
  15. }
  16. footer p {
  17. margin: 0;
  18. }
  19. footer a {
  20. color: #f6f6f6;
  21. }
  22. body > .header .logo {
  23. font-family: 'Source Sans Pro', sans-serif;
  24. }
  25. .logo img {
  26. display: inline;
  27. padding-bottom: 4px;
  28. max-height: 100%;
  29. max-width: 60px;
  30. }
  31. .logo span {
  32. display: inline-block;
  33. line-height: 1;
  34. vertical-align: middle;
  35. width: 200px;
  36. }
  37. .logo img + span { width: 140px; }
  38. .open > .dropdown-menu {
  39. animation-duration: .3s;
  40. -webkit-animation-duration: .3s;
  41. -moz-animation-duration: .3s;
  42. }
  43. /* Buttons */
  44. .btn.btn-outline {
  45. color: inherit;
  46. background-color: transparent;
  47. transition: all .5s;
  48. }
  49. .btn.btn-primary.btn-outline:hover,
  50. .btn.btn-success.btn-outline:hover,
  51. .btn.btn-info.btn-outline:hover,
  52. .btn.btn-warning.btn-outline:hover,
  53. .btn.btn-danger.btn-outline:hover {
  54. color: #fff;
  55. }
  56. /* navigation */
  57. .navbar-static-side ul li {
  58. border-bottom: 1px solid #e7e7e7;
  59. }
  60. .navbar-brand {
  61. padding-right: 20px;
  62. }
  63. .navbar-brand img {
  64. height: 28px;
  65. margin: 0;
  66. padding: 0 5px 0 0;
  67. vertical-align: middle;
  68. }
  69. .navbar-text .navbar-link {
  70. padding: 0 10px;
  71. }
  72. .right-side > .content-header {
  73. padding-bottom: 0;
  74. }
  75. .content-header .navbar {
  76. margin-bottom: 0;
  77. }
  78. .content-header .navbar-nav.navbar-right:last-child {
  79. margin-right: 0;
  80. }
  81. /* breadcrumb */
  82. .sonata-bc .breadcrumb {
  83. padding: 0;
  84. margin: 0;
  85. background: inherit;
  86. float:left;
  87. }
  88. .sonata-bc .breadcrumb li a {
  89. display: inline-block;
  90. }
  91. /* MEGA MENU STYLE
  92. ********************************/
  93. .dropdown-menu.multi-column .dropdown-menu {
  94. display: block !important;
  95. position: static !important;
  96. margin: 0 !important;
  97. border: none !important;
  98. box-shadow: none !important;
  99. min-width:100px;
  100. }
  101. .dropdown-add .dropdown-menu > li > a {
  102. white-space: normal;
  103. overflow: hidden;
  104. }
  105. /* top right */
  106. .navbar-static-top {
  107. margin-bottom: 0;
  108. }
  109. .navbar-top-links > p,
  110. .navbar-top-links > ul {
  111. float: right;
  112. }
  113. .navbar-top-links li {
  114. display: inline-block;
  115. }
  116. .navbar-top-links li a,
  117. .navbar-top-links li span {
  118. padding: 15px;
  119. min-height: 50px;
  120. }
  121. .navbar-top-links li a:hover {
  122. text-decoration: none;
  123. }
  124. .skin-black .navbar .breadcrumb > li > a:hover {
  125. color: #444;
  126. background: #f5f5f5;
  127. }
  128. .skin-black .navbar .dropdown-menu > li > a:hover {
  129. background-color: #f5f5f5;
  130. }
  131. .navbar-top-links .dropdown-menu li {
  132. display: block;
  133. }
  134. .navbar-top-links .dropdown-menu li:last-child {
  135. margin-right: 0;
  136. }
  137. .navbar-top-links .dropdown-menu li a {
  138. padding: 3px 20px;
  139. min-height: 0;
  140. }
  141. .navbar-top-links .dropdown-menu li a div {
  142. white-space: normal;
  143. }
  144. .navbar-top-links .dropdown-messages,
  145. .navbar-top-links .dropdown-tasks,
  146. .navbar-top-links .dropdown-alerts {
  147. width: 310px;
  148. min-width: 0;
  149. }
  150. .navbar-top-links .dropdown-messages {
  151. margin-left: 5px;
  152. }
  153. .navbar-top-links .dropdown-tasks {
  154. margin-left: -59px;
  155. }
  156. .navbar-top-links .dropdown-alerts {
  157. margin-left: -123px;
  158. }
  159. .navbar-top-links .dropdown-user {
  160. right: 0;
  161. left: auto;
  162. }
  163. /* Content navbar */
  164. body.fixed .content-header .navbar {
  165. position: relative;
  166. }
  167. /* sidebar menu styles */
  168. .sidebar-search {
  169. padding: 15px;
  170. }
  171. .sidebar-menu li.keep-open > .treeview-menu {
  172. display: block !important;
  173. height: auto !important;
  174. }
  175. .arrow {
  176. float: right;
  177. }
  178. .fa.arrow:before {
  179. content: "\f104";
  180. }
  181. .active > a > .fa.arrow:before {
  182. content: "\f107";
  183. }
  184. .nav-second-level li,
  185. .nav-third-level li {
  186. border-bottom: none !important;
  187. }
  188. .nav-second-level li a {
  189. padding-left: 37px;
  190. }
  191. .nav-third-level li a {
  192. padding-left: 52px;
  193. }
  194. @media(min-width:768px) {
  195. .navbar-static-side {
  196. z-index: 1;
  197. position: absolute;
  198. width: 250px;
  199. }
  200. .navbar-top-links .dropdown-messages,
  201. .navbar-top-links .dropdown-tasks,
  202. .navbar-top-links .dropdown-alerts {
  203. margin-left: auto;
  204. }
  205. }
  206. /* Admin table */
  207. table.sonata-ba-list {
  208. font-size: 14px;
  209. }
  210. table.sonata-ba-list img {
  211. max-width: 100%;
  212. height: auto;
  213. }
  214. table.sonata-ba-list td {
  215. overflow: auto;
  216. }
  217. td.sonata-ba-list-label {
  218. color: #565656;
  219. font-weight: bold;
  220. text-align: right;
  221. vertical-align: middle !important;
  222. }
  223. /* side filter */
  224. .box .box-header h4.box-title.filter_legend {
  225. position: relative;
  226. padding-left: 20px;
  227. cursor: pointer;
  228. }
  229. h4.filter_legend:before {
  230. content: "";
  231. display: block;
  232. width: 0;
  233. height: 0;
  234. border-top: 4px solid black;
  235. border-right: 4px solid transparent;
  236. border-left: 4px solid transparent;
  237. position: absolute;
  238. top: 50%;
  239. left: 2px;
  240. margin-top: -2px;
  241. margin-left: 5px;
  242. }
  243. h4.filter_legend.active,
  244. tr.filter.active * {
  245. font-weight: bold;
  246. color: #000;
  247. }
  248. form.sonata-filter-form.form-stacked {
  249. padding-left: 0;
  250. }
  251. body.fixed .sonata-list-table {
  252. position: relative;
  253. margin-left: 15px;
  254. margin-right: 15px;
  255. margin-bottom: 5px;
  256. }
  257. .navbar-nav.navbar-right:last-child {
  258. margin-right: 0;
  259. }
  260. /* Overrides */
  261. /* x-editable */
  262. td.sonata-ba-list-field .editable {
  263. cursor: pointer;
  264. }
  265. td.sonata-ba-list-field .btn.editable {
  266. border-bottom: solid 1px #BBB;
  267. }
  268. td.sonata-ba-list-field .editable-empty:not(.editable-open) {
  269. display: none;
  270. }
  271. .sonata-ba-list tr:hover .editable-empty {
  272. display: inline-block;
  273. }
  274. .editable-pre-wrapped {
  275. white-space: normal;
  276. }
  277. .editable-container .prev:before {
  278. content: "\2190 ";
  279. }
  280. .editable-container .next:before {
  281. content: "\2192 ";
  282. }
  283. /* bootstrap */
  284. .input-group-addon {
  285. width: auto; /* See https://github.com/sonata-project/SonataAdminBundle/issues/2950 */
  286. }
  287. /**
  288. * Make checkbox / radio label consistant with other labels
  289. */
  290. .checkbox label,
  291. .radio label {
  292. font-weight: 700;
  293. margin-left: -20px;
  294. }
  295. /**
  296. * The iCheck checkboxes & radios have 0 margin by default,
  297. * add some space for the label text.
  298. */
  299. .checkbox div[class^="icheckbox"],
  300. .checkbox-inline div[class^="icheckbox"],
  301. .radio div[class^="iradio"],
  302. .radio-inline div[class^="iradio"] {
  303. position: relative;
  304. margin-top: 4px \9;
  305. margin-right: 5px;
  306. margin-top: -3px;
  307. }
  308. .form-inline .checkbox div[class^="icheckbox"],
  309. .form-inline .checkbox-inline div[class^="icheckbox"],
  310. .form-inline .radio div[class^="iradio"],
  311. .form-inline .radio-inline div[class^="iradio"] {
  312. position: relative;
  313. margin-top: 4px \9;
  314. margin-left: 0;
  315. margin-right: 5px;
  316. margin-top: -3px;
  317. }
  318. /* Hide Delete checkbox on sonata_type_collection tables */
  319. .sonata-ba-field-inline-table td > div.checkbox > label > .control-label__text {
  320. position: absolute;
  321. width: 1px;
  322. height: 1px;
  323. padding: 0;
  324. margin: -1px;
  325. overflow: hidden;
  326. clip: rect(0,0,0,0);
  327. border: 0;
  328. }
  329. /* select2 */
  330. .select2-choice, .select2-choices, .select2-drop {
  331. border-radius: 0 !important;
  332. }
  333. /* Used for the mosaic view */
  334. td > div.row {
  335. padding: 0;
  336. margin: 0;
  337. }
  338. div.mosaic-box {
  339. padding: 2px;
  340. border-radius: 3px;
  341. }
  342. div.mosaic-inner-box {
  343. position: relative;
  344. }
  345. div.mosaic-inner-box-hover {
  346. position: absolute;
  347. top: 0;
  348. left: 0;
  349. right: 0;
  350. bottom: 0;
  351. border-radius: 4px 4px 0 0;
  352. background-color: rgba(255, 255, 255, .8);
  353. transition: .25s opacity;
  354. padding: 5px 10px;
  355. }
  356. div.mosaic-inner-box:hover > div.mosaic-inner-box-hover {
  357. opacity: 1;
  358. }
  359. div.mosaic-inner-box > div.mosaic-inner-box-hover {
  360. opacity: 0;
  361. }
  362. div.mosaic-inner-box img {
  363. width: 100%;
  364. height: auto;
  365. border-radius: 4px 4px 0 0;
  366. }
  367. div.mosaic-box-outter {
  368. background-size: 100% auto;
  369. border: 1px solid #ddd;
  370. border-radius: 5px;
  371. background-color: #fff;
  372. }
  373. div.mosaic-inner-box {
  374. height: 100px;
  375. border-bottom: none;
  376. overflow: hidden;
  377. }
  378. div.mosaic-inner-text {
  379. background: white;
  380. border-top: none;
  381. padding: 3px;
  382. border-radius: 0 0 5px 5px;
  383. z-index: 2;
  384. position: relative;
  385. white-space: nowrap;
  386. overflow: hidden;
  387. text-overflow: ellipsis;
  388. }
  389. .mosaic-inner-link {
  390. vertical-align: middle;
  391. }
  392. .mosaic-box-label {
  393. position: absolute;
  394. top: 10px;
  395. right: 10px;
  396. }
  397. div.mosaic-box.sonata-ba-list-row-selected > div.mosaic-inner-box {
  398. border: 1px solid #333;
  399. border-bottom: none;
  400. }
  401. div.mosaic-box.sonata-ba-list-row-selected > div.mosaic-inner-text {
  402. border: 1px solid #333;
  403. border-top: none;
  404. }
  405. div.sonata-filters-box div.form-group div.form-group {
  406. margin: 0;
  407. }
  408. div.sonata-filters-box div.form-group span.input-group-addon {
  409. padding: 3px 10px;
  410. font-size: 13px;
  411. }
  412. .sonata-search-result-hide {
  413. display: none;
  414. }
  415. .sonata-search-result-fade {
  416. opacity: 0.6;
  417. }
  418. .sonata-search-result-show {
  419. display: block;
  420. }