notes.css 4.0 KB

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