Skip to content

Commit 02a053c

Browse files
authored
Comments for future work on the CSS lesson
1 parent 393f6d9 commit 02a053c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

RShiny/lessons/css/table_of_contents.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: "Will Gammerdinger"
55

66
# What is CSS?
77

8-
CSS, also known as Cascading Style Sheet, is a style sheet language. When we use a CSS file in confunction with our Shiny app, it gives up much more control over the styling of each aspect of the elements in our UI in the same way that you can have fine control over your plots when creating them in R. To this end, it should be noted that this resource is not intended to be exhaustive as there are virtually endless combinations of things you can tweak and way to tweak them. We will try over time, to compile common items and things you might want to edits within parts of your UI.
8+
CSS, also known as Cascading Style Sheet, is a style sheet language. When we use a CSS file in confunction with our Shiny app, it gives us much more control over the styling of each aspect of the elements in our UI in the same way that you can have fine control over your plots when creating them in R. To this end, it should be noted that this resource is not intended to be exhaustive as there are virtually endless combinations of things you can tweak and ways to tweak them. We will try over time, to compile common items and things you might want to edits within parts of your UI.
99

1010
# Setting your workspace up for CSS
1111

@@ -20,6 +20,23 @@ ui <- fluidPage(
2020

2121
Now, let's open up the `style.css` file in RStudio next to our app and get to work!
2222

23+
## Example CSS file
24+
25+
Your CSS file might look like:
26+
27+
```
28+
/* Sample CSS Entry */
29+
Put a simple sample CSS here
30+
```
31+
32+
## Commenting your CSS
33+
34+
Commenting your code is a great practice in order to make your code more readable to other. While in many languages you comment your code with a `#`, in CSS you open a comment with `/*` and close a comment with `*/`. In the example code above you can see that we had a comment in front of each CSS Option(?).
35+
36+
## Structure of an CSS entry
37+
38+
Write about how a CSS entry is formatted here.
39+
2340
## Table of Contents
2441

2542
[radioButtons](css_radioButtons.md)

0 commit comments

Comments
 (0)