Skip to content

Commit

Permalink
Merge pull request #105 from arielfayol37/polishing
Browse files Browse the repository at this point in the history
Polishing
  • Loading branch information
arielfayol37 authored Nov 28, 2023
2 parents 177820b + ee41d6b commit 9371bb3
Show file tree
Hide file tree
Showing 9 changed files with 290 additions and 188 deletions.
6 changes: 0 additions & 6 deletions astros/templates/astros/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,5 @@
window.addEventListener('load', ()=>{
loader.classList.add('hide');
});
document.querySelectorAll('a').forEach(function(link) {
link.addEventListener('click', function(e) {
// Your logic here
loader.classList.remove('hide');
});
});
</script>
</html>
Binary file added deimos/static/deimos/images/ai.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions deimos/templates/deimos/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,5 @@
window.addEventListener('load', ()=>{
loader.classList.add('hide');
});
document.querySelectorAll('a').forEach(function(link) {
link.addEventListener('click', function(e) {
// Your logic here
loader.classList.remove('hide');
});
});
</script>
</html>
32 changes: 23 additions & 9 deletions phobos/static/phobos/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,17 @@ div.image-container img.course-image {


/* -----------------Style for phobos:create_question.html--------- */
.added-vars {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
gap: 20px;
}

.added-vars > * {
width: 30%;
}
.mp-input-div {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -458,10 +469,7 @@ div.image-container img.course-image {
.mp-inputs input{
width:49% !important;
}
.add-var-section {
position:absolute;
right: 2%;
transform: translateY(-100%);
.add-var-section {
z-index:4;
}
.add-var-section button {
Expand All @@ -478,9 +486,6 @@ div.image-container img.course-image {
flex-direction: column;
justify-content: center;
align-items: center;
height: 0;
width: 0;
opacity: 0;
transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out, width 0.5s ease;
}
.type-selection input[type="radio"]:checked::after {
Expand Down Expand Up @@ -560,6 +565,15 @@ textarea {
resize:initial;
overflow: initial;
}
/*
TODO:
set .formatted-answer-option.image {
height: 300px;
}
and set max-height of .image-in-formatted {
max-height: 70%;
}
*/
.formatted-answer-option.question-view {
display: flex;
flex-direction: row;
Expand All @@ -575,8 +589,8 @@ textarea {
}

.image-in-formatted {
max-width: 70%; /* Limit image width to 100% of parent div's width */
max-height: 300px; /* Limit image height to 100% of parent div's height */
max-width: 70%;
max-height: 300px;
display: block; /* Remove any extra space below the image */
border-radius: 10px;
}
Expand Down
Loading

0 comments on commit 9371bb3

Please sign in to comment.