Changeset f5d4792 for reactapp/src/Components/OpinionCard.style.js
- Timestamp:
- 07/30/22 23:57:30 (2 years ago)
- Branches:
- main
- Children:
- ad40ec0
- Parents:
- 5347491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Components/OpinionCard.style.js
r5347491 rf5d4792 1 1 import styled from "styled-components"; 2 import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; 2 3 3 4 export const OpinionCard = styled.div` 4 5 background-color: papayawhip; 5 width: fit-content; 6 width: auto; 7 margin-top: 20px; 8 margin-bottom: 20px; 9 padding: 10px; 10 border: 1px solid black; 11 `; 12 13 export const OpinionCardContent = styled.div` 14 padding: 5px; 15 transition: 0.5s; 16 &:hover { 17 background-color: seashell; 18 } 19 position: relative; 20 `; 21 22 export const OpinionCardContentTitle = styled.p` 23 font-weight: bold; 24 `; 25 26 export const OpinionCardContentTime = styled.p` 27 font-size: small; 28 font-style: italic; 6 29 `; 7 30 8 31 export const OpinionReplyCard = styled.div` 9 background-color: lavender; 10 width: fit-content; 11 margin-top: 7px; 12 margin-bottom: 7px; 32 background-color: papayawhip; 33 width: auto; 13 34 margin-left: ${(props) => props.indent}; 35 padding: 10px; 36 border-left: thick solid tan; 14 37 `; 38 39 export const OpinionReplyCardContent = styled.div` 40 padding: 5px; 41 transition: 0.5s; 42 &:hover { 43 background-color: seashell; 44 } 45 position: relative; 46 `; 47 48 export const OpinionReplyCardContentTime = styled.p` 49 font-size: small; 50 font-style: italic; 51 `; 52 53 export const StyledFontAwesomeIcon = styled(FontAwesomeIcon)` 54 color: darkgrey; 55 display: block; 56 position: absolute; 57 top: 50%; 58 transform: translateY(-50%); 59 right: ${(props) => props.indent}; 60 `;
Note:
See TracChangeset
for help on using the changeset viewer.