aboutsummaryrefslogblamecommitdiffstats
path: root/alphabetlearning/static/css/project.css
blob: 102d9c9314936f3a3c90f8a63f46d8293fb0ecac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
       

                                         
                         
 







                                                           


                       


                                         

                                

                              


















                                                                                                                
 



                   





                        




                        

 




                           
                                             









                                    
                            
                     



                       
   
                              




                     

 












                                   



                                                                
                           

 
                
                            



                       
                        



                                   

 




























                                   



                       
                       









                            
 
 










                                                                                                 

                                






                                   















































                                                                                    

                     
                     

 


                     

 

                            

                                  


                          
                 
                          
                 
                                      

 


                                

                                                       


 




                                
 












                                   








                                                        


                      
 
 



















                                  


 
:root {
    /* --link-colour: rgb(64, 21, 92); */
    --link-colour: darkslategray;
    --dark-gray: #4c4c4c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
}
.section-title {
    position: relative;
    width: max-content;
    font-family: "Noto Sans", sans-serif;
    font-size: 2.2em;
    font-optical-sizing: auto;
    font-weight: 700; /* bold */
    font-style: normal;
    margin: 1.2em 0.5em 1.6em;
    font-variation-settings:
    "wdth" 100;
}

.section-title::after {
    content: '';
    background: linear-gradient(to right, #e81416, #ffa500, #faeb36, #79c314, #487de7, #4b369d, #70369d, white);
    border-radius: 100px;
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 100ms;
}

.section-title:hover::after {
    width: 0;
}


h1, h2, h3 {
    color: #3d3d3d;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.bulk-text p {
    padding: 10px;
    margin-bottom: 30px;
    line-height: 1.3em;
    text-align: center;
}

html, body {
    height: 100%;
}

header, nav, main, footer {
    padding: 2px calc((100% - 1200px) / 2) 0;
}

main {
    margin-top: 54px;
    margin-bottom: 54px;
    min-height: calc(100vh - 345px);
    overflow: auto;
}

body {
    background-color: wheat;
    line-height: 1.5;
    color: #34495E;
    overflow-y: scroll;
}

a {
    color: var(--link-colour);
}

nav > div > ul > li {
    display: inline;
    padding: 1px 2px;
}

#resourceTabs {
    display: flex;
    margin: 10px auto;
    justify-content: space-between;
    border-bottom-style: dotted;
    border-bottom-width: 2px;
    padding: 10px;
}

#resourceTabs > li {
    display: inline;
}

.featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 0em 0.5em 0em;
}

.featured-card {
    background-color: white;
    border: solid;
    border-width: 2px;
    border-radius: 5px;
    padding: 10px;
    /* height: 560px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.card-title-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
}

.card-metadata-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    margin: 10px auto;
    font-weight: bold;
    color: var(--dark-gray)
    position: relative;
}

.card-category-badge {
    padding: 2px 10px;
    font-size: 1.0em;
    color: white;
    border: 1px;
    border-radius: 4px;
}

.card-metadata-row ~ hr {
    border: 1px solid lightgray;
}


.featured-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    width: 100%;
}

.featured-card-description {
    margin: 10px 0px;
    line-height: 1.1;
    font-size: 0.9em;
}

/* https://www.youtube.com/watch?v=3T0gjtXRNC0&list=PL-u3LA3IYWVGIf7aLa6uAv5D6DACtINqJ&index=3 */
.standard-grid {
    margin-top: 30px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 0em 0.5em 0em;
    gap: 13px;
    justify-content: center;
}

.standard-card {
    background-color: white;
    border: 2px solid lightgray;
    border-radius: 5px;
    padding: 10px;
    /* height: 560px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

/* for animated borders, check https://www.youtube.com/watch?v=ezP4kbOvs_E */
/*@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.standard-card::after, .standard-card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), transparent 90%, darkgreen);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 3px;
    border-radius: 10px;
    animation: 3s spin linear infinite;
}

/*
@keyframes spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
} */

/*
.standard-card::before {
    filter: blur(1.1rem);
    opacity: 0.2;
} */

.standard-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 3px;
}

.standard-card-description {
    margin: 10px 0px;
    line-height: 1.1;
    font-size: 0.9em;
}

.card-credit {
    color: green;
    font-size: 0.9em;
}

.add-to-basket-button {
    background-color: green;
    border: 5px solid transparent;
    margin: 10px 0px;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    color: white;
    display: inline-block;
    padding: 5px;
    transition: background-color 0.5s;
}

.add-to-basket-button:hover {
    background-color: darkgreen;
    color: white;
    /* border: 5px solid yellow; */
    box-shadow: 0.2em 0.2em 1em rgb(109 109 109 / 60%);
}


.add-to-basket-button-disabled {
    background-color: lightgray;
    color: black;
    padding: 3px;
}

.admin-box {
    display: flex;
    background-color: lightgray;
    flex-direction: column;
    justify-content: space-between;
    border-style: solid;
    border-color: black;
    border-width: 2px;
    border-radius: 4px;
    padding: 8px;
    margin: 20px auto;
}

/* Change the colour of the box shadow */
.my-card-shadow-sm {
  box-shadow: 0 0.25rem 0.5rem rgba(100, 100, 100, 0.1);
}

.my-card-shadow-lg {
  box-shadow: 7px 7px 7px rgba(100, 100, 100, 0.5);
}

.card-title a {
    font-size: 1.2rem;
}


.new-carousel-wrapper {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
    width: 80%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.pdf-card {
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 20px 30px;
    flex-shrink: 0;
    width: 80%;
    background-color: white;
    border-radius: 14px;
    text-align: center;
}