guibik.less 12 KB

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