notes.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. body.type-notes {
  2. .wrapper {
  3. display: flex;
  4. padding: 0;
  5. margin: 0;
  6. width: 100%;
  7. }
  8. .content-section {
  9. flex: 80%;
  10. max-width: 80%;
  11. order: 2;
  12. /* background-color: lightseagreen; */
  13. padding: 0;
  14. position: relative;
  15. padding-left: 0.5rem;
  16. padding-right: 0.5rem;
  17. }
  18. .content {
  19. padding: 0;
  20. position: relative;
  21. padding-top: 2rem;
  22. min-height: 130vh;
  23. }
  24. .note-card-holder{
  25. padding-top: 2rem;
  26. display: grid;
  27. grid-gap: 0.5rem;
  28. grid-template-columns: repeat(auto-fill, minmax(30rem,1fr));
  29. grid-auto-rows: 20px;
  30. }
  31. /* .note-collection {
  32. display: flex;
  33. flex-wrap: wrap;
  34. } */
  35. .note-card {
  36. align-self: flex-start;
  37. }
  38. .note-card .card{
  39. margin: 0.5rem;
  40. }
  41. .note-title{
  42. padding-left: 1rem;
  43. color: #248aaa;
  44. }
  45. .note-title span{
  46. background: #e5e9f2;
  47. padding-right: 5px;
  48. }
  49. .note-title:before{
  50. content:'';
  51. display:inline-block;
  52. width:98%;
  53. height:100%;
  54. margin-bottom:-26px;
  55. border-bottom: 1px solid #248aaa;
  56. }
  57. .note-card .card-body{
  58. padding: 1rem;
  59. }
  60. .note-card pre {
  61. margin: 0;
  62. border-radius: 3px;
  63. }
  64. /* .small-note{
  65. max-width: 15rem;
  66. }
  67. .medium-note{
  68. max-width: 25rem;
  69. }
  70. .large-note{
  71. max-width: 40rem;
  72. }
  73. .huge-note{} */
  74. .note-badge{
  75. font-size: 10pt;
  76. }
  77. /* ============= Device specific fixes ======= */
  78. /* Large screens such as TV */
  79. @media only screen and (min-width: 1824px) {
  80. .content-section {
  81. padding-left: 1rem;
  82. padding-right: 1rem;
  83. flex: 85%;
  84. max-width: 85%;
  85. }
  86. }
  87. /* Extra large devices (large desktops, 1200px and up) */
  88. @media (max-width: 1400px) {
  89. .note-card-holder {
  90. margin-left: 0px;
  91. }
  92. }
  93. @media (max-width: 1200px) {
  94. }
  95. /* IPad Pro */
  96. @media (max-width: 1024px) {
  97. .wrapper {
  98. padding-left: 0px;
  99. padding-right: 0px;
  100. }
  101. .content-section {
  102. padding: 0;
  103. max-width: 100%;
  104. order: 2;
  105. padding-bottom: 0.5rem;
  106. transition: all ease-out 0.3s;
  107. }
  108. .content-section.hide {
  109. max-width: 60%;
  110. transition: all ease-out 0.3s;
  111. }
  112. .content {
  113. overflow: hidden;
  114. }
  115. .container {
  116. max-width: 100%;
  117. }
  118. .navbar-toggler {
  119. display: block;
  120. }
  121. #toc-toggler {
  122. visibility: hidden;
  123. }
  124. .navbar-collapse.lang-selector {
  125. display: block !important;
  126. position: absolute;
  127. right: 0;
  128. top: 0.5rem;
  129. }
  130. .note-card-holder {
  131. margin: 0;
  132. margin-top: 1.5rem;
  133. padding-left: 0.5rem;
  134. padding-right: 0.5rem;
  135. position: relative;
  136. transition: all ease-out 0.3s;
  137. }
  138. .content-section.hide .note-card-holder{
  139. grid-template-columns: repeat(auto-fill, minmax(30rem,1fr));
  140. transition: all ease-out 0.3s;
  141. }
  142. }
  143. /* Large devices (desktops, 992px and up) */
  144. @media (max-width: 992px) {
  145. .note-card-holder .note-card {
  146. max-width: 100%;
  147. min-width: 50%;
  148. transition: all ease-out 0.3s;
  149. }
  150. .content-section.hide .note-card-holder .note-card {
  151. max-width: 100%;
  152. min-width: 100%;
  153. transition: all ease-out 0.3s;
  154. }
  155. }
  156. /* Medium devices (tablets, 768px and up) */
  157. @media only screen and (max-width: 768px) {
  158. }
  159. /* Small devices (landscape phones, 576px and up) */
  160. @media only screen and (max-width: 576px) {
  161. .wrapper {
  162. padding-left: 0px;
  163. padding-right: 0px;
  164. flex-flow: column;
  165. overflow: hidden;
  166. }
  167. .content-section, .content-section.hide {
  168. flex: 100%;
  169. max-width: 100%;
  170. padding-left: 0;
  171. width: 100%;
  172. transition: all ease-out 0.3s;
  173. }
  174. .content {
  175. width: 100%;
  176. padding-left: 0;
  177. padding-right: 0;
  178. transition: all ease-out 0.3s;
  179. }
  180. .content-section.hide .content {
  181. margin-top: 0;
  182. padding-top: 0;
  183. transition: all ease-out 0.3s;
  184. }
  185. .content-section.hide .note-card-holder {
  186. margin-top: 0.5rem;
  187. transition: all ease-out 0.3s;
  188. }
  189. .note-card-holder .note-card, .content-section.hide .note-card-holder .note-card {
  190. margin-left: 1%;
  191. margin-right: 1%;
  192. max-width: 98%;
  193. min-width: 98%;
  194. transition: all ease-out 0.3s;
  195. }
  196. }
  197. /* iPhoneX, iPhone 6,7,8 */
  198. @media only screen and (max-width: 375px) {
  199. }
  200. /* Galaxy S5, Moto G4 */
  201. @media only screen and (max-width: 360px) {
  202. }
  203. /* iPhone 5 or before */
  204. @media only screen and (max-width: 320px) {
  205. }
  206. }