From 4b45c6ca58398a874bf98c1dbc9352c26bb02210 Mon Sep 17 00:00:00 2001 From: gitstar-oc Date: Fri, 11 Oct 2024 22:16:07 +0530 Subject: [PATCH] Updated styling and removed some useless css code, added description in introduction to numpy arrays in algebra section --- app/global.css | 21 ------- components/ui/Appearance/style.css | 56 +------------------ .../algebra/introduction-to-numpy-arrays.mdx | 6 +- 3 files changed, 5 insertions(+), 78 deletions(-) diff --git a/app/global.css b/app/global.css index 43ec678..c9fe427 100644 --- a/app/global.css +++ b/app/global.css @@ -2,8 +2,6 @@ @tailwind components; @tailwind utilities; - - @layer components { .underlineEffect { @apply absolute left-0 bottom-[3px] h-[2px] w-full bg-gradient-to-r from-[#4C054C] to-[#25AFAA] scale-x-0 transform transition-transform duration-300 origin-left; @@ -60,25 +58,6 @@ img, video { border-radius: 10px; } -/*************** Navbar ******************/ - -/* #nd-nav { - background-color: black; - background: black; -} */ - -/* nav { - background-color: black; -} */ - - -/************ Highlighted text ***********/ -/* .prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) { - font-size: 16px; - -} */ - - @layer base { :root { --radius: 0.5rem; diff --git a/components/ui/Appearance/style.css b/components/ui/Appearance/style.css index a350491..1d7e8c1 100644 --- a/components/ui/Appearance/style.css +++ b/components/ui/Appearance/style.css @@ -1,55 +1,3 @@ -/* .prose :is(p) { - font-size: var(--h1-size) -} */ - -/************ Changing Appearance **************/ -/* .prose :is(p) { - font-size: 10px; -} - -.prose :is(h1) { - font-size: var(--h1-size); - font-size: 80px; -} - -.prose (p { - )font-size: var(--p-size); -} - -.prose (h1) { - font-size: var(--h1-size); -} - -.prose (h2) { - font-size: var(--h2-size); -} - -.prose (h3) { - font-size: var(--h3-size); -} - -.prose (h4) { - font-size: var(--h4-size); -} - -.prose (h5) { - font-size: var(--h5-size); -} - -.prose (h6) { - font-size: var(--h6-size); -} - -.prose (p){ - font-size: var(--p-size); -} - -.prose (div) { - font-size: var(--size); -} - -*/ - .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)) { font-size: var(--h2-size); /* font-size: 50px */ @@ -59,11 +7,11 @@ } .prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)), .prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)), -.prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)), -.fd-codeblock code { +.prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) { font-size: var(--p-size); } +.fd-codeblock code, .not-prose{ font-size: var(--not-prose) } diff --git a/content/learn/algebra/introduction-to-numpy-arrays.mdx b/content/learn/algebra/introduction-to-numpy-arrays.mdx index a7c21d1..f23da32 100644 --- a/content/learn/algebra/introduction-to-numpy-arrays.mdx +++ b/content/learn/algebra/introduction-to-numpy-arrays.mdx @@ -1,6 +1,6 @@ --- title: Introduction to Python Matrices and NumPy -description: In this +description: In this section you can learn about Numpy, Numpy Arrays, Indexing and Slicing in Numpy, Stacking, Multidimensional Array and many more. --- Welcome to your first notebook of this notes. As mentioned in the lecture videos, you will use Python for the labs and programming assignments in this specializiation. In this course, most of your work will be inside a library called NumPy. NumPy (Numerical Python) is an open-source package that is widely used in science and engineering. You can check out the official [NumPy documentaion here](https://numpy.org/doc/stable/index.html). In this notebook, you will use NumPy to create 2-D arrays and easily compute mathematical operations. Feel free to skip this notebook if you are already fluent with NumPy. @@ -342,7 +342,7 @@ print(horz_stack) -```py +````python # Split the horizontally stacked array into 2 separate arrays of equal size horz_split_two = np.hsplit(horz_stack,2) print(horz_split_two) @@ -354,7 +354,7 @@ print(horz_split_four) # Split the horizontally stacked array after the first column horz_split_first = np.hsplit(horz_stack,[1]) print(horz_split_first) -``` +```` ```py # Split the vertically stacked array into 2 separate arrays of equal size