guibik.less 14 KB

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