source: reactapp/src/Components/Styled/OpinionCard.style.js

main
Last change on this file was c68150f, checked in by unknown <mlviktor23@…>, 21 months ago

left: moderation, oAuth, messaging

  • Property mode set to 100644
File size: 1.6 KB
Line 
1import styled from "styled-components";
2import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
4export const OpinionCard = styled.div`
5 background-color: papayawhip;
6 width: auto;
7 margin-top: 20px;
8 margin-bottom: 20px;
9 padding: 10px;
10 box-shadow: 2px 2px 10px #aaaaaa;
11`;
12
13export const OpinionCardContent = styled.div`
14 padding: 5px;
15 transition: 0.5s;
16 &:hover {
17 background-color: seashell;
18 }
19 position: relative;
20 overflow-wrap: break-word;
21`;
22
23export const OpinionCardContentTitle = styled.p`
24 font-weight: bold;
25`;
26
27export const OpinionCardContentTime = styled.p`
28 font-size: small;
29 font-style: italic;
30`;
31
32export const OpinionReplyCard = styled.div`
33 background-color: papayawhip;
34 width: auto;
35 margin-left: ${(props) => props.indent};
36 padding: 10px;
37 border-left: thick solid tan;
38`;
39
40export const OpinionReplyCardContent = styled.div`
41 padding: 5px;
42 transition: 0.5s;
43 &:hover {
44 background-color: seashell;
45 }
46 position: relative;
47`;
48
49export const OpinionReplyCardContentTime = styled.p`
50 font-size: small;
51 font-style: italic;
52`;
53
54export const StyledFontAwesomeIcon = styled(FontAwesomeIcon)`
55 color: ${(props) => props.color};
56 display: block;
57 position: absolute;
58 height: 20px;
59 top: 50%;
60 transform: translateY(-50%);
61 right: ${(props) => props.right};
62 transition: 0.5s;
63 &:hover {
64 opacity: 0.5;
65 cursor: pointer;
66 }
67`;
68
69export const VoteCount = styled.p`
70 color: darkgrey;
71 display: block;
72 position: absolute;
73 top: 80%;
74 transform: translateY(-50%);
75 right: ${(props) => props.right};
76 transition: 0.5s;
77`;
Note: See TracBrowser for help on using the repository browser.