shaarli.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590
  1. $fa-font-path: '~font-awesome/fonts';
  2. @import '~font-awesome/scss/font-awesome';
  3. @import '~purecss/build/pure.css';
  4. @import '~purecss/build/grids-responsive.css';
  5. @import '~pure-extras/css/pure-extras.css';
  6. @import '~awesomplete/awesomplete.css';
  7. $white: #fff;
  8. $black: #000;
  9. $almost-white: #f5f5f5;
  10. $dark-grey: #252525;
  11. $light-grey: #797979;
  12. $main-green: #1b926c;
  13. $light-green: #b0ddce;
  14. $dark-green: #2a4c41;
  15. $red: #ac2925;
  16. $orange: #f89406;
  17. $blue: #0b5ea6;
  18. $background-color: #d0d0d0;
  19. $background-linklist-info: #ddd;
  20. $light-shadow: rgba(255, 255, 255, .078);
  21. $dark-shadow: rgba(0, 0, 0, .298);
  22. $warning-text: #97600d;
  23. $form-input-border: #d8d8d8;
  24. $form-input-background: #eee;
  25. // General
  26. body {
  27. background: $background-color;
  28. }
  29. .strong {
  30. font-weight: bold;
  31. }
  32. .clear {
  33. clear: both;
  34. }
  35. .center {
  36. margin: auto;
  37. text-align: center;
  38. }
  39. .label {
  40. display: inline-block;
  41. border-radius: .25rem;
  42. padding: .25em .4em;
  43. vertical-align: baseline;
  44. text-align: center;
  45. line-height: 1;
  46. white-space: nowrap;
  47. font-size: 75%;
  48. font-weight: 700;
  49. }
  50. pre {
  51. max-width: 100%;
  52. }
  53. @font-face {
  54. font-family: 'Roboto';
  55. font-weight: 400;
  56. font-style: normal;
  57. src: local('Roboto'),
  58. local('Roboto-Regular'),
  59. url('../fonts/Roboto-Regular.woff2') format('woff2'),
  60. url('../fonts/Roboto-Regular.woff') format('woff');
  61. }
  62. @font-face {
  63. font-family: 'Roboto';
  64. font-weight: 700;
  65. font-style: normal;
  66. src: local('Roboto'),
  67. local('Roboto-Bold'),
  68. url('../fonts/Roboto-Bold.woff2') format('woff2'),
  69. url('../fonts/Roboto-Bold.woff') format('woff');
  70. }
  71. body,
  72. .pure-g [class*='pure-u'] {
  73. font-family: Roboto, Arial, sans-serif;
  74. }
  75. // Extends Pure grids responsive to hide items.
  76. // Use xx-0 to hide an item on xx screen.
  77. // Display it at any level with xx-visible.
  78. .pure-u-0 {
  79. display: none !important;
  80. }
  81. @media screen and (min-width: 35.5em) {
  82. .pure-u-sm-0 {
  83. display: none !important;
  84. }
  85. .pure-u-sm-visible {
  86. display: inline-block !important;
  87. }
  88. }
  89. @media screen and (min-width: 48em) {
  90. .pure-u-md-0 {
  91. display: none !important;
  92. }
  93. .pure-u-md-visible {
  94. display: inline-block !important;
  95. }
  96. }
  97. @media screen and (min-width: 64em) {
  98. .pure-u-lg-0 {
  99. display: none !important;
  100. }
  101. .pure-u-lg-visible {
  102. display: inline-block !important;
  103. }
  104. }
  105. @media screen and (min-width: 80em) {
  106. .pure-u-xl-0 {
  107. display: none !important;
  108. }
  109. .pure-u-xl-visible {
  110. display: inline-block !important;
  111. }
  112. }
  113. // Make pure-extras alert closable.
  114. .pure-alert-closable {
  115. .fa-times {
  116. float: right;
  117. }
  118. }
  119. .pure-alert-close {
  120. cursor: pointer;
  121. }
  122. .pure-alert-success {
  123. background-color: $main-green;
  124. }
  125. .pure-alert-warning {
  126. a {
  127. color: $warning-text;
  128. font-weight: bold;
  129. }
  130. }
  131. .page-single-alert {
  132. margin-top: 100px;
  133. }
  134. .anchor {
  135. &:target {
  136. padding-top: 40px;
  137. }
  138. }
  139. // MENU
  140. .shaarli-menu {
  141. position: fixed;
  142. top: 0;
  143. transition: max-height .5s;
  144. z-index: 999;
  145. background: $main-green;
  146. width: 100%;
  147. // Hack to transition with auto height: http://stackoverflow.com/a/8331169/1484919
  148. max-height: 45px;
  149. overflow: hidden;
  150. -webkit-font-smoothing: antialiased;
  151. &.open {
  152. transition: max-height .75s;
  153. max-height: 500px;
  154. }
  155. }
  156. .pure-menu-item {
  157. // Chrome bugfix: with 100% height, it only displays the first element.
  158. height: 45px;
  159. &:hover {
  160. &::after {
  161. display: block;
  162. margin: -4px auto 0;
  163. background: $white;
  164. width: 100%;
  165. height: 4px;
  166. content: '';
  167. }
  168. }
  169. }
  170. .head-logo {
  171. float: left;
  172. margin: 0 5px 0 0;
  173. }
  174. %menu-link {
  175. padding: .8em 1em;
  176. color: $almost-white;
  177. }
  178. %menu-link-hover {
  179. background: transparent;
  180. color: $white;
  181. }
  182. .pure-menu-link {
  183. @extend %menu-link;
  184. &:visited {
  185. @extend %menu-link;
  186. }
  187. &:hover,
  188. &:focus {
  189. @extend %menu-link-hover;
  190. }
  191. }
  192. .pure-menu-selected {
  193. .pure-menu-link {
  194. @extend %menu-link;
  195. &:visited {
  196. @extend %menu-link;
  197. }
  198. &:hover,
  199. &:focus {
  200. @extend %menu-link-hover;
  201. }
  202. }
  203. }
  204. .menu-toggle {
  205. display: none;
  206. position: absolute;
  207. top: 5px;
  208. right: 0;
  209. width: 34px;
  210. height: 45px;
  211. .bar {
  212. display: block;
  213. position: absolute;
  214. top: 18px;
  215. right: 7px;
  216. border-radius: 100px;
  217. background-color: $light-green;
  218. width: 20px;
  219. height: 2px;
  220. transition-duration: .5s;
  221. &:first-child {
  222. transform: translateY(-6px);
  223. }
  224. }
  225. &.x {
  226. .bar {
  227. transform: rotate(45deg);
  228. &:first-child {
  229. transform: rotate(-45deg);
  230. }
  231. }
  232. }
  233. }
  234. @media screen and (max-width: 64em) {
  235. .menu-toggle {
  236. display: block;
  237. }
  238. }
  239. .header-buttons {
  240. text-align: right;
  241. }
  242. .linkcount {
  243. color: $dark-grey;
  244. font-size: .8em;
  245. }
  246. @media screen and (min-width: 64em) {
  247. .linkcount {
  248. position: absolute;
  249. right: 5px;
  250. }
  251. }
  252. .searchform-block {
  253. width: 100%;
  254. text-align: center;
  255. input {
  256. &[type='text'] {
  257. border: medium none currentColor;
  258. border-radius: 2px;
  259. box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset;
  260. background: $almost-white;
  261. padding: 0 5px;
  262. width: 260px;
  263. height: 30px;
  264. color: $dark-grey;
  265. &::-webkit-input-placeholder {
  266. color: $light-grey;
  267. }
  268. }
  269. }
  270. button {
  271. border: 0;
  272. border-radius: 2px;
  273. background-color: $main-green;
  274. padding: 4px 8px 6px;
  275. color: $almost-white;
  276. }
  277. }
  278. @media screen and (max-width: 64em) {
  279. .searchform {
  280. margin: 0 auto;
  281. max-width: 260px;
  282. }
  283. }
  284. .search-tagcloud {
  285. button {
  286. width: 90%;
  287. }
  288. }
  289. @media screen and (max-width: 64em) {
  290. .search-linklist {
  291. button {
  292. width: 100%;
  293. }
  294. .awesomplete {
  295. margin: 5px 0;
  296. }
  297. }
  298. }
  299. .header-search,
  300. .search-linklist,
  301. .search-tagcloud {
  302. button {
  303. &:hover {
  304. color: $background-color;
  305. }
  306. }
  307. }
  308. .header-search,
  309. .search-linklist {
  310. padding: 6px 0;
  311. }
  312. @media screen and (max-width: 64em) {
  313. .header-search ,
  314. .header-search * {
  315. visibility: hidden;
  316. }
  317. }
  318. %subheader-form-input {
  319. border: medium none currentColor;
  320. border-radius: 2px;
  321. box-shadow: 0 1px 0 $light-shadow, 0 1px 4px $dark-shadow inset;
  322. background: $almost-white;
  323. padding: 5px 5px 3px 15px;
  324. color: $dark-grey;
  325. }
  326. .subheader-form {
  327. display: block;
  328. position: fixed;
  329. visibility: hidden;
  330. z-index: 999;
  331. background: $main-green;
  332. padding: 5px 0;
  333. width: 100%;
  334. height: 30px;
  335. text-align: center;
  336. input {
  337. &[type='text'],
  338. &[type='password'] {
  339. @extend %subheader-form-input;
  340. &::-webkit-input-placeholder {
  341. color: $dark-grey;
  342. }
  343. }
  344. }
  345. &[type='submit'] {
  346. display: inline-block;
  347. margin: 0 0 5px;
  348. border: 1px solid $almost-white;
  349. border-radius: 2px;
  350. background: $main-green;
  351. padding: 4px 0;
  352. width: 100px;
  353. height: 28px;
  354. color: $almost-white;
  355. &:hover {
  356. background: $almost-white;
  357. color: $main-green;
  358. }
  359. }
  360. .remember-me {
  361. @extend %subheader-form-input;
  362. display: inline-block;
  363. cursor: pointer;
  364. padding: 5px 20px 3px;
  365. width: auto;
  366. label,
  367. input {
  368. cursor: pointer;
  369. }
  370. }
  371. a {
  372. &.button {
  373. border: 2px solid $almost-white;
  374. border-radius: 5px;
  375. padding: 3px 10px;
  376. text-decoration: none;
  377. color: $almost-white;
  378. font-weight: bold;
  379. }
  380. }
  381. }
  382. .header-login-form {
  383. input {
  384. &[type='text'],
  385. &[type='password'] {
  386. width: 200px;
  387. // because chrome
  388. &::-webkit-input-placeholder {
  389. color: $light-grey;
  390. }
  391. }
  392. }
  393. }
  394. @media screen and (min-width: 64em) {
  395. .subheader-form {
  396. &.open {
  397. visibility: visible;
  398. * {
  399. visibility: visible;
  400. }
  401. }
  402. }
  403. }
  404. .new-version-message {
  405. text-align: center;
  406. a {
  407. color: $warning-text;
  408. font-weight: bold;
  409. }
  410. }
  411. // CONTENT - GENERAL
  412. .container {
  413. position: relative;
  414. z-index: 2;
  415. margin-top: 45px;
  416. }
  417. // Plugins additional forms
  418. .toolbar-plugin {
  419. margin: 5px 0;
  420. text-align: center;
  421. input {
  422. &[type='text'] {
  423. border: medium none currentColor;
  424. border-radius: 2px;
  425. box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset;
  426. background: $almost-white;
  427. padding: 0 5px;
  428. width: 300px;
  429. height: 30px;
  430. color: $dark-grey;
  431. &::-webkit-input-placeholder {
  432. color: $light-grey;
  433. }
  434. }
  435. &[type='submit'] {
  436. border: medium none currentColor;
  437. border-radius: 2px;
  438. background: $almost-white;
  439. padding: 0 10px;
  440. height: 30px;
  441. color: $dark-grey;
  442. &:hover {
  443. background: $white;
  444. }
  445. }
  446. }
  447. }
  448. @media screen and (max-width: 64em) {
  449. .toolbar-plugin {
  450. input {
  451. &[type='text'] {
  452. width: 70%;
  453. }
  454. }
  455. }
  456. }
  457. // CONTENT - LINKLIST PAGING
  458. // 64em -> lg
  459. .linklist-filters {
  460. margin: 5px 0;
  461. color: $dark-grey;
  462. font-size: .9em;
  463. a {
  464. padding: 5px 8px;
  465. text-decoration: none;
  466. }
  467. .filter-off {
  468. background: $almost-white;
  469. color: $dark-grey;
  470. }
  471. .filter-on {
  472. background: $main-green;
  473. color: $light-green;
  474. }
  475. .filter-block {
  476. background: $red;
  477. color: $almost-white;
  478. }
  479. }
  480. .linklist-pages {
  481. margin: 5px 0;
  482. text-align: center;
  483. color: $dark-grey;
  484. a {
  485. text-decoration: none;
  486. color: $dark-grey;
  487. &:hover {
  488. color: $white;
  489. }
  490. }
  491. }
  492. %linksperpage-button {
  493. display: inline-block;
  494. width: 20px;
  495. text-align: center;
  496. }
  497. .linksperpage {
  498. margin: 5px 0;
  499. text-align: right;
  500. color: $dark-grey;
  501. font-size: .9em;
  502. form {
  503. display: inline;
  504. }
  505. a {
  506. @extend %linksperpage-button;
  507. background: $almost-white;
  508. padding: 5px;
  509. text-decoration: none;
  510. color: $dark-grey;
  511. }
  512. input {
  513. &[type='text'] {
  514. @extend %linksperpage-button;
  515. margin: 0;
  516. border: medium none currentColor;
  517. background: $almost-white;
  518. padding: 4px 5px 3px 8px;
  519. height: 20px;
  520. color: $dark-grey;
  521. font-size: .8em;
  522. }
  523. }
  524. }
  525. // CONTENT - LINKLIST ITEMS
  526. %private-border {
  527. display: block;
  528. position: absolute;
  529. top: 0;
  530. left: 3px;
  531. z-index: 1;
  532. background: $orange;
  533. width: 2px;
  534. height: 96%;
  535. content: '';
  536. }
  537. .linklist-item {
  538. position: relative;
  539. margin: 0 0 10px;
  540. box-shadow: 1px 1px 3px $light-grey;
  541. background: $almost-white;
  542. &.private {
  543. &::before {
  544. display: block;
  545. position: absolute;
  546. top: 0;
  547. left: 0;
  548. z-index: 1;
  549. background: $orange;
  550. width: 2px;
  551. height: 100%;
  552. content: '';
  553. }
  554. }
  555. }
  556. .linklist-item-buttons {
  557. position: relative;
  558. z-index: 99;
  559. background: transparent;
  560. width: 23px;
  561. }
  562. .linklist-item-buttons-right {
  563. float: right;
  564. margin-right: -25px;
  565. }
  566. .linklist-item-buttons * {
  567. display: block;
  568. float: left;
  569. margin: auto;
  570. width: 100%;
  571. text-align: center;
  572. }
  573. .linklist-item-title {
  574. position: relative;
  575. margin: 0;
  576. background: $almost-white;
  577. word-wrap: break-word;
  578. h2 {
  579. margin: 0;
  580. padding: 3px 10px 0;
  581. line-height: 30px;
  582. word-wrap: break-word;
  583. a {
  584. vertical-align: middle;
  585. text-decoration: none;
  586. color: $dark-grey;
  587. font-size: .7em;
  588. &:visited {
  589. .linklist-link {
  590. color: $dark-green;
  591. }
  592. }
  593. &:hover {
  594. color: $dark-grey;
  595. }
  596. }
  597. }
  598. .linklist-link {
  599. color: $main-green;
  600. font-size: 1.1em;
  601. &:hover {
  602. color: $dark-grey;
  603. }
  604. }
  605. .label-private {
  606. border: solid 1px $orange;
  607. color: $orange;
  608. font-family: Arial, sans-serif;
  609. font-size: .65em;
  610. }
  611. }
  612. .fold-button {
  613. display: none;
  614. color: $dark-grey;
  615. }
  616. .linklist-item-editbuttons {
  617. float: right;
  618. padding: 8px 5px;
  619. * {
  620. display: block;
  621. float: left;
  622. margin: 0 1px;
  623. }
  624. a {
  625. font-size: 1em;
  626. }
  627. .link-checkbox {
  628. display: none;
  629. }
  630. }
  631. .edit-link {
  632. color: $blue;
  633. font-size: 1.2em;
  634. }
  635. .delete-link {
  636. color: $red !important;
  637. font-size: 1.3em;
  638. }
  639. .linklist-item-description {
  640. position: relative;
  641. padding: 0 10px;
  642. line-height: 1.3em;
  643. color: $dark-grey;
  644. word-wrap: break-word;
  645. a {
  646. text-decoration: none;
  647. color: $main-green;
  648. &:hover {
  649. color: $dark-grey;
  650. }
  651. &:visited {
  652. color: $dark-green;
  653. }
  654. }
  655. }
  656. .linklist-item-thumbnail {
  657. position: relative;
  658. float: right;
  659. z-index: 50;
  660. margin: 0;
  661. padding: 0 0 0 5px;
  662. height: 90px;
  663. }
  664. .linklist-item-infos {
  665. background: $background-linklist-info;
  666. padding: 4px 8px;
  667. color: $dark-grey;
  668. a {
  669. text-decoration: none;
  670. color: $dark-grey;
  671. &:hover {
  672. color: $black;
  673. }
  674. }
  675. .linklist-item-tags {
  676. font-size: .8em;
  677. }
  678. .label-tag {
  679. font-size: 1em;
  680. }
  681. .mobile-buttons {
  682. text-align: right;
  683. }
  684. .linklist-plugin-icon {
  685. display: inline-block;
  686. margin: 0 2px;
  687. width: 16px;
  688. height: 16px;
  689. }
  690. }
  691. .linklist-item-infos-dateblock {
  692. font-size: .9em;
  693. }
  694. .linklist-plugin-icon {
  695. width: 13px;
  696. height: 13px;
  697. }
  698. .linklist-item-infos-url {
  699. height: 23px;
  700. overflow: hidden;
  701. text-align: right;
  702. text-overflow: ellipsis;
  703. line-height: 23px;
  704. white-space: nowrap;
  705. font-size: .8em;
  706. }
  707. .linklist-item-infos-controls-group {
  708. display: inline-block;
  709. border-right: 1px solid $light-grey;
  710. padding-right: 6px;
  711. }
  712. .ctrl-edit {
  713. margin: 0 7px;
  714. }
  715. // 64em -> lg
  716. @media screen and (max-width: 64em) {
  717. .linklist-item-infos-url {
  718. text-align: left;
  719. }
  720. }
  721. // Footer
  722. .footer-container {
  723. margin: 20px 0;
  724. padding: 5px;
  725. text-align: center;
  726. color: $dark-grey;
  727. &::before {
  728. display: block;
  729. margin: 10px auto;
  730. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  731. width: 80%;
  732. height: 1px;
  733. content: '';
  734. }
  735. a {
  736. color: $dark-grey;
  737. }
  738. }
  739. // PAGE FORM
  740. %page-form-input {
  741. margin: 10px 0;
  742. border: solid 1px $form-input-border;
  743. border-radius: 2px;
  744. background: $form-input-background;
  745. padding: 5px 5px 3px 15px;
  746. width: 90%;
  747. height: 35px;
  748. color: $dark-grey;
  749. box-sizing: border-box;
  750. }
  751. %page-form-button {
  752. display: inline-block;
  753. margin: 15px 5px;
  754. border: 0;
  755. box-shadow: 1px 1px 1px $form-input-border, -1px -1px 6px $form-input-border, -1px 1px 2px $form-input-border, 1px -1px 2px $form-input-border;
  756. background: $main-green;
  757. min-width: 150px;
  758. height: 35px;
  759. vertical-align: center;
  760. text-decoration: none;
  761. line-height: 35px;
  762. color: $almost-white;
  763. font-size: 1.2em;
  764. font-weight: normal;
  765. }
  766. .page-form {
  767. margin: 20px 0 0;
  768. box-shadow: 1px 1px 2px $light-grey;
  769. background: $almost-white;
  770. overflow: hidden;
  771. color: $dark-grey;
  772. .window-title {
  773. margin: 0 0 10px;
  774. background: $almost-white;
  775. padding: 10px 0;
  776. width: 100%;
  777. text-align: center;
  778. color: $main-green;
  779. }
  780. .window-subtitle {
  781. text-align: center;
  782. }
  783. a {
  784. text-decoration: none;
  785. color: $main-green;
  786. font-weight: bold;
  787. &.button {
  788. @extend %page-form-button;
  789. }
  790. }
  791. p {
  792. margin: 0;
  793. padding: 5px 10px;
  794. }
  795. input {
  796. &[type='text'] {
  797. @extend %page-form-input;
  798. &::-webkit-input-placeholder {
  799. color: $light-grey;
  800. }
  801. }
  802. &[type='password'] {
  803. @extend %page-form-input;
  804. &::-webkit-input-placeholder {
  805. color: $light-grey;
  806. }
  807. }
  808. &[type='submit'] {
  809. @extend %page-form-button;
  810. }
  811. }
  812. textarea {
  813. @extend %page-form-input;
  814. padding: 15px 5px 3px 15px;
  815. min-height: 240px;
  816. resize: vertical;
  817. overflow-y: auto;
  818. word-wrap: break-word;
  819. }
  820. select {
  821. color: $dark-grey;
  822. }
  823. .button {
  824. &.button-red {
  825. background: $red;
  826. }
  827. }
  828. .submit-buttons {
  829. margin-bottom: 10px;
  830. }
  831. section {
  832. margin: 10px 0 25px;
  833. }
  834. table,
  835. th,
  836. td {
  837. border-width: 1px 0;
  838. border-style: solid;
  839. border-color: $light-grey;
  840. }
  841. th,
  842. td {
  843. padding: 5px;
  844. }
  845. table {
  846. margin: auto;
  847. width: 90%;
  848. .order {
  849. text-decoration: none;
  850. color: $dark-grey;
  851. }
  852. }
  853. .awesomplete {
  854. width: 90%;
  855. input {
  856. width: 100%;
  857. }
  858. }
  859. div {
  860. .awesomplete {
  861. > ul {
  862. color: $black;
  863. }
  864. }
  865. }
  866. }
  867. @media screen and (min-width: 64em) {
  868. .page-form {
  869. .submit-buttons {
  870. position: relative;
  871. .button {
  872. &.button-red {
  873. position: absolute;
  874. right: 5%;
  875. }
  876. }
  877. }
  878. }
  879. }
  880. @media screen and (max-width: 64em) {
  881. .page-form {
  882. .submit-buttons {
  883. .button {
  884. display: block;
  885. margin: auto;
  886. }
  887. }
  888. }
  889. }
  890. // PAGE FORM - LIGHT
  891. .page-form-light {
  892. div,
  893. p {
  894. text-align: center;
  895. }
  896. }
  897. // PAGE FORM - COMPLETE
  898. %page-form-valign {
  899. position: absolute;
  900. top: 50%;
  901. transform: translateY(-50%);
  902. }
  903. .page-form-complete {
  904. div,
  905. p {
  906. color: $dark-grey;
  907. }
  908. .form-label,
  909. .form-input {
  910. position: relative;
  911. height: 60px;
  912. }
  913. .form-label {
  914. label {
  915. @extend %page-form-valign;
  916. right: 0;
  917. padding: 0 20px;
  918. text-align: right;
  919. }
  920. }
  921. .label-name {
  922. font-weight: bold;
  923. }
  924. .label-desc {
  925. font-size: .8em;
  926. }
  927. .form-input {
  928. input {
  929. @extend %page-form-valign;
  930. &[type='text'],
  931. &[type='password'] {
  932. margin: 0;
  933. }
  934. }
  935. select {
  936. &.align {
  937. @extend %page-form-valign;
  938. }
  939. }
  940. }
  941. textarea {
  942. margin: 0;
  943. }
  944. .timezone {
  945. @extend %page-form-valign;
  946. }
  947. }
  948. // Awesomeplete fix
  949. div {
  950. &.awesomplete {
  951. width: inherit;
  952. > input {
  953. display: inherit;
  954. }
  955. > ul {
  956. z-index: 9999;
  957. }
  958. }
  959. }
  960. form {
  961. &[name='linkform'] {
  962. &.page-form {
  963. overflow: visible;
  964. }
  965. }
  966. }
  967. @media screen and (max-width: 64em) {
  968. %page-form-valign-mobile {
  969. position: inherit;
  970. top: inherit;
  971. transform: translateY(0);
  972. }
  973. .page-form-complete {
  974. .form-label {
  975. height: inherit;
  976. label {
  977. @extend %page-form-valign-mobile;
  978. display: block;
  979. margin: 10px 0 0;
  980. text-align: left;
  981. }
  982. }
  983. .form-input {
  984. text-align: center;
  985. input {
  986. @extend %page-form-valign-mobile;
  987. &[type='checkbox'] {
  988. position: absolute;
  989. top: 50%;
  990. right: 50%;
  991. transform: translateY(-50%);
  992. }
  993. }
  994. }
  995. .timezone {
  996. @extend %page-form-valign-mobile;
  997. }
  998. .radio-buttons {
  999. padding: 5px 15px;
  1000. text-align: left;
  1001. }
  1002. }
  1003. .timezone-continent {
  1004. &::after {
  1005. white-space: pre;
  1006. content: '\a\a';
  1007. }
  1008. }
  1009. }
  1010. // Page visitor (page form extended)
  1011. .page-visitor {
  1012. color: $dark-grey;
  1013. }
  1014. .page404-container {
  1015. color: $dark-grey;
  1016. }
  1017. // EDIT LINK
  1018. .edit-link-container {
  1019. .created-date {
  1020. margin-bottom: 10px;
  1021. color: $light-grey;
  1022. }
  1023. }
  1024. // LOGIN
  1025. .login-form-container {
  1026. .remember-me {
  1027. margin: 5px 0;
  1028. }
  1029. }
  1030. // Search results
  1031. .search-result {
  1032. a {
  1033. text-decoration: none;
  1034. color: $white;
  1035. }
  1036. .label-tag {
  1037. border-color: $white;
  1038. .remove {
  1039. margin: 0 0 0 5px;
  1040. border-left: $white 1px solid;
  1041. padding: 0 0 0 5px;
  1042. }
  1043. }
  1044. .label-private {
  1045. border: 1px solid $white;
  1046. }
  1047. }
  1048. // TOOLS
  1049. .tools-item {
  1050. margin: 10px 0;
  1051. .pure-button {
  1052. &:hover {
  1053. background-color: $main-green;
  1054. background-image: none;
  1055. color: $almost-white;
  1056. }
  1057. }
  1058. }
  1059. // PLUGIN ADMIN
  1060. .pluginform-container {
  1061. .mobile-row {
  1062. font-size: .9em;
  1063. }
  1064. .more {
  1065. margin-top: 10px;
  1066. }
  1067. }
  1068. @media screen and (max-width: 64em) {
  1069. .pluginform-container {
  1070. .main-row {
  1071. border-top-style: none;
  1072. border-bottom-style: none;
  1073. td {
  1074. border-top-style: none;
  1075. border-bottom-style: none;
  1076. }
  1077. }
  1078. }
  1079. }
  1080. // IMPORT
  1081. .import-field-container {
  1082. margin: 15px 0;
  1083. }
  1084. // TAG CLOUD
  1085. .cloudtag-container {
  1086. padding: 10px;
  1087. text-align: center;
  1088. text-decoration: none;
  1089. color: $dark-grey;
  1090. a {
  1091. text-decoration: none;
  1092. color: $dark-grey;
  1093. }
  1094. .count {
  1095. color: $light-grey;
  1096. }
  1097. }
  1098. // TAG LIST
  1099. .taglist-container {
  1100. padding: 0 10px;
  1101. a {
  1102. text-decoration: none;
  1103. color: $dark-grey;
  1104. }
  1105. .count {
  1106. display: inline-block;
  1107. width: 35px;
  1108. text-align: right;
  1109. color: $light-grey;
  1110. }
  1111. .rename-tag-form {
  1112. display: none;
  1113. }
  1114. .delete-tag {
  1115. display: none;
  1116. color: $red;
  1117. }
  1118. .rename-tag {
  1119. color: $blue;
  1120. }
  1121. .validate-rename-tag {
  1122. color: $main-green;
  1123. }
  1124. }
  1125. // Picture wall CSS
  1126. .picwall-container {
  1127. clear: both;
  1128. margin: 0 10px 10px;
  1129. background-color: $almost-white;
  1130. color: $dark-grey;
  1131. }
  1132. .picwall-pictureframe {
  1133. display: table-cell;
  1134. position: relative;
  1135. float: left;
  1136. z-index: 5;
  1137. margin: 2px;
  1138. background-color: $almost-white;
  1139. width: 90px;
  1140. height: 90px;
  1141. overflow: hidden;
  1142. vertical-align: middle;
  1143. text-align: center;
  1144. // Adapt the width of the image
  1145. img {
  1146. max-width: 100%;
  1147. height: auto;
  1148. color: transparent;
  1149. }
  1150. a {
  1151. text-decoration: none;
  1152. }
  1153. span {
  1154. &.info {
  1155. display: none;
  1156. font-family: Arial, sans-serif;
  1157. }
  1158. }
  1159. // CSS to show title when hovering an image - no javascript required.
  1160. &:hover {
  1161. span {
  1162. &.info {
  1163. display: block;
  1164. position: absolute;
  1165. top: 0;
  1166. left: 0;
  1167. background-color: $dark-shadow;
  1168. width: 90px;
  1169. height: 90px;
  1170. text-align: left;
  1171. color: $almost-white;
  1172. font-size: 9pt;
  1173. font-weight: bold;
  1174. }
  1175. }
  1176. }
  1177. }
  1178. .b-lazy {
  1179. transition: opacity 500ms ease-in-out;
  1180. opacity: 0;
  1181. -webkit-transition: opacity 500ms ease-in-out;
  1182. -moz-transition: opacity 500ms ease-in-out;
  1183. -o-transition: opacity 500ms ease-in-out;
  1184. &.b-loaded {
  1185. opacity: 1;
  1186. }
  1187. }
  1188. // DAILY
  1189. .daily-desc {
  1190. color: $light-grey;
  1191. font-size: .8em;
  1192. a {
  1193. text-decoration: none;
  1194. color: $dark-grey;
  1195. &:hover {
  1196. color: $light-grey;
  1197. }
  1198. }
  1199. }
  1200. .daily-about {
  1201. h3 {
  1202. &::before,
  1203. &::after {
  1204. display: block;
  1205. margin: 10px auto;
  1206. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  1207. width: 90%;
  1208. height: 1px;
  1209. content: '';
  1210. }
  1211. }
  1212. }
  1213. .daily-entry {
  1214. padding: 0 10px;
  1215. .daily-entry-title {
  1216. margin: 10px 0 0;
  1217. a {
  1218. text-decoration: none;
  1219. color: $black;
  1220. }
  1221. &::after {
  1222. display: block;
  1223. margin: 5px auto;
  1224. background: linear-gradient(to right, $white, $light-grey, $white);
  1225. width: 70%;
  1226. height: 1px;
  1227. content: '';
  1228. }
  1229. }
  1230. .daily-entry-description {
  1231. padding: 5px 5px 0;
  1232. text-align: justify;
  1233. font-size: .9em;
  1234. word-wrap: break-word;
  1235. }
  1236. .daily-entry-tags {
  1237. padding: 0 5px 5px;
  1238. font-size: .8em;
  1239. }
  1240. }
  1241. .daily-entry-thumbnail {
  1242. float: left;
  1243. margin: 15px 5px 5px 15px;
  1244. }
  1245. .daily-entry-description {
  1246. a {
  1247. text-decoration: none;
  1248. color: $main-green;
  1249. &:hover {
  1250. text-shadow: 1px 1px $background-linklist-info;
  1251. }
  1252. &:visited {
  1253. color: $dark-green;
  1254. }
  1255. }
  1256. }
  1257. // Fix empty bookmarklet name in Firefox
  1258. .pure-button {
  1259. -moz-user-select: auto;
  1260. }
  1261. .tag-sort {
  1262. margin-top: 30px;
  1263. text-align: center;
  1264. a {
  1265. display: inline-block;
  1266. margin: 0 15px;
  1267. text-decoration: none;
  1268. color: $white;
  1269. font-weight: bold;
  1270. }
  1271. }
  1272. // Markdown
  1273. .markdown {
  1274. p {
  1275. margin: 0 !important;
  1276. }
  1277. p + p {
  1278. margin: .5em 0 0 !important;
  1279. }
  1280. * {
  1281. &:first-child {
  1282. margin-top: 0 !important;
  1283. }
  1284. &:last-child {
  1285. margin-bottom: 5px !important;
  1286. }
  1287. }
  1288. }
  1289. // Pure Button
  1290. .pure-button-success,
  1291. .pure-button-error,
  1292. .pure-button-warning,
  1293. .pure-button-primary,
  1294. .pure-button-shaarli,
  1295. .pure-button-secondary {
  1296. border-radius: 4px;
  1297. text-shadow: 0 1px 1px $dark-shadow;
  1298. color: $white !important;
  1299. }
  1300. .pure-button-shaarli {
  1301. background-color: $main-green;
  1302. }
  1303. .progressbar {
  1304. border-radius: 6px;
  1305. background-color: $main-green;
  1306. padding: 1px;
  1307. > div {
  1308. border-radius: 10px;
  1309. background: repeating-linear-gradient(
  1310. -45deg,
  1311. $almost-white,
  1312. $almost-white 6px,
  1313. $background-color 6px,
  1314. $background-color 12px
  1315. );
  1316. width: 0%;
  1317. height: 10px;
  1318. }
  1319. }
  1320. .thumbnails-page-container {
  1321. .progress-counter {
  1322. padding: 10px 0 20px;
  1323. }
  1324. .thumbnail-placeholder {
  1325. margin: 10px auto;
  1326. background-color: $light-grey;
  1327. }
  1328. .thumbnail-link-title {
  1329. padding-bottom: 20px;
  1330. overflow: hidden;
  1331. text-overflow: ellipsis;
  1332. white-space: nowrap;
  1333. }
  1334. }