1
00:00:00,720 --> 00:00:03,030
Hello everyone and welcome back.

2
00:00:03,030 --> 00:00:09,390
In today's video we learn how to write styles to buttons we can use a general to assist properties like

3
00:00:09,390 --> 00:00:15,840
one sides color background color etc. to add silence to these buttons let us write some examples to

4
00:00:15,840 --> 00:00:16,860
understand it better.

5
00:00:17,220 --> 00:00:27,030
Let's bring back with Ed let's get you to a pause button say region log in let's copy this Heidi.

6
00:00:28,410 --> 00:00:34,920
Let's say that coming to our index once use a spider let's select this button so hush.

7
00:00:35,400 --> 00:00:38,400
And then let's give about third of this.

8
00:00:38,400 --> 00:00:41,760
So now on policy.

9
00:00:41,850 --> 00:00:44,930
Light blue it's even.

10
00:00:45,620 --> 00:00:47,950
And as you can see now a button has a background color.

11
00:00:48,550 --> 00:00:54,960
Let's try adding some padding see if pixels on 16 pixels.

12
00:00:55,450 --> 00:00:58,360
Let's say that also a button has a border.

13
00:00:58,390 --> 00:00:59,440
So let's remove that.

14
00:01:00,460 --> 00:01:05,840
So border nine let's save it.

15
00:01:05,870 --> 00:01:07,990
Let's make these comments a bit color.

16
00:01:08,010 --> 00:01:11,980
So border radius on let's say eight pixels.

17
00:01:12,080 --> 00:01:15,710
And as you can see our button has a code corner slot.

18
00:01:15,920 --> 00:01:22,030
So even if you don't give a border using the border radius probably just makes the corners rounded.

19
00:01:22,070 --> 00:01:22,980
Also come in here.

20
00:01:23,330 --> 00:01:26,930
So when you click on this button this outline becomes.

21
00:01:27,050 --> 00:01:28,770
So let's try to move on that.

22
00:01:28,850 --> 00:01:31,760
So we have another property for this purpose outline.

23
00:01:32,410 --> 00:01:35,410
So for that live just a nine.

24
00:01:35,420 --> 00:01:40,400
So now when I click on this button that outline doesn't comes also when I hold it.

25
00:01:41,000 --> 00:01:43,640
I want my mouse pointer to change to clickable.

26
00:01:44,120 --> 00:01:50,610
So for that we have another property cursor on it accepts a value point do it.

27
00:01:50,780 --> 00:01:51,410
Let's see it.

28
00:01:51,980 --> 00:01:58,120
And now when I hover on this button it shows me that this estimate element is clickable.

29
00:01:58,160 --> 00:02:01,620
Now let's try adding some woodchips So let's act on button.

30
00:02:01,860 --> 00:02:07,580
So we can log in again to article 1 effects.

31
00:02:07,580 --> 00:02:12,190
We can just golden and hover.

32
00:02:12,200 --> 00:02:17,240
Now let's see when someone who works on this button we change they're going to do dark blue the bar

33
00:02:17,240 --> 00:02:20,300
don't color to dark blue and fun color too white.

34
00:02:20,660 --> 00:02:21,520
So let's try OK.

35
00:02:22,850 --> 00:02:28,960
So about nine colors a dog Blue I'm fine color two white.

36
00:02:29,450 --> 00:02:30,620
Let's save it.

37
00:02:31,180 --> 00:02:32,270
So coming back here

38
00:02:35,450 --> 00:02:41,270
now when I hold on this button the biological animals stood dog new and different color changes too.

39
00:02:42,070 --> 00:02:43,560
All right let's try.

40
00:02:43,940 --> 00:02:45,770
I think some states do the next button as well.

41
00:02:46,490 --> 00:02:48,370
Let's see median.

42
00:02:48,650 --> 00:02:50,940
Sign up let's say with

43
00:02:54,280 --> 00:02:55,590
let's select a button here

44
00:02:59,420 --> 00:03:04,250
let's say you own this button to have a light blue button on a light by down color.

45
00:03:04,790 --> 00:03:05,650
So let's write like

46
00:03:08,800 --> 00:03:10,280
so bargain go right.

47
00:03:10,980 --> 00:03:22,350
And let's give it a water see do make sense solid and light blue let's say that.

48
00:03:23,200 --> 00:03:26,170
And as you can see my button has a light blue button.

49
00:03:26,830 --> 00:03:29,970
Let's give it the same parting as we give the button earlier.

50
00:03:30,130 --> 00:03:35,990
So eight pixels and sixteen pixels that save it.

51
00:03:36,260 --> 00:03:38,530
Also let's make these corners.

52
00:03:38,580 --> 00:03:39,850
Gold are rounded.

53
00:03:40,360 --> 00:03:43,800
So what the radius say eight vixens.

54
00:03:43,870 --> 00:03:44,560
Save it.

55
00:03:45,110 --> 00:03:45,640
All right.

56
00:03:45,670 --> 00:03:50,430
So again when I click here you see this blue outline.

57
00:03:50,680 --> 00:03:53,420
So let's change that.

58
00:03:53,690 --> 00:03:56,570
So outline say none.

59
00:03:56,680 --> 00:04:03,370
And now when I click here that outline doesn't comes back when I hit the button I need my most pointer

60
00:04:03,370 --> 00:04:04,630
to change the clickable.

61
00:04:05,470 --> 00:04:06,760
So let's do that as well.

62
00:04:08,260 --> 00:04:10,540
So cursor on point two.

63
00:04:10,750 --> 00:04:11,510
Let's save it.

64
00:04:12,120 --> 00:04:16,060
And now when I hold my goal settings changes still applicable.

65
00:04:16,600 --> 00:04:18,320
Similarly that's even someone who works.

66
00:04:18,730 --> 00:04:21,180
We fill the color to light blue.

67
00:04:21,310 --> 00:04:24,680
Let's write up harsh Eugene.

68
00:04:25,150 --> 00:04:25,570
Sign up.

69
00:04:25,570 --> 00:04:29,830
So we select our element and we have this property.

70
00:04:30,280 --> 00:04:33,210
So let's just say we want the back on color to change.

71
00:04:33,280 --> 00:04:35,680
So about one color.

72
00:04:35,820 --> 00:04:43,030
Let's say that now when I hold my button salesman light blue background color

73
00:04:49,330 --> 00:04:55,210
let's give it another button let's say disabled.

74
00:04:56,110 --> 00:05:06,240
Let's give it a 90 same button disabled that same old.

75
00:05:06,250 --> 00:05:12,150
So now what we want is we are trying to create a button which is not clickable and it should leave so

76
00:05:12,160 --> 00:05:13,600
that this is not clickable.

77
00:05:14,350 --> 00:05:20,540
So hash I.D. let's give it a background color.

78
00:05:21,030 --> 00:05:30,150
So a light blue let's give it some bindings and eight pixels on 16 pixels that save.

79
00:05:30,330 --> 00:05:33,030
Let's remove the borders so border none.

80
00:05:34,050 --> 00:05:44,210
Let's give a rounded corners so border radius which is say eight pixels now it looks just like the log

81
00:05:44,270 --> 00:05:44,660
button.

82
00:05:45,620 --> 00:05:50,590
So now when I click on it it still gives me this blue line so that you move that as well.

83
00:05:51,470 --> 00:05:52,350
So outline.

84
00:05:52,580 --> 00:05:53,420
None.

85
00:05:53,440 --> 00:05:54,090
Say what.

86
00:05:54,750 --> 00:06:01,060
And when I click on this button nothing happens so let's ensure that this button is disabled and someone

87
00:06:01,160 --> 00:06:03,510
holds it shows that this is not fixable.

88
00:06:04,210 --> 00:06:05,060
So let's do that.

89
00:06:05,560 --> 00:06:12,960
So cursor it accepts another rather not allowed it saved.

90
00:06:12,990 --> 00:06:20,810
And now when I go over it shows me this not alone because of going to also let let's try giving some

91
00:06:20,930 --> 00:06:22,540
transparency to this button.

92
00:06:22,550 --> 00:06:23,960
So it looks a bit faded.

93
00:06:24,470 --> 00:06:31,180
So for that citizens as another block what you call obesity so this be simply accepts a value between

94
00:06:31,180 --> 00:06:32,520
0 and 1.

95
00:06:32,680 --> 00:06:36,790
So you can give it in decimals on so let's say zero point six.

96
00:06:37,030 --> 00:06:37,700
Let's save it.

97
00:06:38,270 --> 00:06:43,300
Now as you can see a button looks up it's needed then someone who works on it it shows us not clickable

98
00:06:43,570 --> 00:06:45,010
goes that window.

99
00:06:45,190 --> 00:06:46,290
That's all for today guys.

100
00:06:46,310 --> 00:06:51,440
If there's something that you did not understand feel free to a comment and we will discuss it.

101
00:06:51,520 --> 00:06:53,710
See you in the next video by Monday.
