guibik.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. @import 'elements.less';
  2. /** table */
  3. @grey:#E0E0E0;
  4. @greylite:#F4F4F4;
  5. /** GENERAL FORM */
  6. a{color:#0092D2;}
  7. table th{background-color: @grey;}
  8. .block,
  9. .item-list,
  10. .help-items ul,
  11. .form-item,
  12. .confirmation ul,
  13. .admin-list,
  14. .node-type-list,
  15. .admin-panel {
  16. border-width:0px;
  17. border-style:solid;
  18. border-color:#fff;
  19. }
  20. .text-format-wrapper .form-item {
  21. background:#F4F4F4;
  22. margin:0px 0px 10px;
  23. border-width:0;
  24. border-style:solid;
  25. border-color:#ddd;
  26. padding: 9px;
  27. }
  28. .form-item label {
  29. color:#1A1A1A;
  30. font-weight:normal;
  31. font-size:12px;
  32. text-transform: none;
  33. }
  34. input.form-autocomplete,
  35. input.form-text,
  36. textarea.form-textarea,
  37. select.form-select {
  38. padding:3px;
  39. border-width:1px;
  40. border-style:solid;
  41. border-color:#BFBFBF;
  42. background:#fff;
  43. color:#1A1A1A;
  44. max-width:100%;
  45. }
  46. span.autocomplete-deluxe-button{top:0.25em;}
  47. .fieldset {
  48. &.titled{margin:20px 0px 10px!important;}
  49. display:block;
  50. position:relative;
  51. min-height:28px;
  52. border: 0 solid #eee;
  53. border-top:1px solid #4C4C4C;
  54. legend{
  55. margin-top:-0.9em;
  56. }
  57. &.collapsible legend{
  58. a.fieldset-title{
  59. padding-right:15px;
  60. &:after{
  61. content:"-";
  62. padding:0 3px 2px;
  63. margin:-5px 0 0 10px;
  64. .rounded();
  65. color:#000;
  66. background-color: #FFF;
  67. /* font-size:9px;*/
  68. line-height:0;
  69. font-weight:bold;
  70. }
  71. &:hover{color:#fff; font-weight:bold;}
  72. }
  73. }
  74. &.collapsed legend{
  75. a.fieldset-title:after{
  76. content:"+";
  77. /* padding:2px 5px 3px;
  78. .rounded();
  79. color:#fff;
  80. background-color: #1A1A1A;
  81. */ }
  82. }
  83. }
  84. .tabledrag-processed{
  85. border:0 solid #fff;
  86. padding-bottom:2em;
  87. /* border-top:1px solid #4C4C4C;*/
  88. thead{
  89. background-color: transparent;
  90. label{color:inherit; text-shadow: none; padding:0 0 0 0.5em;}
  91. th{background-color: transparent; text-transform:uppercase; font-weight:bold;}
  92. }
  93. }
  94. .item-list h3,
  95. .block .block-title,
  96. .fieldset-title,
  97. .collapsible .fieldset-legend a{
  98. display:inline-block; width:auto;
  99. .rounded();
  100. font-size:12px;
  101. font-weight:normal;
  102. text-transform: uppercase;
  103. margin:0px;
  104. padding:2px 9px 3px;
  105. color:#fff;
  106. background:#666;
  107. }
  108. .block .block-content,
  109. .container-inline .fieldset-content,
  110. .fieldset-content {
  111. padding:10px 9px 9px;
  112. background:#F4F4F4;
  113. }
  114. /** popup description */
  115. .page-content .form-item .description {
  116. color:#fff;
  117. border-top:1px solid #E0E0E0;
  118. /* background: #1A1A1A url() no-repeat scroll top left;*/
  119. background:url(../images/popup.png) 50% 100% no-repeat;
  120. a{text-decoration: underline;}
  121. }
  122. li{list-style: none inside url();}
  123. /** NODE FORM */
  124. #user-profile-form, .node-form{
  125. label{text-transform: uppercase; font-size:1em;}
  126. .fieldset-title,
  127. .vertical-tab-button strong, .horizontal-tab-button strong{text-transform: uppercase; font-size:0.8em; font-weight:bold;}
  128. div.form-type-checkboxes{
  129. &>label, &>div.form-checkboxes{.inline-block;}
  130. }
  131. .form-item-language, .form-type-select{
  132. &>label, &>select{.inline-block;}
  133. &>label{width:35%;}
  134. &>select{max-width:60%;}
  135. }
  136. .form-type-textfield{
  137. &>label, &>input.form-text{.inline-block; margin:0; vertical-align:middle;}
  138. &>label{width:35%;}
  139. &>input.form-text{max-width:60%;}
  140. }
  141. .form-type-link-field{
  142. &>label, &>input.form-text{.inline-block; margin:0;}
  143. &>label{width:35%;}
  144. div{.inline-block; margin:0; width:100%;}
  145. &>div{width:60%;}
  146. input.form-text{max-width:100%;}
  147. }
  148. .form-phone-number{
  149. .form-item{.inline-block;}
  150. input.form-text{width:100%;}
  151. }
  152. .autocomplete-deluxe-button{
  153. margin-top:-3px;
  154. }
  155. .addressfield-container-inline{
  156. &>div.form-item{.inline-block; margin:0; width:30%;}
  157. }
  158. fieldset.filter-wrapper{display:none;}
  159. input.fid.form-text{display:none;}
  160. .form-region-right{
  161. position:relative;
  162. fieldset.form-wrapper{max-width:100%; padding:0; margin:0;}
  163. .fieldset-wrapper{padding:0;}
  164. input.form-text{width:100%;}
  165. }
  166. tr.draggable{
  167. fieldset{
  168. legend{display:none;}
  169. .fieldset-content{
  170. padding:0;
  171. .date-padding{padding:0;}
  172. }
  173. }
  174. }
  175. .field-widget-term-reference-tree .form-item.form-type-checkbox-tree{
  176. display: block;
  177. .term-reference-tree{
  178. &>ul.term-reference-tree-level{.inline-block; padding:0 2em 0 0; min-width:30%;}
  179. .term-reference-track-list-container{.inline-block; border-left:1px solid #848484; padding:0 0 2em 1em;}
  180. }
  181. }
  182. }
  183. /** VERTICAL TABS */
  184. .vertical-tabs {
  185. background:@greylite;
  186. border:1px solid #BFBFBF;
  187. margin:0px 0px 10px;
  188. position:relative;
  189. }
  190. .vertical-tabs .fieldset-content,
  191. .vertical-tabs fieldset.titled .fieldset-content {
  192. border:0px;
  193. padding:10px;
  194. }
  195. .vertical-tabs .fieldset-content .fieldset-content {
  196. margin-top: 20px;
  197. }
  198. .vertical-tabs-list li a {
  199. display:block;
  200. text-shadow:#fff 0px 1px 0px;
  201. padding:5px 10px 4px 10px;
  202. border-bottom:1px solid #BFBFBF;
  203. border-right:1px solid #BFBFBF;
  204. color:#494949;
  205. background: @grey;
  206. }
  207. .vertical-tabs-list li.last a{
  208. border-bottom:0px solid #BFBFBF
  209. }
  210. .vertical-tabs-list .selected a ,
  211. .vertical-tabs-list li:hover a {
  212. background:@greylite;
  213. color:#1A1A1A;
  214. }
  215. .vertical-tabs-list .selected a{
  216. border-right:0 solid @greylite;
  217. }
  218. .vertical-tabs-list .summary { font-size:11px; }
  219. .page-admin table tr.even{
  220. background: #EFEFEF;
  221. }
  222. .page-admin table tr{
  223. &.even, &.odd{
  224. td, h3 {background-color: transparent;}
  225. &:hover{ background: #D4EFEE;}
  226. }
  227. }
  228. .admin-block-description,
  229. .help-items ul li,
  230. .confirmation ul li,
  231. .item-list ul li,
  232. .prose .item-list li,
  233. .menu li {
  234. border-bottom:0 solid #f4f4f4;
  235. }
  236. form .form-actions {
  237. background:#eee;
  238. border:0 solid #ddd;
  239. padding:9px;
  240. }
  241. /** boutons */
  242. input.teaser-button,
  243. input.form-submit,
  244. .node-edit, .button, .node-delete{
  245. cursor:pointer;
  246. padding:0.3em 0.9em;
  247. color:#333;
  248. text-align:center;
  249. font-size:12px;
  250. font-weight:normal;
  251. border-width:1px;
  252. border-style:solid;
  253. border-color:#ddd #ddd #ccc;
  254. background:#bdf url();
  255. .rounded();
  256. &.field-add-more-submit{
  257. padding:0.1em 0.4em 0;
  258. font-size:10px;
  259. }
  260. }
  261. .node-edit, .button, .node-delete{font-size:10px;padding:0.1em 0.6em;}
  262. input.form-submit:hover,
  263. .node-edit:hover, .button:hover, .node-delete:hover{
  264. border-color:#ddd #ddd #ccc;
  265. -webkit-box-shadow:#ace 0px 0px 0px;
  266. color:#bdf;
  267. background-color: #848484;
  268. }
  269. input.button-yes:not(.field-add-more-submit), .node-edit{
  270. background-color: #CCFF2F;
  271. &:hover{
  272. color:#CCFF2F;
  273. }
  274. }
  275. input.button-no, .node-delete{
  276. background-color: #EA4B4A;
  277. &:hover{
  278. color:#EA4B4A;
  279. }
  280. }
  281. /** admin module */
  282. /**
  283. *
  284. * /!\ CUSTOM HERE /!\
  285. *
  286. * Provide better display for admin menu ==============================
  287. */
  288. body.admin-vertical #admin-menu{background:#222;background-image:none;}
  289. body.admin-vertical #admin-menu-wrapper{margin-left:35px!important;}
  290. body.admin-vertical.admin-expanded #admin-menu-wrapper{border-left:1px solid #323232;margin-left:260px!important;}
  291. #admin-toolbar{z-index:1000!important;}
  292. /* --- */
  293. /**
  294. * VIEW
  295. */
  296. #views-ui-edit-form{
  297. div.changed {
  298. background-color: #FFF98E;
  299. }
  300. .views-ui-display-tab-bucket h3{
  301. font-weight:bold;
  302. background-color: #D8D8D8;
  303. }
  304. .defaulted, .views-ui-display-tab-bucket .views-display-setting.even, .views-ui-display-tab-bucket .views-display-setting.odd{ //:not(.overriden)
  305. color: #666;
  306. background-color: #E0E0E0;
  307. font-style: italic;
  308. /* font-weight:bold;*/
  309. a{color: #3F80B3}
  310. }
  311. .views-ui-display-tab-bucket.overridden .views-display-setting, .views-ui-display-tab-bucket.overridden .views-display-setting,
  312. .views-display-setting.overridden{ //:not(.overriden)
  313. &, &.even, &.odd{
  314. color: #7F7F7F;
  315. background-color: #F9F9F9;
  316. font-style: normal;
  317. /* font-weight:bold;*/
  318. a{color: #3188D1;}
  319. }
  320. }
  321. }
  322. .view{
  323. .pager{
  324. padding:1em 0; margin:0; text-align: right; height:auto;
  325. ul{
  326. .inline-block; padding:0;
  327. li{
  328. height:20px;
  329. a, span{padding:1px 10px 2px;}
  330. }
  331. }
  332. }
  333. // EXPOSED
  334. .view-filters{
  335. padding:1em 0; margin:0 0 1em 0;
  336. border: 1px solid #CCC; .border-radius(5px,5px,5px,5px);
  337. &>span.title, &>form{.inline-block;width:auto;position:relative;vertical-align: top;}
  338. &>span.title{padding:0.7em 1em;}
  339. fieldset{
  340. .inline-block; padding:0 1em;
  341. .fieldset-content{padding:0;}
  342. legend{display:none;}
  343. }
  344. /* .views-exposed-form{ */
  345. label{font-weight:normal; font-size:0.75em;}
  346. .form-item{.inline-block; padding:0 0.5em 0 0;
  347. select, input{font-size:0.8em;}
  348. }
  349. /* }*/
  350. }
  351. // VBO
  352. fieldset#edit-select{
  353. padding:1em 0; margin:0 0 1em 0;
  354. border: 1px solid #CCC; .border-radius(5px,5px,5px,5px);
  355. legend, .fieldset-content{.inline-block;}
  356. legend{
  357. width:auto;
  358. *{background-color: transparent;}
  359. }
  360. .fieldset-content{
  361. padding:0;
  362. select, input{font-size:0.8em;}
  363. }
  364. }
  365. .vbo-fieldset-select-all{
  366. width:50%; text-align:left;
  367. .form-item{.inline-block;vertical-align:top;}
  368. em{padding:0 1em;}
  369. }
  370. }
  371. /** media browser */
  372. .view.inline-block-list{
  373. .views-row {
  374. .inline-block; vertical-align:top;
  375. padding: 5px; margin:5px; width:250px; min-height:150px; background-color: #E3E3E3;
  376. .border-radius(5px,5px,5px,5px); border: 1px solid #ddd;
  377. .drop-shadow;
  378. .float-left{
  379. float:left;
  380. &>div{margin:0 10px 10px 0;}
  381. }
  382. }
  383. }
  384. *:focus{
  385. border: 1px solid #BDF!important;
  386. }
  387. /* Contain floats: h5bp.com/q */
  388. .clearfix:before, .clearfix:after { content: ""; display: table; }
  389. .clearfix:after { clear: both; }
  390. .clearfix { zoom: 1; }
  391. .path-admin-content-nodes span.icon { background-position:0px -30px; }
  392. /** admin view */
  393. .custom-admin{
  394. table{
  395. caption{ text-align: left; padding:2em 0 0 0; font-weight:bold;}
  396. th{line-height:1; background-color: @greylite!important;}
  397. td{padding-top:1em;padding-bottom:1em;}
  398. td.views-field-field-media{
  399. width:100px;
  400. img{max-width:100%; height:auto;}
  401. }
  402. &.has-caption{
  403. th, td.views-field-field-media, td.views-field-views-bulk-operations{
  404. background: @grey!important;
  405. }
  406. }
  407. td.views-field-title{ width:350px; }
  408. a.node-title-link{font-size:1.1em; padding:0 0 0.3em; display:inline-block;}
  409. td.views-field-field-people{width:100px;}
  410. }
  411. }
  412. #modalContent{
  413. }
  414. #modalContent div.ctools-modal-content{
  415. padding:5px;
  416. -moz-border-radius: 10px;
  417. -webkit-border-radius: 10px;
  418. border-radius: 10px;
  419. border: 1 solid #999;
  420. }
  421. #modalContent div.ctools-modal-content .modal-header,
  422. #modalContent div.ctools-modal-content .modal-header a,
  423. #modalContent div.ctools-modal-content .modal-header span{
  424. background-color: transparent; color:#000!important;
  425. }