shaarli.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602
  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. .pin-link {
  640. font-size: 1.3em;
  641. }
  642. .pinned-link {
  643. color: $blue !important;
  644. }
  645. .linklist-item-description {
  646. position: relative;
  647. padding: 0 10px;
  648. line-height: 1.3em;
  649. color: $dark-grey;
  650. word-wrap: break-word;
  651. a {
  652. text-decoration: none;
  653. color: $main-green;
  654. &:hover {
  655. color: $dark-grey;
  656. }
  657. &:visited {
  658. color: $dark-green;
  659. }
  660. }
  661. }
  662. .linklist-item-thumbnail {
  663. position: relative;
  664. float: right;
  665. z-index: 50;
  666. margin: 0;
  667. padding: 0 0 0 5px;
  668. height: 90px;
  669. }
  670. .linklist-item-infos {
  671. background: $background-linklist-info;
  672. padding: 4px 8px;
  673. color: $dark-grey;
  674. a {
  675. text-decoration: none;
  676. color: $dark-grey;
  677. &:hover {
  678. color: $black;
  679. }
  680. }
  681. .linklist-item-tags {
  682. font-size: .8em;
  683. }
  684. .label-tag {
  685. font-size: 1em;
  686. }
  687. .mobile-buttons {
  688. text-align: right;
  689. }
  690. .linklist-plugin-icon {
  691. display: inline-block;
  692. margin: 0 2px;
  693. width: 16px;
  694. height: 16px;
  695. }
  696. }
  697. .linklist-item-infos-dateblock {
  698. font-size: .9em;
  699. }
  700. .linklist-plugin-icon {
  701. width: 13px;
  702. height: 13px;
  703. }
  704. .linklist-item-infos-url {
  705. height: 23px;
  706. overflow: hidden;
  707. text-align: right;
  708. text-overflow: ellipsis;
  709. line-height: 23px;
  710. white-space: nowrap;
  711. font-size: .8em;
  712. }
  713. .linklist-item-infos-controls-group {
  714. display: inline-block;
  715. border-right: 1px solid $light-grey;
  716. padding-right: 6px;
  717. }
  718. .ctrl-edit {
  719. margin: 0 7px;
  720. }
  721. .ctrl-delete {
  722. margin: 0 7px 0 0;
  723. }
  724. // 64em -> lg
  725. @media screen and (max-width: 64em) {
  726. .linklist-item-infos-url {
  727. text-align: left;
  728. }
  729. }
  730. // Footer
  731. .footer-container {
  732. margin: 20px 0;
  733. padding: 5px;
  734. text-align: center;
  735. color: $dark-grey;
  736. &::before {
  737. display: block;
  738. margin: 10px auto;
  739. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  740. width: 80%;
  741. height: 1px;
  742. content: '';
  743. }
  744. a {
  745. color: $dark-grey;
  746. }
  747. }
  748. // PAGE FORM
  749. %page-form-input {
  750. margin: 10px 0;
  751. border: solid 1px $form-input-border;
  752. border-radius: 2px;
  753. background: $form-input-background;
  754. padding: 5px 5px 3px 15px;
  755. width: 90%;
  756. height: 35px;
  757. color: $dark-grey;
  758. box-sizing: border-box;
  759. }
  760. %page-form-button {
  761. display: inline-block;
  762. margin: 15px 5px;
  763. border: 0;
  764. 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;
  765. background: $main-green;
  766. min-width: 150px;
  767. height: 35px;
  768. vertical-align: center;
  769. text-decoration: none;
  770. line-height: 35px;
  771. color: $almost-white;
  772. font-size: 1.2em;
  773. font-weight: normal;
  774. }
  775. .page-form {
  776. margin: 20px 0 0;
  777. box-shadow: 1px 1px 2px $light-grey;
  778. background: $almost-white;
  779. overflow: hidden;
  780. color: $dark-grey;
  781. .window-title {
  782. margin: 0 0 10px;
  783. background: $almost-white;
  784. padding: 10px 0;
  785. width: 100%;
  786. text-align: center;
  787. color: $main-green;
  788. }
  789. .window-subtitle {
  790. text-align: center;
  791. }
  792. a {
  793. text-decoration: none;
  794. color: $main-green;
  795. font-weight: bold;
  796. &.button {
  797. @extend %page-form-button;
  798. }
  799. }
  800. p {
  801. margin: 0;
  802. padding: 5px 10px;
  803. }
  804. input {
  805. &[type='text'] {
  806. @extend %page-form-input;
  807. &::-webkit-input-placeholder {
  808. color: $light-grey;
  809. }
  810. }
  811. &[type='password'] {
  812. @extend %page-form-input;
  813. &::-webkit-input-placeholder {
  814. color: $light-grey;
  815. }
  816. }
  817. &[type='submit'] {
  818. @extend %page-form-button;
  819. }
  820. }
  821. textarea {
  822. @extend %page-form-input;
  823. padding: 15px 5px 3px 15px;
  824. min-height: 240px;
  825. resize: vertical;
  826. overflow-y: auto;
  827. word-wrap: break-word;
  828. }
  829. select {
  830. color: $dark-grey;
  831. }
  832. .button {
  833. &.button-red {
  834. background: $red;
  835. }
  836. }
  837. .submit-buttons {
  838. margin-bottom: 10px;
  839. }
  840. section {
  841. margin: 10px 0 25px;
  842. }
  843. table,
  844. th,
  845. td {
  846. border-width: 1px 0;
  847. border-style: solid;
  848. border-color: $light-grey;
  849. }
  850. th,
  851. td {
  852. padding: 5px;
  853. }
  854. table {
  855. margin: auto;
  856. width: 90%;
  857. .order {
  858. text-decoration: none;
  859. color: $dark-grey;
  860. }
  861. }
  862. .awesomplete {
  863. width: 90%;
  864. input {
  865. width: 100%;
  866. }
  867. }
  868. div {
  869. .awesomplete {
  870. > ul {
  871. color: $black;
  872. }
  873. }
  874. }
  875. }
  876. @media screen and (min-width: 64em) {
  877. .page-form {
  878. .submit-buttons {
  879. position: relative;
  880. .button {
  881. &.button-red {
  882. position: absolute;
  883. right: 5%;
  884. }
  885. }
  886. }
  887. }
  888. }
  889. @media screen and (max-width: 64em) {
  890. .page-form {
  891. .submit-buttons {
  892. .button {
  893. display: block;
  894. margin: auto;
  895. }
  896. }
  897. }
  898. }
  899. // PAGE FORM - LIGHT
  900. .page-form-light {
  901. div,
  902. p {
  903. text-align: center;
  904. }
  905. }
  906. // PAGE FORM - COMPLETE
  907. %page-form-valign {
  908. position: absolute;
  909. top: 50%;
  910. transform: translateY(-50%);
  911. }
  912. .page-form-complete {
  913. div,
  914. p {
  915. color: $dark-grey;
  916. }
  917. .form-label,
  918. .form-input {
  919. position: relative;
  920. height: 60px;
  921. }
  922. .form-label {
  923. label {
  924. @extend %page-form-valign;
  925. right: 0;
  926. padding: 0 20px;
  927. text-align: right;
  928. }
  929. }
  930. .label-name {
  931. font-weight: bold;
  932. }
  933. .label-desc {
  934. font-size: .8em;
  935. }
  936. .form-input {
  937. input {
  938. @extend %page-form-valign;
  939. &[type='text'],
  940. &[type='password'] {
  941. margin: 0;
  942. }
  943. }
  944. select {
  945. &.align {
  946. @extend %page-form-valign;
  947. }
  948. }
  949. }
  950. textarea {
  951. margin: 0;
  952. }
  953. .timezone {
  954. @extend %page-form-valign;
  955. }
  956. }
  957. // Awesomeplete fix
  958. div {
  959. &.awesomplete {
  960. width: inherit;
  961. > input {
  962. display: inherit;
  963. }
  964. > ul {
  965. z-index: 9999;
  966. }
  967. }
  968. }
  969. form {
  970. &[name='linkform'] {
  971. &.page-form {
  972. overflow: visible;
  973. }
  974. }
  975. }
  976. @media screen and (max-width: 64em) {
  977. %page-form-valign-mobile {
  978. position: inherit;
  979. top: inherit;
  980. transform: translateY(0);
  981. }
  982. .page-form-complete {
  983. .form-label {
  984. height: inherit;
  985. label {
  986. @extend %page-form-valign-mobile;
  987. display: block;
  988. margin: 10px 0 0;
  989. text-align: left;
  990. }
  991. }
  992. .form-input {
  993. text-align: center;
  994. input {
  995. @extend %page-form-valign-mobile;
  996. &[type='checkbox'] {
  997. position: absolute;
  998. top: 50%;
  999. right: 50%;
  1000. transform: translateY(-50%);
  1001. }
  1002. }
  1003. }
  1004. .timezone {
  1005. @extend %page-form-valign-mobile;
  1006. }
  1007. .radio-buttons {
  1008. padding: 5px 15px;
  1009. text-align: left;
  1010. }
  1011. }
  1012. .timezone-continent {
  1013. &::after {
  1014. white-space: pre;
  1015. content: '\a\a';
  1016. }
  1017. }
  1018. }
  1019. // Page visitor (page form extended)
  1020. .page-visitor {
  1021. color: $dark-grey;
  1022. }
  1023. .page404-container {
  1024. color: $dark-grey;
  1025. }
  1026. // EDIT LINK
  1027. .edit-link-container {
  1028. .created-date {
  1029. margin-bottom: 10px;
  1030. color: $light-grey;
  1031. }
  1032. }
  1033. // LOGIN
  1034. .login-form-container {
  1035. .remember-me {
  1036. margin: 5px 0;
  1037. }
  1038. }
  1039. // Search results
  1040. .search-result {
  1041. a {
  1042. text-decoration: none;
  1043. color: $white;
  1044. }
  1045. .label-tag {
  1046. border-color: $white;
  1047. .remove {
  1048. margin: 0 0 0 5px;
  1049. border-left: $white 1px solid;
  1050. padding: 0 0 0 5px;
  1051. }
  1052. }
  1053. .label-private {
  1054. border: 1px solid $white;
  1055. }
  1056. }
  1057. // TOOLS
  1058. .tools-item {
  1059. margin: 10px 0;
  1060. .pure-button {
  1061. &:hover {
  1062. background-color: $main-green;
  1063. background-image: none;
  1064. color: $almost-white;
  1065. }
  1066. }
  1067. }
  1068. // PLUGIN ADMIN
  1069. .pluginform-container {
  1070. .mobile-row {
  1071. font-size: .9em;
  1072. }
  1073. .more {
  1074. margin-top: 10px;
  1075. }
  1076. }
  1077. @media screen and (max-width: 64em) {
  1078. .pluginform-container {
  1079. .main-row {
  1080. border-top-style: none;
  1081. border-bottom-style: none;
  1082. td {
  1083. border-top-style: none;
  1084. border-bottom-style: none;
  1085. }
  1086. }
  1087. }
  1088. }
  1089. // IMPORT
  1090. .import-field-container {
  1091. margin: 15px 0;
  1092. }
  1093. // TAG CLOUD
  1094. .cloudtag-container {
  1095. padding: 10px;
  1096. text-align: center;
  1097. text-decoration: none;
  1098. color: $dark-grey;
  1099. a {
  1100. text-decoration: none;
  1101. color: $dark-grey;
  1102. }
  1103. .count {
  1104. color: $light-grey;
  1105. }
  1106. }
  1107. // TAG LIST
  1108. .taglist-container {
  1109. padding: 0 10px;
  1110. a {
  1111. text-decoration: none;
  1112. color: $dark-grey;
  1113. }
  1114. .count {
  1115. display: inline-block;
  1116. width: 35px;
  1117. text-align: right;
  1118. color: $light-grey;
  1119. }
  1120. .rename-tag-form {
  1121. display: none;
  1122. }
  1123. .delete-tag {
  1124. display: none;
  1125. color: $red;
  1126. }
  1127. .rename-tag {
  1128. color: $blue;
  1129. }
  1130. .validate-rename-tag {
  1131. color: $main-green;
  1132. }
  1133. }
  1134. // Picture wall CSS
  1135. .picwall-container {
  1136. clear: both;
  1137. margin: 0 10px 10px;
  1138. background-color: $almost-white;
  1139. color: $dark-grey;
  1140. }
  1141. .picwall-pictureframe {
  1142. display: table-cell;
  1143. position: relative;
  1144. float: left;
  1145. z-index: 5;
  1146. margin: 2px;
  1147. background-color: $almost-white;
  1148. width: 90px;
  1149. height: 90px;
  1150. overflow: hidden;
  1151. vertical-align: middle;
  1152. text-align: center;
  1153. // Adapt the width of the image
  1154. img {
  1155. max-width: 100%;
  1156. height: auto;
  1157. color: transparent;
  1158. }
  1159. a {
  1160. text-decoration: none;
  1161. }
  1162. span {
  1163. &.info {
  1164. display: none;
  1165. font-family: Arial, sans-serif;
  1166. }
  1167. }
  1168. // CSS to show title when hovering an image - no javascript required.
  1169. &:hover {
  1170. span {
  1171. &.info {
  1172. display: block;
  1173. position: absolute;
  1174. top: 0;
  1175. left: 0;
  1176. background-color: $dark-shadow;
  1177. width: 90px;
  1178. height: 90px;
  1179. text-align: left;
  1180. color: $almost-white;
  1181. font-size: 9pt;
  1182. font-weight: bold;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .b-lazy {
  1188. transition: opacity 500ms ease-in-out;
  1189. opacity: 0;
  1190. -webkit-transition: opacity 500ms ease-in-out;
  1191. -moz-transition: opacity 500ms ease-in-out;
  1192. -o-transition: opacity 500ms ease-in-out;
  1193. &.b-loaded {
  1194. opacity: 1;
  1195. }
  1196. }
  1197. // DAILY
  1198. .daily-desc {
  1199. color: $light-grey;
  1200. font-size: .8em;
  1201. a {
  1202. text-decoration: none;
  1203. color: $dark-grey;
  1204. &:hover {
  1205. color: $light-grey;
  1206. }
  1207. }
  1208. }
  1209. .daily-about {
  1210. h3 {
  1211. &::before,
  1212. &::after {
  1213. display: block;
  1214. margin: 10px auto;
  1215. background: linear-gradient(to right, $background-color, $dark-grey, $background-color);
  1216. width: 90%;
  1217. height: 1px;
  1218. content: '';
  1219. }
  1220. }
  1221. }
  1222. .daily-entry {
  1223. padding: 0 10px;
  1224. .daily-entry-title {
  1225. margin: 10px 0 0;
  1226. a {
  1227. text-decoration: none;
  1228. color: $black;
  1229. }
  1230. &::after {
  1231. display: block;
  1232. margin: 5px auto;
  1233. background: linear-gradient(to right, $white, $light-grey, $white);
  1234. width: 70%;
  1235. height: 1px;
  1236. content: '';
  1237. }
  1238. }
  1239. .daily-entry-description {
  1240. padding: 5px 5px 0;
  1241. text-align: justify;
  1242. font-size: .9em;
  1243. word-wrap: break-word;
  1244. }
  1245. .daily-entry-tags {
  1246. padding: 0 5px 5px;
  1247. font-size: .8em;
  1248. }
  1249. }
  1250. .daily-entry-thumbnail {
  1251. float: left;
  1252. margin: 15px 5px 5px 15px;
  1253. }
  1254. .daily-entry-description {
  1255. a {
  1256. text-decoration: none;
  1257. color: $main-green;
  1258. &:hover {
  1259. text-shadow: 1px 1px $background-linklist-info;
  1260. }
  1261. &:visited {
  1262. color: $dark-green;
  1263. }
  1264. }
  1265. }
  1266. // Fix empty bookmarklet name in Firefox
  1267. .pure-button {
  1268. -moz-user-select: auto;
  1269. }
  1270. .tag-sort {
  1271. margin-top: 30px;
  1272. text-align: center;
  1273. a {
  1274. display: inline-block;
  1275. margin: 0 15px;
  1276. text-decoration: none;
  1277. color: $white;
  1278. font-weight: bold;
  1279. }
  1280. }
  1281. // Markdown
  1282. .markdown {
  1283. p {
  1284. margin: 0 !important;
  1285. }
  1286. p + p {
  1287. margin: .5em 0 0 !important;
  1288. }
  1289. * {
  1290. &:first-child {
  1291. margin-top: 0 !important;
  1292. }
  1293. &:last-child {
  1294. margin-bottom: 5px !important;
  1295. }
  1296. }
  1297. }
  1298. // Pure Button
  1299. .pure-button-success,
  1300. .pure-button-error,
  1301. .pure-button-warning,
  1302. .pure-button-primary,
  1303. .pure-button-shaarli,
  1304. .pure-button-secondary {
  1305. border-radius: 4px;
  1306. text-shadow: 0 1px 1px $dark-shadow;
  1307. color: $white !important;
  1308. }
  1309. .pure-button-shaarli {
  1310. background-color: $main-green;
  1311. }
  1312. .progressbar {
  1313. border-radius: 6px;
  1314. background-color: $main-green;
  1315. padding: 1px;
  1316. > div {
  1317. border-radius: 10px;
  1318. background: repeating-linear-gradient(
  1319. -45deg,
  1320. $almost-white,
  1321. $almost-white 6px,
  1322. $background-color 6px,
  1323. $background-color 12px
  1324. );
  1325. width: 0%;
  1326. height: 10px;
  1327. }
  1328. }
  1329. .thumbnails-page-container {
  1330. .progress-counter {
  1331. padding: 10px 0 20px;
  1332. }
  1333. .thumbnail-placeholder {
  1334. margin: 10px auto;
  1335. background-color: $light-grey;
  1336. }
  1337. .thumbnail-link-title {
  1338. padding-bottom: 20px;
  1339. overflow: hidden;
  1340. text-overflow: ellipsis;
  1341. white-space: nowrap;
  1342. }
  1343. }