shaarli.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593
  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. width: 20%;
  325. height: 20px;
  326. color: $dark-grey;
  327. }
  328. .subheader-form {
  329. display: block;
  330. position: fixed;
  331. visibility: hidden;
  332. z-index: 999;
  333. background: $main-green;
  334. padding: 5px 0;
  335. width: 100%;
  336. height: 30px;
  337. text-align: center;
  338. input {
  339. &[type='text'],
  340. &[type='password'] {
  341. @extend %subheader-form-input;
  342. &::-webkit-input-placeholder {
  343. color: $dark-grey;
  344. }
  345. }
  346. }
  347. &[type='submit'] {
  348. display: inline-block;
  349. margin: 0 0 5px;
  350. border: 1px solid $almost-white;
  351. border-radius: 2px;
  352. background: $main-green;
  353. padding: 4px 0;
  354. width: 100px;
  355. height: 28px;
  356. color: $almost-white;
  357. &:hover {
  358. background: $almost-white;
  359. color: $main-green;
  360. }
  361. }
  362. .remember-me {
  363. @extend %subheader-form-input;
  364. display: inline-block;
  365. cursor: pointer;
  366. padding: 5px 20px 3px;
  367. width: auto;
  368. label,
  369. input {
  370. cursor: pointer;
  371. }
  372. }
  373. a {
  374. &.button {
  375. border: 2px solid $almost-white;
  376. border-radius: 5px;
  377. padding: 3px 10px;
  378. text-decoration: none;
  379. color: $almost-white;
  380. font-weight: bold;
  381. }
  382. }
  383. }
  384. .header-login-form {
  385. input {
  386. &[type='text'],
  387. &[type='password'] {
  388. width: 200px;
  389. // because chrome
  390. &::-webkit-input-placeholder {
  391. color: $light-grey;
  392. }
  393. }
  394. }
  395. }
  396. @media screen and (min-width: 64em) {
  397. .subheader-form {
  398. &.open {
  399. visibility: visible;
  400. * {
  401. visibility: visible;
  402. }
  403. }
  404. }
  405. }
  406. .new-version-message {
  407. text-align: center;
  408. a {
  409. color: $warning-text;
  410. font-weight: bold;
  411. }
  412. }
  413. // CONTENT - GENERAL
  414. .container {
  415. position: relative;
  416. z-index: 2;
  417. margin-top: 45px;
  418. }
  419. // Plugins additional forms
  420. .toolbar-plugin {
  421. margin: 5px 0;
  422. text-align: center;
  423. input {
  424. &[type='text'] {
  425. border: medium none currentColor;
  426. border-radius: 2px;
  427. box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset;
  428. background: $almost-white;
  429. padding: 0 5px;
  430. width: 300px;
  431. height: 30px;
  432. color: $dark-grey;
  433. &::-webkit-input-placeholder {
  434. color: $light-grey;
  435. }
  436. }
  437. &[type='submit'] {
  438. border: medium none currentColor;
  439. border-radius: 2px;
  440. background: $almost-white;
  441. padding: 0 10px;
  442. height: 30px;
  443. color: $dark-grey;
  444. &:hover {
  445. background: $white;
  446. }
  447. }
  448. }
  449. }
  450. @media screen and (max-width: 64em) {
  451. .toolbar-plugin {
  452. input {
  453. &[type='text'] {
  454. width: 70%;
  455. }
  456. }
  457. }
  458. }
  459. // CONTENT - LINKLIST PAGING
  460. // 64em -> lg
  461. .linklist-filters {
  462. margin: 5px 0;
  463. color: $dark-grey;
  464. font-size: .9em;
  465. a {
  466. padding: 5px 8px;
  467. text-decoration: none;
  468. }
  469. .filter-off {
  470. background: $almost-white;
  471. color: $dark-grey;
  472. }
  473. .filter-on {
  474. background: $main-green;
  475. color: $light-green;
  476. }
  477. .filter-block {
  478. background: $red;
  479. color: $almost-white;
  480. }
  481. }
  482. .linklist-pages {
  483. margin: 5px 0;
  484. text-align: center;
  485. color: $dark-grey;
  486. a {
  487. text-decoration: none;
  488. color: $dark-grey;
  489. &:hover {
  490. color: $white;
  491. }
  492. }
  493. }
  494. %linksperpage-button {
  495. display: inline-block;
  496. width: 20px;
  497. text-align: center;
  498. }
  499. .linksperpage {
  500. margin: 5px 0;
  501. text-align: right;
  502. color: $dark-grey;
  503. font-size: .9em;
  504. form {
  505. display: inline;
  506. }
  507. a {
  508. @extend %linksperpage-button;
  509. background: $almost-white;
  510. padding: 5px;
  511. text-decoration: none;
  512. color: $dark-grey;
  513. }
  514. input {
  515. &[type='text'] {
  516. @extend %linksperpage-button;
  517. margin: 0;
  518. border: medium none currentColor;
  519. background: $almost-white;
  520. padding: 4px 5px 3px 8px;
  521. height: 20px;
  522. color: $dark-grey;
  523. font-size: .8em;
  524. }
  525. }
  526. }
  527. // CONTENT - LINKLIST ITEMS
  528. %private-border {
  529. display: block;
  530. position: absolute;
  531. top: 0;
  532. left: 3px;
  533. z-index: 1;
  534. background: $orange;
  535. width: 2px;
  536. height: 96%;
  537. content: '';
  538. }
  539. .linklist-item {
  540. margin: 0 0 10px;
  541. box-shadow: 1px 1px 3px $light-grey;
  542. background: $almost-white;
  543. &.private {
  544. .linklist-item-title {
  545. &::before {
  546. @extend %private-border;
  547. margin-top: 3px;
  548. }
  549. }
  550. .linklist-item-description {
  551. &::before {
  552. @extend %private-border;
  553. height: 100%;
  554. }
  555. }
  556. }
  557. }
  558. .linklist-item-buttons {
  559. position: relative;
  560. z-index: 99;
  561. background: transparent;
  562. width: 23px;
  563. }
  564. .linklist-item-buttons-right {
  565. float: right;
  566. margin-right: -25px;
  567. }
  568. .linklist-item-buttons * {
  569. display: block;
  570. float: left;
  571. margin: auto;
  572. width: 100%;
  573. text-align: center;
  574. }
  575. .linklist-item-title {
  576. position: relative;
  577. margin: 0;
  578. background: $almost-white;
  579. word-wrap: break-word;
  580. h2 {
  581. margin: 0;
  582. padding: 3px 10px 0;
  583. line-height: 30px;
  584. word-wrap: break-word;
  585. a {
  586. vertical-align: middle;
  587. text-decoration: none;
  588. color: $dark-grey;
  589. font-size: .7em;
  590. &:visited {
  591. .linklist-link {
  592. color: $dark-green;
  593. }
  594. }
  595. &:hover {
  596. color: $dark-grey;
  597. }
  598. }
  599. }
  600. .linklist-link {
  601. color: $main-green;
  602. font-size: 1.1em;
  603. &:hover {
  604. color: $dark-grey;
  605. }
  606. }
  607. .label-private {
  608. border: solid 1px $orange;
  609. color: $orange;
  610. font-family: Arial, sans-serif;
  611. font-size: .65em;
  612. }
  613. }
  614. .fold-button {
  615. display: none;
  616. color: $dark-grey;
  617. }
  618. .linklist-item-editbuttons {
  619. float: right;
  620. padding: 8px 5px;
  621. * {
  622. display: block;
  623. float: left;
  624. margin: 0 1px;
  625. }
  626. a {
  627. font-size: 1em;
  628. }
  629. .delete-checkbox {
  630. display: none;
  631. }
  632. }
  633. .edit-link {
  634. color: $blue;
  635. font-size: 1.2em;
  636. }
  637. .delete-link {
  638. color: $red !important;
  639. font-size: 1.3em;
  640. }
  641. .linklist-item-description {
  642. position: relative;
  643. padding: 0 10px;
  644. line-height: 1.3em;
  645. color: $dark-grey;
  646. word-wrap: break-word;
  647. a {
  648. text-decoration: none;
  649. color: $main-green;
  650. &:hover {
  651. color: $dark-grey;
  652. }
  653. &:visited {
  654. color: $dark-green;
  655. }
  656. }
  657. }
  658. .linklist-item-thumbnail {
  659. position: relative;
  660. float: right;
  661. z-index: 50;
  662. margin: 0;
  663. padding: 0 0 0 5px;
  664. height: 90px;
  665. }
  666. .linklist-item-infos {
  667. background: $background-linklist-info;
  668. padding: 4px 8px;
  669. color: $dark-grey;
  670. a {
  671. text-decoration: none;
  672. color: $dark-grey;
  673. &:hover {
  674. color: $black;
  675. }
  676. }
  677. .linklist-item-tags {
  678. font-size: .8em;
  679. }
  680. .label-tag {
  681. font-size: 1em;
  682. }
  683. .mobile-buttons {
  684. text-align: right;
  685. }
  686. .linklist-plugin-icon {
  687. display: inline-block;
  688. margin: 0 2px;
  689. width: 16px;
  690. height: 16px;
  691. }
  692. }
  693. .linklist-item-infos-dateblock {
  694. font-size: .9em;
  695. }
  696. .linklist-plugin-icon {
  697. width: 13px;
  698. height: 13px;
  699. }
  700. .linklist-item-infos-url {
  701. height: 23px;
  702. overflow: hidden;
  703. text-align: right;
  704. text-overflow: ellipsis;
  705. line-height: 23px;
  706. white-space: nowrap;
  707. font-size: .8em;
  708. }
  709. .linklist-item-infos-controls-group {
  710. display: inline-block;
  711. border-right: 1px solid $light-grey;
  712. padding-right: 6px;
  713. }
  714. .ctrl-edit {
  715. margin: 0 7px;
  716. }
  717. // 64em -> lg
  718. @media screen and (max-width: 64em) {
  719. .linklist-item-infos-url {
  720. text-align: left;
  721. }
  722. }
  723. // Footer
  724. .footer-container {
  725. margin: 20px 0;
  726. padding: 5px;
  727. text-align: center;
  728. color: $dark-grey;
  729. &::before {
  730. display: block;
  731. margin: 10px auto;
  732. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  733. width: 80%;
  734. height: 1px;
  735. content: '';
  736. }
  737. a {
  738. color: $dark-grey;
  739. }
  740. }
  741. // PAGE FORM
  742. %page-form-input {
  743. margin: 10px 0;
  744. border: solid 1px $form-input-border;
  745. border-radius: 2px;
  746. background: $form-input-background;
  747. padding: 5px 5px 3px 15px;
  748. width: 90%;
  749. height: 35px;
  750. color: $dark-grey;
  751. box-sizing: border-box;
  752. }
  753. %page-form-button {
  754. display: inline-block;
  755. margin: 15px 5px;
  756. border: 0;
  757. 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;
  758. background: $main-green;
  759. min-width: 150px;
  760. height: 35px;
  761. vertical-align: center;
  762. text-decoration: none;
  763. line-height: 35px;
  764. color: $almost-white;
  765. font-size: 1.2em;
  766. font-weight: normal;
  767. }
  768. .page-form {
  769. margin: 20px 0 0;
  770. box-shadow: 1px 1px 2px $light-grey;
  771. background: $almost-white;
  772. overflow: hidden;
  773. color: $dark-grey;
  774. .window-title {
  775. margin: 0 0 10px;
  776. background: $almost-white;
  777. padding: 10px 0;
  778. width: 100%;
  779. text-align: center;
  780. color: $main-green;
  781. }
  782. .window-subtitle {
  783. text-align: center;
  784. }
  785. a {
  786. text-decoration: none;
  787. color: $main-green;
  788. font-weight: bold;
  789. &.button {
  790. @extend %page-form-button;
  791. }
  792. }
  793. p {
  794. margin: 0;
  795. padding: 5px 10px;
  796. }
  797. input {
  798. &[type='text'] {
  799. @extend %page-form-input;
  800. &::-webkit-input-placeholder {
  801. color: $light-grey;
  802. }
  803. }
  804. &[type='password'] {
  805. @extend %page-form-input;
  806. &::-webkit-input-placeholder {
  807. color: $light-grey;
  808. }
  809. }
  810. &[type='submit'] {
  811. @extend %page-form-button;
  812. }
  813. }
  814. textarea {
  815. @extend %page-form-input;
  816. padding: 15px 5px 3px 15px;
  817. min-height: 240px;
  818. resize: vertical;
  819. overflow-y: auto;
  820. word-wrap: break-word;
  821. }
  822. select {
  823. color: $dark-grey;
  824. }
  825. .button {
  826. &.button-red {
  827. background: $red;
  828. }
  829. }
  830. .submit-buttons {
  831. margin-bottom: 10px;
  832. }
  833. section {
  834. margin: 10px 0 25px;
  835. }
  836. table,
  837. th,
  838. td {
  839. border-width: 1px 0;
  840. border-style: solid;
  841. border-color: $light-grey;
  842. }
  843. th,
  844. td {
  845. padding: 5px;
  846. }
  847. table {
  848. margin: auto;
  849. width: 90%;
  850. .order {
  851. text-decoration: none;
  852. color: $dark-grey;
  853. }
  854. }
  855. .awesomplete {
  856. width: 90%;
  857. input {
  858. width: 100%;
  859. }
  860. }
  861. div {
  862. .awesomplete {
  863. > ul {
  864. color: $black;
  865. }
  866. }
  867. }
  868. }
  869. @media screen and (min-width: 64em) {
  870. .page-form {
  871. .submit-buttons {
  872. position: relative;
  873. .button {
  874. &.button-red {
  875. position: absolute;
  876. right: 5%;
  877. }
  878. }
  879. }
  880. }
  881. }
  882. @media screen and (max-width: 64em) {
  883. .page-form {
  884. .submit-buttons {
  885. .button {
  886. display: block;
  887. margin: auto;
  888. }
  889. }
  890. }
  891. }
  892. // PAGE FORM - LIGHT
  893. .page-form-light {
  894. div,
  895. p {
  896. text-align: center;
  897. }
  898. }
  899. // PAGE FORM - COMPLETE
  900. %page-form-valign {
  901. position: absolute;
  902. top: 50%;
  903. transform: translateY(-50%);
  904. }
  905. .page-form-complete {
  906. div,
  907. p {
  908. color: $dark-grey;
  909. }
  910. .form-label,
  911. .form-input {
  912. position: relative;
  913. height: 60px;
  914. }
  915. .form-label {
  916. label {
  917. @extend %page-form-valign;
  918. right: 0;
  919. padding: 0 20px;
  920. text-align: right;
  921. }
  922. }
  923. .label-name {
  924. font-weight: bold;
  925. }
  926. .label-desc {
  927. font-size: .8em;
  928. }
  929. .form-input {
  930. input {
  931. @extend %page-form-valign;
  932. &[type='text'],
  933. &[type='password'] {
  934. margin: 0;
  935. }
  936. }
  937. select {
  938. &.align {
  939. @extend %page-form-valign;
  940. }
  941. }
  942. }
  943. textarea {
  944. margin: 0;
  945. }
  946. .timezone {
  947. @extend %page-form-valign;
  948. }
  949. }
  950. // Awesomeplete fix
  951. div {
  952. &.awesomplete {
  953. width: inherit;
  954. > input {
  955. display: inherit;
  956. }
  957. > ul {
  958. z-index: 9999;
  959. }
  960. }
  961. }
  962. form {
  963. &[name='linkform'] {
  964. &.page-form {
  965. overflow: visible;
  966. }
  967. }
  968. }
  969. @media screen and (max-width: 64em) {
  970. %page-form-valign-mobile {
  971. position: inherit;
  972. top: inherit;
  973. transform: translateY(0);
  974. }
  975. .page-form-complete {
  976. .form-label {
  977. height: inherit;
  978. label {
  979. @extend %page-form-valign-mobile;
  980. display: block;
  981. margin: 10px 0 0;
  982. text-align: left;
  983. }
  984. }
  985. .form-input {
  986. text-align: center;
  987. input {
  988. @extend %page-form-valign-mobile;
  989. &[type='checkbox'] {
  990. position: absolute;
  991. top: 50%;
  992. right: 50%;
  993. transform: translateY(-50%);
  994. }
  995. }
  996. }
  997. .timezone {
  998. @extend %page-form-valign-mobile;
  999. }
  1000. .radio-buttons {
  1001. padding: 5px 15px;
  1002. text-align: left;
  1003. }
  1004. }
  1005. .timezone-continent {
  1006. &::after {
  1007. white-space: pre;
  1008. content: '\a\a';
  1009. }
  1010. }
  1011. }
  1012. // Page visitor (page form extended)
  1013. .page-visitor {
  1014. color: $dark-grey;
  1015. }
  1016. .page404-container {
  1017. color: $dark-grey;
  1018. }
  1019. // EDIT LINK
  1020. .edit-link-container {
  1021. .created-date {
  1022. margin-bottom: 10px;
  1023. color: $light-grey;
  1024. }
  1025. }
  1026. // LOGIN
  1027. .login-form-container {
  1028. .remember-me {
  1029. margin: 5px 0;
  1030. }
  1031. }
  1032. // Search results
  1033. .search-result {
  1034. a {
  1035. text-decoration: none;
  1036. color: $white;
  1037. }
  1038. .label-tag {
  1039. border-color: $white;
  1040. .remove {
  1041. margin: 0 0 0 5px;
  1042. border-left: $white 1px solid;
  1043. padding: 0 0 0 5px;
  1044. }
  1045. }
  1046. .label-private {
  1047. border: 1px solid $white;
  1048. }
  1049. }
  1050. // TOOLS
  1051. .tools-item {
  1052. margin: 10px 0;
  1053. .pure-button {
  1054. &:hover {
  1055. background-color: $main-green;
  1056. background-image: none;
  1057. color: $almost-white;
  1058. }
  1059. }
  1060. }
  1061. // PLUGIN ADMIN
  1062. .pluginform-container {
  1063. .mobile-row {
  1064. font-size: .9em;
  1065. }
  1066. .more {
  1067. margin-top: 10px;
  1068. }
  1069. }
  1070. @media screen and (max-width: 64em) {
  1071. .pluginform-container {
  1072. .main-row {
  1073. border-top-style: none;
  1074. border-bottom-style: none;
  1075. td {
  1076. border-top-style: none;
  1077. border-bottom-style: none;
  1078. }
  1079. }
  1080. }
  1081. }
  1082. // IMPORT
  1083. .import-field-container {
  1084. margin: 15px 0;
  1085. }
  1086. // TAG CLOUD
  1087. .cloudtag-container {
  1088. padding: 10px;
  1089. text-align: center;
  1090. text-decoration: none;
  1091. color: $dark-grey;
  1092. a {
  1093. text-decoration: none;
  1094. color: $dark-grey;
  1095. }
  1096. .count {
  1097. color: $light-grey;
  1098. }
  1099. }
  1100. // TAG LIST
  1101. .taglist-container {
  1102. padding: 0 10px;
  1103. a {
  1104. text-decoration: none;
  1105. color: $dark-grey;
  1106. }
  1107. .count {
  1108. display: inline-block;
  1109. width: 35px;
  1110. text-align: right;
  1111. color: $light-grey;
  1112. }
  1113. .rename-tag-form {
  1114. display: none;
  1115. }
  1116. .delete-tag {
  1117. display: none;
  1118. color: $red;
  1119. }
  1120. .rename-tag {
  1121. color: $blue;
  1122. }
  1123. .validate-rename-tag {
  1124. color: $main-green;
  1125. }
  1126. }
  1127. // Picture wall CSS
  1128. .picwall-container {
  1129. clear: both;
  1130. margin: 0 10px 10px;
  1131. background-color: $almost-white;
  1132. color: $dark-grey;
  1133. }
  1134. .picwall-pictureframe {
  1135. display: table-cell;
  1136. position: relative;
  1137. float: left;
  1138. z-index: 5;
  1139. margin: 2px;
  1140. background-color: $almost-white;
  1141. width: 90px;
  1142. height: 90px;
  1143. overflow: hidden;
  1144. vertical-align: middle;
  1145. text-align: center;
  1146. // Adapt the width of the image
  1147. img {
  1148. max-width: 100%;
  1149. height: auto;
  1150. color: transparent;
  1151. }
  1152. a {
  1153. text-decoration: none;
  1154. }
  1155. span {
  1156. &.info {
  1157. display: none;
  1158. font-family: Arial, sans-serif;
  1159. }
  1160. }
  1161. // CSS to show title when hovering an image - no javascript required.
  1162. &:hover {
  1163. span {
  1164. &.info {
  1165. display: block;
  1166. position: absolute;
  1167. top: 0;
  1168. left: 0;
  1169. background-color: $dark-shadow;
  1170. width: 90px;
  1171. height: 90px;
  1172. text-align: left;
  1173. color: $almost-white;
  1174. font-size: 9pt;
  1175. font-weight: bold;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. .b-lazy {
  1181. transition: opacity 500ms ease-in-out;
  1182. opacity: 0;
  1183. -webkit-transition: opacity 500ms ease-in-out;
  1184. -moz-transition: opacity 500ms ease-in-out;
  1185. -o-transition: opacity 500ms ease-in-out;
  1186. &.b-loaded {
  1187. opacity: 1;
  1188. }
  1189. }
  1190. // DAILY
  1191. .daily-desc {
  1192. color: $light-grey;
  1193. font-size: .8em;
  1194. a {
  1195. text-decoration: none;
  1196. color: $dark-grey;
  1197. &:hover {
  1198. color: $light-grey;
  1199. }
  1200. }
  1201. }
  1202. .daily-about {
  1203. h3 {
  1204. &::before,
  1205. &::after {
  1206. display: block;
  1207. margin: 10px auto;
  1208. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  1209. width: 90%;
  1210. height: 1px;
  1211. content: '';
  1212. }
  1213. }
  1214. }
  1215. .daily-entry {
  1216. padding: 0 10px;
  1217. .daily-entry-title {
  1218. margin: 10px 0 0;
  1219. a {
  1220. text-decoration: none;
  1221. color: $black;
  1222. }
  1223. &::after {
  1224. display: block;
  1225. margin: 5px auto;
  1226. background: linear-gradient(to right, $white, $light-grey, $white);
  1227. width: 70%;
  1228. height: 1px;
  1229. content: '';
  1230. }
  1231. }
  1232. .daily-entry-description {
  1233. padding: 5px 5px 0;
  1234. text-align: justify;
  1235. font-size: .9em;
  1236. word-wrap: break-word;
  1237. }
  1238. .daily-entry-tags {
  1239. padding: 0 5px 5px;
  1240. font-size: .8em;
  1241. }
  1242. }
  1243. .daily-entry-thumbnail {
  1244. float: left;
  1245. margin: 15px 5px 5px 15px;
  1246. }
  1247. .daily-entry-description {
  1248. a {
  1249. text-decoration: none;
  1250. color: $main-green;
  1251. &:hover {
  1252. text-shadow: 1px 1px $background-linklist-info;
  1253. }
  1254. &:visited {
  1255. color: $dark-green;
  1256. }
  1257. }
  1258. }
  1259. // Fix empty bookmarklet name in Firefox
  1260. .pure-button {
  1261. -moz-user-select: auto;
  1262. }
  1263. .tag-sort {
  1264. margin-top: 30px;
  1265. text-align: center;
  1266. a {
  1267. display: inline-block;
  1268. margin: 0 15px;
  1269. text-decoration: none;
  1270. color: $white;
  1271. font-weight: bold;
  1272. }
  1273. }
  1274. // Markdown
  1275. .markdown {
  1276. p {
  1277. margin: 0 !important;
  1278. }
  1279. p + p {
  1280. margin: .5em 0 0 !important;
  1281. }
  1282. * {
  1283. &:first-child {
  1284. margin-top: 0 !important;
  1285. }
  1286. &:last-child {
  1287. margin-bottom: 5px !important;
  1288. }
  1289. }
  1290. }
  1291. // Pure Button
  1292. .pure-button-success,
  1293. .pure-button-error,
  1294. .pure-button-warning,
  1295. .pure-button-primary,
  1296. .pure-button-shaarli,
  1297. .pure-button-secondary {
  1298. border-radius: 4px;
  1299. text-shadow: 0 1px 1px $dark-shadow;
  1300. color: $white !important;
  1301. }
  1302. .pure-button-shaarli {
  1303. background-color: $main-green;
  1304. }
  1305. .progressbar {
  1306. border-radius: 6px;
  1307. background-color: $main-green;
  1308. padding: 1px;
  1309. > div {
  1310. border-radius: 10px;
  1311. background: repeating-linear-gradient(
  1312. -45deg,
  1313. $almost-white,
  1314. $almost-white 6px,
  1315. $background-color 6px,
  1316. $background-color 12px
  1317. );
  1318. width: 0%;
  1319. height: 10px;
  1320. }
  1321. }
  1322. .thumbnails-page-container {
  1323. .progress-counter {
  1324. padding: 10px 0 20px;
  1325. }
  1326. .thumbnail-placeholder {
  1327. margin: 10px auto;
  1328. background-color: $light-grey;
  1329. }
  1330. .thumbnail-link-title {
  1331. padding-bottom: 20px;
  1332. overflow: hidden;
  1333. text-overflow: ellipsis;
  1334. white-space: nowrap;
  1335. }
  1336. }