Ignore:
Timestamp:
07/30/22 23:57:30 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
ad40ec0
Parents:
5347491
Message:

styled professor page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Components/OpinionCard.style.js

    r5347491 rf5d4792  
    11import styled from "styled-components";
     2import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
    23
    34export const OpinionCard = styled.div`
    45  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
     13export const OpinionCardContent = styled.div`
     14  padding: 5px;
     15  transition: 0.5s;
     16  &:hover {
     17    background-color: seashell;
     18  }
     19  position: relative;
     20`;
     21
     22export const OpinionCardContentTitle = styled.p`
     23  font-weight: bold;
     24`;
     25
     26export const OpinionCardContentTime = styled.p`
     27  font-size: small;
     28  font-style: italic;
    629`;
    730
    831export 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;
    1334  margin-left: ${(props) => props.indent};
     35  padding: 10px;
     36  border-left: thick solid tan;
    1437`;
     38
     39export const OpinionReplyCardContent = styled.div`
     40  padding: 5px;
     41  transition: 0.5s;
     42  &:hover {
     43    background-color: seashell;
     44  }
     45  position: relative;
     46`;
     47
     48export const OpinionReplyCardContentTime = styled.p`
     49  font-size: small;
     50  font-style: italic;
     51`;
     52
     53export 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.