shaarli.scss 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592
  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. position: relative;
  541. margin: 0 0 10px;
  542. box-shadow: 1px 1px 3px $light-grey;
  543. background: $almost-white;
  544. &.private {
  545. &::before {
  546. display: block;
  547. position: absolute;
  548. top: 0;
  549. left: 0;
  550. z-index: 1;
  551. background: $orange;
  552. width: 2px;
  553. height: 100%;
  554. content: '';
  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. }