Skip to content

Commit a0829a4

Browse files
committed
Use content box for CSS exercises unless specified
1 parent cc7aba5 commit a0829a4

File tree

2 files changed

+13
-15
lines changed
  • app/helpers/react_components/bootcamp
  • bootcamp_content/projects/positioned-patterns/exercises/positioned-namibia

2 files changed

+13
-15
lines changed

app/helpers/react_components/bootcamp/css_exercise.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ def readonly_ranges
7575

7676
# rubocop:disable Layout/LineLength
7777
def normalize_css = "
78+
* {box-sizing:content-box}
7879
button,hr,inputp{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body, .--jiki-faux-body{margin:0}details,main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}
7980
h1,h2,h3,h4,h5,h6,ul,ol,li,p { margin: 0; padding: 0; }
80-
body, .--jiki-faux-body {
81-
font-size: 14px; line-height: 1.3;
82-
-webkit-font-smoothing: antialiased;
83-
}
81+
body, .--jiki-faux-body { font-size: 14px; line-height: 1.3; -webkit-font-smoothing: antialiased; }
8482
"
8583
# rubocop:enable Layout/LineLength
8684

bootcamp_content/projects/positioned-patterns/exercises/positioned-namibia/example.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,37 +49,37 @@
4949
left: 50px;
5050
transform: translateX(-50%);
5151
}
52-
img:nth-child(2) {
52+
img:nth-of-type(2) {
5353
transform: translateX(-50%) rotate(30deg);
5454
}
55-
img:nth-child(3) {
55+
img:nth-of-type(3) {
5656
transform: translateX(-50%) rotate(60deg);
5757
}
58-
img:nth-child(4) {
58+
img:nth-of-type(4) {
5959
transform: translateX(-50%) rotate(90deg);
6060
}
61-
img:nth-child(5) {
61+
img:nth-of-type(5) {
6262
transform: translateX(-50%) rotate(120deg);
6363
}
64-
img:nth-child(6) {
64+
img:nth-of-type(6) {
6565
transform: translateX(-50%) rotate(150deg);
6666
}
67-
img:nth-child(7) {
67+
img:nth-of-type(7) {
6868
transform: translateX(-50%) rotate(180deg);
6969
}
70-
img:nth-child(8) {
70+
img:nth-of-type(8) {
7171
transform: translateX(-50%) rotate(210deg);
7272
}
73-
img:nth-child(9) {
73+
img:nth-of-type(9) {
7474
transform: translateX(-50%) rotate(240deg);
7575
}
76-
img:nth-child(10) {
76+
img:nth-of-type(10) {
7777
transform: translateX(-50%) rotate(270deg);
7878
}
79-
img:nth-child(11) {
79+
img:nth-of-type(11) {
8080
transform: translateX(-50%) rotate(300deg);
8181
}
82-
img:nth-child(12) {
82+
img:nth-of-type(12) {
8383
transform: translateX(-50%) rotate(330deg);
8484
}
8585
}

0 commit comments

Comments
 (0)