Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,570 --> 00:00:01,510
In this video.
2
00:00:01,510 --> 00:00:05,220
What we're going to start doing is styling these h html elements.
3
00:00:05,490 --> 00:00:09,480
Now again, this isn't really related to view three and NOx.
4
00:00:09,810 --> 00:00:16,710
So if you want, feel free to just go to the link, go to my branch and just copy the source code and
5
00:00:16,710 --> 00:00:18,150
skip this video.
6
00:00:18,690 --> 00:00:22,170
However, if you want to follow along, then well, let's just get started.
7
00:00:22,950 --> 00:00:27,720
So the first thing that we need in order to define our styles are style tags, of course.
8
00:00:28,140 --> 00:00:29,400
So we're going to say style.
9
00:00:29,660 --> 00:00:35,580
We're also going to say scoped so that these styles can be scoped to this file only.
10
00:00:36,660 --> 00:00:42,390
So the first thing that I want to do is I want to style the container.
11
00:00:42,750 --> 00:00:46,380
So the container is actually a class that I didn't define here.
12
00:00:46,620 --> 00:00:49,530
And it is going to house our entire application.
13
00:00:49,540 --> 00:00:51,540
So I want to style this div right over here.
14
00:00:51,930 --> 00:00:52,920
So I'm going to go over here.
15
00:00:52,920 --> 00:00:55,740
MSA class container.
16
00:00:56,220 --> 00:00:57,330
Now, right over here.
17
00:00:57,360 --> 00:00:59,970
Let's apply some of the styles.
18
00:01:00,300 --> 00:01:02,220
So I'm going to say container.
19
00:01:02,700 --> 00:01:08,280
And the first thing that I want to do is I want to change the font family Marina.
20
00:01:08,310 --> 00:01:11,610
You can see that we're getting this default font.
21
00:01:11,850 --> 00:01:18,720
So I'm a changed font family to something like font family, I must say Arial and then have Attica and
22
00:01:18,720 --> 00:01:19,650
then sans serif.
23
00:01:20,010 --> 00:01:21,240
And that should change.
24
00:01:21,240 --> 00:01:24,270
If I refresh, it should change our font a little.
25
00:01:24,960 --> 00:01:29,670
Okay, so the next thing that I want to do is I want to change the default color.
26
00:01:29,680 --> 00:01:32,060
So the color is going to be our chibi.
27
00:01:32,470 --> 00:01:40,230
I'm going to say 27 and then 60 and then a 138.
28
00:01:40,770 --> 00:01:44,370
So that's going to be the default color when I have this bluish color, which is nice.
29
00:01:44,970 --> 00:01:49,260
And then we're also want to center this right in the middle.
30
00:01:49,860 --> 00:01:55,110
So what I'm going to do is a going to give this a max width of around 50 grams.
31
00:01:56,400 --> 00:02:00,030
And then I'm also going to give it a margin, zero auto.
32
00:02:00,420 --> 00:02:05,220
And I am going to do a text, a line of center.
33
00:02:05,760 --> 00:02:10,860
So now once we do that, you can see now everything is nicely centered in the middle.
34
00:02:11,490 --> 00:02:11,790
Okay.
35
00:02:11,790 --> 00:02:14,220
So that is the very first thing.
36
00:02:14,550 --> 00:02:18,180
Now, what I want to do is I want to make this a little bit bigger, this title.
37
00:02:18,540 --> 00:02:24,990
So what I'm going to say here is inside of the container, grab the H1 or we can honestly just do H1
38
00:02:24,990 --> 00:02:26,910
because we just have one H1 in there.
39
00:02:27,330 --> 00:02:31,020
And we can say font size three grams.
40
00:02:31,590 --> 00:02:33,960
And I can see now that is a little bit bigger.
41
00:02:34,110 --> 00:02:39,570
Now, mind you, that I am zoomed then because it would look relatively small if I have it.
42
00:02:40,260 --> 00:02:42,720
Okay, so let's go ahead and continue on.
43
00:02:43,140 --> 00:02:48,180
So the next thing that I want to do is I want to start working on the options container.
44
00:02:48,510 --> 00:02:54,330
So right over here, this whole thing should be wrapped in a container and this should have some nice
45
00:02:54,330 --> 00:02:55,440
background color.
46
00:02:55,800 --> 00:03:00,000
So let's go over here and let's just say options container.
47
00:03:00,450 --> 00:03:07,890
And keep in mind we have an S here, so options container and then over here we're going to have a background
48
00:03:07,890 --> 00:03:09,900
color, not clip color.
49
00:03:10,440 --> 00:03:12,870
And this is going to be RGV.
50
00:03:13,530 --> 00:03:20,580
And then over here we're going to say two, five, five red, say two, three, eight, and then two,
51
00:03:20,580 --> 00:03:21,900
three, six.
52
00:03:22,350 --> 00:03:23,640
So it's going to be the color.
53
00:03:23,820 --> 00:03:28,200
And you can see here and now we're getting that wonderful little color, this wrapping all of our different
54
00:03:28,200 --> 00:03:28,950
options.
55
00:03:29,650 --> 00:03:35,640
Now, the next thing that we need to do is apply a border radius so we can get those rounds, rounded
56
00:03:35,640 --> 00:03:36,210
corners.
57
00:03:36,240 --> 00:03:37,740
So we're going to say two rems for that.
58
00:03:37,740 --> 00:03:39,960
And now you can see we get the cool rounded corners.
59
00:03:40,290 --> 00:03:41,790
Now, of course, we need some padding.
60
00:03:41,790 --> 00:03:42,960
So let's go here.
61
00:03:42,960 --> 00:03:44,850
We're going to say padding or one rim.
62
00:03:45,180 --> 00:03:52,020
Now we get some nice little padding and let's actually make this width 95%.
63
00:03:52,020 --> 00:03:56,130
So going to say 95% of the width like so.
64
00:03:56,400 --> 00:04:02,640
And then what we're going to do is we're going to also apply a margin zero auto so we can center it
65
00:04:04,050 --> 00:04:08,970
and give it a margin top of four rims.
66
00:04:09,600 --> 00:04:15,690
And we're also going to give it a position relative position relative like so.
67
00:04:16,380 --> 00:04:17,850
So let's go ahead and save that.
68
00:04:17,850 --> 00:04:24,150
And now you can see that it is very, very big and everything is nicely centered the way that we want
69
00:04:24,150 --> 00:04:24,540
it to.
70
00:04:25,290 --> 00:04:25,740
Okay.
71
00:04:25,860 --> 00:04:27,780
So that is pretty much all we need.
72
00:04:28,020 --> 00:04:30,900
Now, those are styling the options themselves.
73
00:04:31,080 --> 00:04:32,910
So the option containers themselves.
74
00:04:33,240 --> 00:04:37,230
Now, the only thing that I want to do is have just a little bit more spacing between each option.
75
00:04:37,230 --> 00:04:38,430
Let me zoom out of here a little bit.
76
00:04:39,030 --> 00:04:46,410
And so in order to do this, we can just apply a margin so we can say option and then dash container.
77
00:04:46,890 --> 00:04:49,650
I'm going to say margin bottom.
78
00:04:51,010 --> 00:04:52,600
Bottom off.
79
00:04:52,600 --> 00:04:55,860
Let's go to Rams here and there we go.
80
00:04:55,870 --> 00:04:59,410
So now we got this wonderful margin bottom.
81
00:04:59,950 --> 00:05:03,760
Now the next thing that we need to do is style the buttons themselves.
82
00:05:04,030 --> 00:05:09,460
So over here, what I'm going to do is instead of actually grabbing the button, I'm just going to give
83
00:05:09,460 --> 00:05:13,210
all the buttons a class of option, because that's exactly what they are.
84
00:05:13,540 --> 00:05:14,530
They're options.
85
00:05:14,860 --> 00:05:17,410
So over here, let's just give it a class option.
86
00:05:17,740 --> 00:05:22,810
Class option, class option, class option.
87
00:05:24,460 --> 00:05:27,110
Over here, class option, class option.
88
00:05:27,120 --> 00:05:29,980
And then lastly, class of option, right over here.
89
00:05:30,880 --> 00:05:36,070
So what I'm going to do is we're going to well, we're going to style the option now.
90
00:05:36,610 --> 00:05:39,970
So we're going to give this a background color.
91
00:05:41,310 --> 00:05:42,600
Of whites.
92
00:05:43,590 --> 00:05:53,190
So going to give the background color of whites, we're also going to give it an outline of 0.15 rems.
93
00:05:53,460 --> 00:05:54,840
We're going to say solid.
94
00:05:55,620 --> 00:06:03,390
We're also going to say that the color is going to be RGV and we're going to say two, four, nine and
95
00:06:03,390 --> 00:06:06,900
then eight, seven and then eight, nine.
96
00:06:07,680 --> 00:06:08,160
Okay.
97
00:06:08,850 --> 00:06:12,000
We're also going to give it a border of none.
98
00:06:13,280 --> 00:06:14,930
We're going to give it some padding.
99
00:06:16,100 --> 00:06:21,080
This is going to be 0.75 rims.
100
00:06:22,560 --> 00:06:24,240
We're also going to give it some width.
101
00:06:24,270 --> 00:06:32,160
So say width of 120 or 100 or 12 rims over here.
102
00:06:32,230 --> 00:06:33,690
And let's go ahead and close that off.
103
00:06:35,190 --> 00:06:40,200
And now let's give it a font size of one rim.
104
00:06:41,200 --> 00:06:52,660
A color of RGV and we're going to say 27, 60 and 1138.
105
00:06:54,600 --> 00:06:57,360
And then let's give it a cursor pointer.
106
00:06:58,950 --> 00:07:01,050
And then what do we need?
107
00:07:01,050 --> 00:07:04,380
We need to find weights of 200.
108
00:07:05,070 --> 00:07:09,180
So now if you go ahead and save that, you can see that this is exactly what we get.
109
00:07:09,300 --> 00:07:11,310
So this is looking really, really good.
110
00:07:11,730 --> 00:07:16,970
Now, the last thing that is missing is right over here.
111
00:07:16,980 --> 00:07:21,660
So to the right and to the left, you want to have those rounded corners.
112
00:07:22,200 --> 00:07:26,520
So what we need to do is we need to actually apply some conditional styles here.
113
00:07:26,850 --> 00:07:32,400
So over here, what we can do is at the very top, we can say something like this is going to be to
114
00:07:32,400 --> 00:07:32,880
the left.
115
00:07:32,880 --> 00:07:37,290
So we can also give this another class of option left.
116
00:07:37,710 --> 00:07:40,350
This one is going to be option right.
117
00:07:42,050 --> 00:07:43,790
Now we can do the same thing over here.
118
00:07:44,420 --> 00:07:46,610
You can say option left here.
119
00:07:46,640 --> 00:07:48,470
Option right here.
120
00:07:50,850 --> 00:07:53,660
And then over here we can say that this is also going to be to the left.
121
00:07:53,670 --> 00:07:56,340
This is going to be to the right.
122
00:07:57,210 --> 00:07:58,830
Now, right down here.
123
00:07:58,840 --> 00:08:01,840
Now, what we can do is just say option left.
124
00:08:01,860 --> 00:08:06,990
We can just give it a border radius so we can say border radius.
125
00:08:07,260 --> 00:08:10,880
And this is only going to apply to the left side.
126
00:08:10,890 --> 00:08:18,900
So what we can say here is we can say one room to the top right corner and then or start to the top
127
00:08:18,900 --> 00:08:28,500
left corner and then zero rems in the top right corner and then zero rems in the top or the bottom right
128
00:08:28,500 --> 00:08:30,720
corner and then the bottom.
129
00:08:31,350 --> 00:08:31,620
Okay.
130
00:08:31,680 --> 00:08:33,780
I think I'm getting myself confused here.
131
00:08:34,260 --> 00:08:42,570
So one ram in the top left, zero in the top right, zero in the bottom right, and then one in the
132
00:08:42,570 --> 00:08:43,440
bottom left.
133
00:08:43,800 --> 00:08:45,090
So that's what it means right there.
134
00:08:45,810 --> 00:08:49,290
So now what we can do here is copy that pasted over here.
135
00:08:49,290 --> 00:08:53,460
And also now what we could do is just basically flip this around.
136
00:08:53,910 --> 00:08:59,910
So you can say zero one, one ram and then zero like so.
137
00:09:00,340 --> 00:09:02,790
So now let's just go ahead and save that.
138
00:09:02,790 --> 00:09:08,130
And now you can see our styling is pretty much done at this point.
139
00:09:08,700 --> 00:09:11,160
So it's pretty much all it is that we need to do for styling.
140
00:09:11,190 --> 00:09:15,330
Now let's get into the fun stuff where we start working with View three and Knocks.
12659
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.