notes.css 3.6 KB

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