File tree Expand file tree Collapse file tree 1 file changed +47
-44
lines changed
Expand file tree Collapse file tree 1 file changed +47
-44
lines changed Original file line number Diff line number Diff line change 66 margin-bottom : 0 ;
77}
88
9+ body ,
910h5 {
1011 margin : 0 ;
1112}
1718}
1819
1920.listContainer {
20- width : 360 px ;
21+ width : 100 % ;
2122}
2223
2324.listItem {
5455}
5556
5657.complexListContainer {
57- width : 360 px ;
58+ width : 100 % ;
5859 height : 180px ;
5960 border-top : 1px solid gray;
6061 border-bottom : 1px solid gray;
6162}
6263
63- /* The device with borders */
64- .smartphone {
65- position : relative;
66- width : 360px ;
67- height : 640px ;
68- margin : auto;
69- border : 16px black solid;
70- border-top-width : 60px ;
71- border-bottom-width : 60px ;
72- border-radius : 36px ;
73- }
64+ @media screen and (min-device-width : 1200px ) {
65+ /* The device with borders */
66+ .smartphone {
67+ position : relative;
68+ width : 360px ;
69+ height : 640px ;
70+ margin : auto;
71+ border : 16px black solid;
72+ border-top-width : 60px ;
73+ border-bottom-width : 60px ;
74+ border-radius : 36px ;
75+ }
7476
75- /* The horizontal line on the top of the device */
76- .smartphone ::before {
77- content : '' ;
78- display : block;
79- width : 60px ;
80- height : 5px ;
81- position : absolute;
82- top : -30px ;
83- left : 50% ;
84- transform : translate (-50% , -50% );
85- background : # 333 ;
86- border-radius : 10px ;
87- }
77+ /* The horizontal line on the top of the device */
78+ .smartphone ::before {
79+ content : '' ;
80+ display : block;
81+ width : 60px ;
82+ height : 5px ;
83+ position : absolute;
84+ top : -30px ;
85+ left : 50% ;
86+ transform : translate (-50% , -50% );
87+ background : # 333 ;
88+ border-radius : 10px ;
89+ }
8890
89- /* The circle on the bottom of the device */
90- .smartphone ::after {
91- content : '' ;
92- display : block;
93- width : 35px ;
94- height : 35px ;
95- position : absolute;
96- left : 50% ;
97- bottom : -65px ;
98- transform : translate (-50% , -50% );
99- background : # 333 ;
100- border-radius : 50% ;
101- }
91+ /* The circle on the bottom of the device */
92+ .smartphone ::after {
93+ content : '' ;
94+ display : block;
95+ width : 35px ;
96+ height : 35px ;
97+ position : absolute;
98+ left : 50% ;
99+ bottom : -65px ;
100+ transform : translate (-50% , -50% );
101+ background : # 333 ;
102+ border-radius : 50% ;
103+ }
102104
103- /* The screen (or content) of the device */
104- .smartphone .content {
105- width : 360px ;
106- height : 640px ;
107- background : white;
105+ /* The screen (or content) of the device */
106+ .smartphone .content {
107+ width : 360px ;
108+ height : 640px ;
109+ background : white;
110+ }
108111}
You can’t perform that action at this time.
0 commit comments