guibik.less 12 KB

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