shaarli.scss 23 KB

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