Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 9 additions & 25 deletions src/components/CardAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,15 @@ import styled from "styled-components";
import PropTypes from "prop-types";

const Container = styled.div`
width: 292px;
margin: 2%;
display: flex;
width: 100%;
flex-direction: column;
font-size: var(--text-prettysmall);
padding: 1% 2%;
padding: 3% 6%;
border-radius: 10px;
background-color: #fff;
background-color: var(--white);
border: 1px solid #827f7f;
flex: 0 0 auto;

@media (max-width: 800px) {
width: 90%;
margin: 5%;
padding: 1% 5%;
display: flex;
flex: 0 0 auto;
flex-direction: column;
font-size: var(--text-prettysmall);
border-radius: 10px;
background-color: var(--white);
}
`;

const Heading = styled.h1`
Expand Down Expand Up @@ -82,19 +69,16 @@ const ColorfulButton = styled.button`
:disabled {
pointer-events: none;
}

@media (max-width: 800px) {
display: flex;
width: 100%;
justify-content: center;
margin: 2%;
}
`;

const Image = styled.img`
width: 292px;
margin: auto auto 6%;
width: 100%;
text-align: center;
margin-bottom: 6%;

@media screen and (max-width: 768px) {
width: 80%;
}
`;

const CardAction = props => {
Expand Down
12 changes: 4 additions & 8 deletions src/containers/ActionCardContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ import CONF from "../config";
const config = CONF[CONF.selectedNetwork];

const Container = styled.div`
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
display: grid;
grid-template-columns: repeat(auto-fit,minmax(17.125rem,1fr));
grid-auto-rows: 16.75rem;
width: 100%;
grid-gap: 1.875rem;
padding: 2% 4% 0 4%;
overflow-x: scroll;
overflow-y: hidden;
flex-wrap: wrap;
-webkit-overflow-scrolling: touch;
`;

class ActionCardContainer extends React.Component {
Expand Down