Sitepoint demo app for learning to use Sinatra
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

152 lines
2.3 KiB

  1. $orange:#D78123;
  2. $blue:#1E1641;
  3. $green:#02d330;
  4. $grey: #999;
  5. $background:$blue;
  6. $logo-color:white;
  7. $heading-color:$orange;
  8. @mixin button($color){
  9. background:$color;
  10. border: 2px solid darken($color,15%);
  11. cursor: pointer;
  12. color: #fff;
  13. width: 150px;
  14. margin-left:4px;
  15. }
  16. body{
  17. background:$background;
  18. padding:0;
  19. margin:0;
  20. }
  21. h1.logo{
  22. font-family: helvetica,arial,sans-serif;
  23. font-size: 24px;
  24. color:$logo-color;
  25. padding:64px 0 0;
  26. margin: 0 auto;
  27. text-transform: uppercase;
  28. text-align: center;
  29. font-weight: normal;
  30. letter-spacing: 0.3em;
  31. background: transparent url(/logo.png) 50% 0 no-repeat;
  32. }
  33. .new-list{
  34. margin: 0 auto;
  35. padding: 10px;
  36. width: 424px;
  37. input{
  38. padding: 4px 8px;
  39. font-size: 24px;
  40. border:none;
  41. font-weight: bold;
  42. width: 250px;
  43. }
  44. .button{
  45. @include button($orange);
  46. }
  47. }
  48. .completed{
  49. text-decoration: line-through;
  50. }
  51. .tasks{
  52. padding:0;
  53. list-style:none;
  54. }
  55. .task{
  56. font-family: helvetica,arial,sans-serif;
  57. font-size: 12px;
  58. color:#444;
  59. position:relative;
  60. padding:2px 0 2px 28px;
  61. border-bottom: dotted 1px #ccc;
  62. }
  63. form.update{
  64. position:absolute;
  65. bottom:2px;
  66. left:0;
  67. input{
  68. background: white;
  69. color: white;
  70. padding:0 2px;
  71. border:solid 1px $grey;
  72. cursor:pointer;
  73. width:20px;
  74. height:20px;
  75. }
  76. }
  77. .tasks li.completed form.update input{
  78. color:$green;
  79. font-weight: bold;
  80. }
  81. form.delete{
  82. display:inline;
  83. }
  84. form.delete input{
  85. color: white;
  86. background:none;
  87. cursor:pointer;
  88. border:none;
  89. }
  90. .lists{
  91. padding:0;
  92. list-style:none;
  93. overflow:hidden;
  94. clear: left;
  95. padding-top: 20px;
  96. }
  97. .list{
  98. float: left;
  99. position: relative;
  100. width:21%;
  101. margin:0 1% 20px;
  102. padding: 0 1% 8px;
  103. border-top: solid 5px $green;
  104. background: #fff;
  105. background: rgba(#fff,0.7);
  106. padding-bottom: 20px;
  107. h1{
  108. text-align:center;
  109. font-family: helvetica,arial,sans-serif;
  110. font-size: 20px;
  111. color:$heading-color;
  112. margin:0;
  113. }
  114. form.new input{
  115. width: 80%;
  116. display: block;
  117. margin:0 auto 8px;
  118. }
  119. form.destroy input{
  120. display: block;
  121. margin:0;
  122. position:absolute;
  123. top:2px;
  124. right:2px;
  125. background: transparent;
  126. border: 1px solid $grey;
  127. color: $grey;
  128. font-size:16px;
  129. opacity:0.6;
  130. &:hover{
  131. opacity:1;
  132. background: #fff;
  133. color: $green;
  134. }
  135. }
  136. }