Skip to content

Commit 12cf4de

Browse files
authored
docs(dateinput): fix nested snippets
1 parent 7629398 commit 12cf4de

File tree

1 file changed

+44
-46
lines changed

1 file changed

+44
-46
lines changed

controls/dateinput/appearance-and-styling/creating-a-custom-skin.md

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ See [Understanding the Skin CSS File]({%slug raddateinput/appearance-and-styling
3737
1. Open Input.Green.css and replace all instances of _Default with _Green. Then save the file:
3838
![Find and replace](images/FindAndReplace.png)
3939

40-
1. Drag the "Input.Green.Css" file from the Solution Explorer onto your Web page. This automatically adds a reference to the page "<head>" tag as a "<link>" to the new stylesheet:
40+
1. Drag the "Input.Green.css" file from the Solution Explorer onto your Web page. This automatically adds a reference to the page "<head>" tag as a "<link>" to the new stylesheet:
4141
![Drag CSS file](images/dragcssfile.png)
4242

4343
1. Change the **Skin** property of your four **RadInput** controls to "Green".
@@ -51,76 +51,75 @@ See [Understanding the Skin CSS File]({%slug raddateinput/appearance-and-styling
5151

5252
1. The classes that control the background for spin buttons are **.riUp** and **.riDown**. Locate the mentioned selectors. The class definitions are qualified by the **.RadInput_Green** class, which is the class definition for the entire control. Add a property to the selectors, setting the background color for the spin buttons:
5353

54-
````CSS
55-
.RadInput_Green a.riUp
56-
{
57-
background-position: 4px -98px;
58-
vertical-align: top;
59-
background-color: #ddffe0;
60-
}
54+
````CSS
55+
.RadInput_Green a.riUp
56+
{
57+
background-position: 4px -98px;
58+
vertical-align: top;
59+
background-color: #ddffe0;
60+
}
6161
````
6262

63-
````CSS
64-
.RadInput_Green a.riDown
65-
{
66-
background-position: 4px -199px;
67-
vertical-align: top;
68-
background-color: #ddffe0;
69-
}
63+
````CSS
64+
.RadInput_Green a.riDown
65+
{
66+
background-position: 4px -199px;
67+
vertical-align: top;
68+
background-color: #ddffe0;
69+
}
7070
````
7171

7272
1. The class that controls the background of the button is **.riButton**. There is currently no definition for this class in the skin file. Add one, setting a background for the button:
7373

74-
````CSS
75-
.RadInput_Green a.riButton
76-
{
77-
background-color: #ddffe0;
78-
}
74+
````CSS
75+
.RadInput_Green a.riButton
76+
{
77+
background-color: #ddffe0;
78+
}
7979
````
8080

8181

8282

8383
1. The text area when the control is enabled has the **.riEnabled** class applied. Locate this selector. Change the border color to Green and add a background color:
8484

85-
````CSS
86-
.RadInput_Green .riEnabled
87-
{
88-
color: #333;
89-
border: solid 1px Green;
90-
background:#eeffee;
91-
}
85+
````CSS
86+
.RadInput_Green .riEnabled
87+
{
88+
color: #333;
89+
border: solid 1px Green;
90+
background:#eeffee;
91+
}
9292
````
9393

9494

9595

9696
1. The class that controls the text area when the mouse hovers over the control is **.riHover**. Locate this selector, and change the border color from "#000" to "Green".
9797

98-
````CSS
99-
.RadInput_Green .riHover
100-
{
101-
color: #333;
102-
border: solid 1px Green;
103-
}
98+
````CSS
99+
.RadInput_Green .riHover
100+
{
101+
color: #333;
102+
border: solid 1px Green;
103+
}
104104
````
105105

106106

107107

108108
1. The class that controls the text area when it is displaying the empty message is **.riEmpty**. Locate this selector and change the color and border colors to "Green". Add in a background color as well:
109109

110-
````CSS
111-
.RadInput_Green .riEmpty
112-
{
113-
color: Green;
114-
border: solid 1px Green;
115-
background:#ddeedd;
116-
}
110+
````CSS
111+
.RadInput_Green .riEmpty
112+
{
113+
color: Green;
114+
border: solid 1px Green;
115+
background:#ddeedd;
116+
}
117117
````
118118

119119

120-
121120
1. The class that controls the text area when it has focus is **.riFocused**. Change the border color to "Green":
122121

123-
````CSS
122+
````CSS
124123
.RadInput_Green .riFocused
125124
{
126125
border: solid 1px Green;
@@ -131,9 +130,9 @@ See [Understanding the Skin CSS File]({%slug raddateinput/appearance-and-styling
131130

132131

133132

134-
1. The class that controls the text area when it's value is invalid is **.riError**. Add a **background-color** of "#ddd", and change the color and border-color attributes to "#ffcc55":
133+
1. The class that controls the text area when its value is invalid is **.riError**. Add a **background-color** of "#ddd", and change the color and border-color attributes to "#ffcc55":
135134

136-
````CSS
135+
````CSS
137136
.RadInput_Green .riError
138137
{
139138
background-image: url('Input/errorSign.gif');
@@ -148,7 +147,7 @@ See [Understanding the Skin CSS File]({%slug raddateinput/appearance-and-styling
148147

149148
1. The class that controls the Label is **.riLabel**. Change the font color to "Green":
150149

151-
````CSS
150+
````CSS
152151
.RadInput_Green .riLabel
153152
{
154153
color: Green;
@@ -158,5 +157,4 @@ See [Understanding the Skin CSS File]({%slug raddateinput/appearance-and-styling
158157
````
159158

160159

161-
162160
1. Run the application.

0 commit comments

Comments
 (0)