Skip to content

Commit

Permalink
Improve CSS, cleanup & split CSS to components
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed May 23, 2022
1 parent 4ad3b7f commit 29a270f
Show file tree
Hide file tree
Showing 13 changed files with 2,680 additions and 2,005 deletions.
2 changes: 1 addition & 1 deletion src/SearchBlock/SearchBlockView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SearchApp } from '@eeacms/search';
import { SearchBlockSchema } from './schema';
import { BodyClass } from '@plone/volto/helpers';

import '@elastic/react-search-ui-views/lib/styles/styles.css';
// import '@elastic/react-search-ui-views/lib/styles/styles.css';
import './less/styles.less';

/**
Expand Down
39 changes: 23 additions & 16 deletions src/SearchBlock/less/answersbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
max-width: @search-result-max-width;
margin-bottom: 3em;
clear: both;
// padding: 1em;
// margin-top: 3em;
// background-color: @sf-light-gray;

.ui.label {
float: right;
Expand Down Expand Up @@ -51,6 +48,7 @@

.three-dots-loader {
display: inline;

div {
display: inline !important;
}
Expand Down Expand Up @@ -85,6 +83,7 @@
.answer__primarylink {
margin: 1em 0;
font-size: 1em;

.result__source {
a {
font-weight: normal;
Expand Down Expand Up @@ -117,7 +116,6 @@
}

.answers__links {
// margin-top: 0.8rem;
font-size: small;

.primary a {
Expand All @@ -126,7 +124,6 @@

.answer__date {
display: inline-block;
// width: 7em;
padding-right: 0.5em;
margin-right: 0.3em;
text-align: right;
Expand All @@ -146,16 +143,9 @@

.ui.segment.answers-wrapper {
padding: 0;
// color: white;
// padding-right: 0px;
// padding-left: 0px;

border: none;
// border-top: 1px solid @sf-light-gray2;
// margin-bottom: 2em;
background: unset;
box-shadow: none;
// border-bottom: 1px solid #ccc;

.answers__bottom {
display: flex;
Expand Down Expand Up @@ -194,10 +184,27 @@
}
}
}
}
}

// .answer__text {
// font-size: normal;
// font-weight: bold;
// }
@keyframes progres {
0% {
width: 0%;
}

25% {
width: 50%;
}

50% {
width: 75%;
}

75% {
width: 85%;
}

100% {
width: 100%;
}
}
Loading

0 comments on commit 29a270f

Please sign in to comment.