guibik.less 13 KB

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