File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed
packages/create-next-app/templates Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 66
66
}
67
67
68
68
.grid {
69
- display : flex;
70
- align-items : center;
71
- justify-content : center;
72
- flex-wrap : wrap;
73
- max-width : 800px ;
69
+ display : grid;
70
+ align-items : stretch;
71
+ gap : 2rem ;
72
+ grid-template-columns : 1fr 1fr ;
73
+ width : 100% ;
74
+ max-width : 720px ;
74
75
}
75
76
76
77
.card {
77
- margin : 1rem ;
78
78
padding : 1.5rem ;
79
79
text-align : left;
80
80
color : inherit;
81
81
text-decoration : none;
82
82
border : 1px solid # eaeaea ;
83
83
border-radius : 10px ;
84
84
transition : color 0.15s ease, border-color 0.15s ease;
85
- max-width : 300px ;
86
85
}
87
86
88
87
.card : hover ,
110
109
111
110
@media (max-width : 600px ) {
112
111
.grid {
113
- width : 100% ;
114
- flex-direction : column;
112
+ grid-template-columns : 1fr ;
115
113
}
116
114
}
117
115
Original file line number Diff line number Diff line change 66
66
}
67
67
68
68
.grid {
69
- display : flex;
70
- align-items : center;
71
- justify-content : center;
72
- flex-wrap : wrap;
73
- max-width : 800px ;
69
+ display : grid;
70
+ align-items : stretch;
71
+ gap : 2rem ;
72
+ grid-template-columns : 1fr 1fr ;
73
+ width : 100% ;
74
+ max-width : 720px ;
74
75
}
75
76
76
77
.card {
77
- margin : 1rem ;
78
78
padding : 1.5rem ;
79
79
text-align : left;
80
80
color : inherit;
81
81
text-decoration : none;
82
82
border : 1px solid # eaeaea ;
83
83
border-radius : 10px ;
84
84
transition : color 0.15s ease, border-color 0.15s ease;
85
- max-width : 300px ;
86
85
}
87
86
88
87
.card : hover ,
110
109
111
110
@media (max-width : 600px ) {
112
111
.grid {
113
- width : 100% ;
114
- flex-direction : column;
112
+ grid-template-columns : 1fr ;
115
113
}
116
114
}
117
115
You can’t perform that action at this time.
0 commit comments