diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000000000000000000000000000000000000..48e341a0954d5f8c2accf3a6731be28e5bb9c0de --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/readme.md b/readme.md index 21810901d7d95765804b995798481c853d3e25f8..6f114bd49cfaf01a06b1b960dca9345a9e70d118 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ The first time it will geerate the Loopback server. The second time it will generate the angular project -## Installing Angular Material +## Installing Angular Material (if you want to use material) [HowTo](https://material.angular.io/guide/getting-started) diff --git a/webapp/package-lock.json b/webapp/package-lock.json index 3560cd7890a7c8708a6c071a3073c7b543827a90..676242a6aa2928556a7a34029fa3e23f7d4caf3f 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -209,14 +209,6 @@ "integrity": "sha512-aaLnGpW9NBDkG0JYqUeGc+al1Jd1CY9yrs3mew53x5nByetQbIdZwpYm1hnSTw7LBEZBxfHTMw5EZD2YYTDmJw==", "dev": true }, - "@angular/material": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/@angular/material/-/material-5.2.4.tgz", - "integrity": "sha1-noI3mDJCg9I+qDkVb6xby3NEPVU=", - "requires": { - "tslib": "1.9.0" - } - }, "@angular/platform-browser": { "version": "5.2.9", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz", diff --git a/webapp/package.json b/webapp/package.json index 7701183d52d59a3d31fa6b7165d6bfca5104ecb7..f0c416854b688153c9478a291bfd4a162b27904c 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -27,7 +27,6 @@ "@angular/core": "^5.2.0", "@angular/forms": "^5.2.0", "@angular/http": "^5.2.0", - "@angular/material": "^5.2.4", "@angular/platform-browser": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0", "@angular/router": "^5.2.0", diff --git a/webapp/src/app/app.component.spec.ts b/webapp/src/app/app.component.spec.ts index 45d3ffa22a364ea27a576d3ccc408e953e0894e3..a6ded0a442a917351b5f440482cb962fac5d3773 100644 --- a/webapp/src/app/app.component.spec.ts +++ b/webapp/src/app/app.component.spec.ts @@ -1,6 +1,5 @@ import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; -import { MatToolbarModule } from '@angular/material'; import { MockComponent } from 'ng2-mock-component'; describe('AppComponent', () => { @@ -12,9 +11,7 @@ describe('AppComponent', () => { MockComponent({ selector: 'app-main' }), MockComponent({ selector: 'app-footer' }) ], - imports: [ - MatToolbarModule - ] + imports: [] }).compileComponents(); })); it('should create the app', async(() => { diff --git a/webapp/src/app/app.material.module.ts b/webapp/src/app/app.material.module.ts deleted file mode 100644 index 10e7c4afc849a0fee5dda436dba0bc787bc83beb..0000000000000000000000000000000000000000 --- a/webapp/src/app/app.material.module.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { NgModule } from '@angular/core'; - -import { - MatAutocompleteModule, MatCardModule, MatCheckboxModule, MatDatepickerModule, - MatNativeDateModule, MatRadioModule, MatSelectModule, MatExpansionModule -} from '@angular/material'; -import { MatButtonModule } from '@angular/material/button'; -import { MatButtonToggleModule } from '@angular/material/button-toggle'; -import { MatSidenavModule } from '@angular/material/sidenav'; -import { MatTableModule } from '@angular/material/table'; -import { MatPaginatorModule } from '@angular/material/paginator'; -import { MatSortModule } from '@angular/material/sort'; -import { MatToolbarModule } from '@angular/material/toolbar'; -import { MatMenuModule } from '@angular/material/menu'; -import { MatIconModule } from '@angular/material/icon'; -import { MatListModule } from '@angular/material/list'; -import { MatInputModule } from '@angular/material/input'; -import { MatFormFieldModule } from '@angular/material/form-field'; -import {MatPaginatorIntl} from '@angular/material'; -import { I18nPaginatorIntl } from '../i18n/i18n-paginator-intl'; -import {MatProgressBarModule} from '@angular/material/progress-bar'; - - -@NgModule({ - imports: [ - MatAutocompleteModule, - MatButtonModule, - MatButtonToggleModule, - MatCheckboxModule, - MatDatepickerModule, - MatNativeDateModule, - MatToolbarModule, - MatTableModule, - MatPaginatorModule, - MatSortModule, - MatFormFieldModule, - MatSidenavModule, - MatInputModule, - MatMenuModule, - MatIconModule, - MatListModule, - MatCardModule, - MatSelectModule, - MatRadioModule, - MatExpansionModule, - MatProgressBarModule], - exports: [ - MatAutocompleteModule, - MatButtonModule, - MatButtonToggleModule, - MatCheckboxModule, - MatDatepickerModule, - MatNativeDateModule, - MatToolbarModule, - MatTableModule, - MatPaginatorModule, - MatSortModule, - MatFormFieldModule, - MatSidenavModule, - MatInputModule, - MatMenuModule, - MatIconModule, - MatListModule, - MatCardModule, - MatSelectModule, - MatRadioModule, - MatExpansionModule, - MatProgressBarModule], - providers: [ - { provide: MatPaginatorIntl, useValue: I18nPaginatorIntl() } - ] -}) -export class AppMaterialModule { -} diff --git a/webapp/src/app/app.module.ts b/webapp/src/app/app.module.ts index 559a7f694355b69e3751412291082d0126ad42d5..2c46a182c650a3cac1be113d6af53fc9f418b668 100644 --- a/webapp/src/app/app.module.ts +++ b/webapp/src/app/app.module.ts @@ -3,8 +3,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; -import { AppMaterialModule } from './app.material.module'; - import { AppComponent } from './app.component'; import { AppRoutingModule } from './app-routing.module'; import { CoreModule } from './core/core.module'; @@ -20,7 +18,6 @@ import { EditorialisationModule } from './editorialisation/editorialisation.modu BrowserModule, BrowserAnimationsModule, HttpClientModule, - AppMaterialModule, CoreModule, GeosourceModule, EditorialisationModule, diff --git a/webapp/src/app/app.routing.spec.ts b/webapp/src/app/app.routing.spec.ts index 38f6dd73ca1c7fe886a1226fc483001ebc00157b..8debd10f408a42ecc5a2946b509cc8ec3a69f16e 100644 --- a/webapp/src/app/app.routing.spec.ts +++ b/webapp/src/app/app.routing.spec.ts @@ -2,7 +2,6 @@ import { TestBed, fakeAsync, tick, async } from '@angular/core/testing'; import { Router, Routes } from '@angular/router'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; -import { AppMaterialModule } from './app.material.module'; import { FormsModule } from '@angular/forms'; // importing routes from the different routing files @@ -35,7 +34,6 @@ describe('App routing', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ - AppMaterialModule, FormsModule, SharedModule, HttpClientModule, diff --git a/webapp/src/app/core/components/header/header.component.spec.ts b/webapp/src/app/core/components/header/header.component.spec.ts index ad58256cfc4c499dc8826567c15140314e94bbbb..eebdc9fc0a1645cf0c27dc9156716a13070c5717 100644 --- a/webapp/src/app/core/components/header/header.component.spec.ts +++ b/webapp/src/app/core/components/header/header.component.spec.ts @@ -3,8 +3,6 @@ import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { RouterTestingModule } from '@angular/router/testing'; -import { MatToolbarModule } from '@angular/material'; -import { AppMaterialModule } from '../../../app.material.module'; import { FormsModule } from '@angular/forms'; import { Routes } from '@angular/router'; import { Location } from '@angular/common'; @@ -44,8 +42,6 @@ describe('HeaderComponent', () => { ], imports: [ FormsModule, - AppMaterialModule, - MatToolbarModule, SharedModule, RouterTestingModule.withRoutes(routes), ], diff --git a/webapp/src/app/core/core.module.ts b/webapp/src/app/core/core.module.ts index b401065cd0030760185b61420003f2acd4a95318..8f21fa2f3f625a53b5ee5466cd9225ca2065cce6 100644 --- a/webapp/src/app/core/core.module.ts +++ b/webapp/src/app/core/core.module.ts @@ -3,13 +3,11 @@ import { CommonModule } from '@angular/common'; import { CoreRoutingModule } from './core-routing.module'; import { CoreComponents, MainComponent } from './components'; -import { AppMaterialModule } from '../app.material.module'; @NgModule({ imports: [ CommonModule, - CoreRoutingModule, - AppMaterialModule + CoreRoutingModule ], declarations: [CoreComponents], exports: [MainComponent] diff --git a/webapp/src/app/editorialisation/components/home/home.component.html b/webapp/src/app/editorialisation/components/home/home.component.html index c6a272f240a8da81b31f99ff76d5675f24b1c9fa..ab285d4b9930eb10b8469ee678885037c5fc9f1c 100644 --- a/webapp/src/app/editorialisation/components/home/home.component.html +++ b/webapp/src/app/editorialisation/components/home/home.component.html @@ -1,10 +1,10 @@ -<section class="section"> +<section class="section wordpress-component"> <div class="container"> <app-wordpress-posts-list [posts]="posts"></app-wordpress-posts-list> </div> </section> -<section class="video-post"> +<section class="video-post wordpress-component"> <div class="container"> <div [innerHTML]='videoPost.content | keepHtml'></div> </div> diff --git a/webapp/src/app/editorialisation/components/wordpress-page/wordpress-page.component.html b/webapp/src/app/editorialisation/components/wordpress-page/wordpress-page.component.html index 4b04a1e8ed814c08067ebaa93570ed872b409d59..3c8909a0f44d5005f12eef774ba061ce3c6e5cb7 100644 --- a/webapp/src/app/editorialisation/components/wordpress-page/wordpress-page.component.html +++ b/webapp/src/app/editorialisation/components/wordpress-page/wordpress-page.component.html @@ -1,9 +1,15 @@ -<div class="container" *ngIf="page"> - <h1> - {{ page.title }} - </h1> - <i>({{ page.status}})</i> - <div> - <p [innerHtml]="page.content | keepHtml"></p> +<div class="section wordpress-component"> + <div class="container" *ngIf="page"> + <div class="columns"> + <div class="column"> + <h1> + {{ page.title }} + </h1> + <i>({{ page.status}})</i> + <div> + <p [innerHtml]="page.content | keepHtml"></p> + </div> + </div> </div> -</div> + </div> +</div> \ No newline at end of file diff --git a/webapp/src/app/editorialisation/components/wordpress-post-detail/wordpress-post-detail.component.html b/webapp/src/app/editorialisation/components/wordpress-post-detail/wordpress-post-detail.component.html index 47efdc466d1f57afbd5f5c6ae24c87735f88469b..0c4cf544b070374f59b4e27d63a44824281f57b3 100644 --- a/webapp/src/app/editorialisation/components/wordpress-post-detail/wordpress-post-detail.component.html +++ b/webapp/src/app/editorialisation/components/wordpress-post-detail/wordpress-post-detail.component.html @@ -1,20 +1,24 @@ <ng-container *ngIf="post"> - <div class="container"> - <div style="text-align: center;"> - <h1 [innerHTML]="post.title"> - </h1> + <div class="section wordpress-component"> + <div class="container"> + <div class="columns"> + <div class="column"> + <div style="text-align: center;"> + <h1 [innerHTML]="post.title"> + </h1> + <section> + <span>Mise à jour - {{ post.date_timestamp | date: 'dd/MM/yyyy' }}</span> + <p> + <img src="{{post.mediaUrl}}"> + </p> + </section> + </div> + <section> - <span>Mise à jour - {{ post.date_timestamp | date: 'dd/MM/yyyy' }}</span> - <p> - <img src="{{post.mediaUrl}}"> - </p> + <p [innerHTML]="post.content | keepHtml"></p> </section> + </div> + </div> </div> - - <section> - <p [innerHTML]="post.content | keepHtml"></p> - </section> </div> - - -</ng-container> +</ng-container> \ No newline at end of file diff --git a/webapp/src/app/geosource/components/filter-list/filter-detail/filter-detail.component.spec.ts b/webapp/src/app/geosource/components/filter-list/filter-detail/filter-detail.component.spec.ts index d17a7ede3ed37dc72d7272d338ac721d63350ac3..a197127da8edd707b603ecbedbfcbfb43b9e5667 100644 --- a/webapp/src/app/geosource/components/filter-list/filter-detail/filter-detail.component.spec.ts +++ b/webapp/src/app/geosource/components/filter-list/filter-detail/filter-detail.component.spec.ts @@ -1,7 +1,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FilterDetailComponent } from './filter-detail.component'; -import { MatCardModule } from '@angular/material'; import { MetadataService, ElasticsearchService } from '../../../services'; import { HttpClientModule } from '@angular/common/http'; import { FilterListComponent } from '../..'; @@ -18,7 +17,6 @@ describe('FilterDetailComponent', () => { FilterDetailComponent ], imports: [ - MatCardModule, HttpClientModule ], providers: [ diff --git a/webapp/src/app/geosource/components/filter-list/filter-list.component.spec.ts b/webapp/src/app/geosource/components/filter-list/filter-list.component.spec.ts index e8076c339f1a957edc3c7770489da5e92d9e77a0..25548b73065cbddf6b0cb08fb018c1ac6b2cb648 100644 --- a/webapp/src/app/geosource/components/filter-list/filter-list.component.spec.ts +++ b/webapp/src/app/geosource/components/filter-list/filter-list.component.spec.ts @@ -2,7 +2,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FilterListComponent } from './filter-list.component'; import { FilterDetailComponent } from './filter-detail/filter-detail.component'; -import { MatCardModule } from '@angular/material'; import { MetadataService, ElasticsearchService } from '../../services'; import { HttpClientModule } from '@angular/common/http'; @@ -17,7 +16,6 @@ describe('FilterListComponent', () => { FilterDetailComponent ], imports: [ - MatCardModule, HttpClientModule ], providers: [ diff --git a/webapp/src/app/geosource/components/index.ts b/webapp/src/app/geosource/components/index.ts index 1652c1c8ba611043d64bb398700efde28429d315..ac6b444dca57c051503d04c81d8627622d997dee 100644 --- a/webapp/src/app/geosource/components/index.ts +++ b/webapp/src/app/geosource/components/index.ts @@ -5,7 +5,6 @@ import { ResearchComponent } from './research/research.component'; import { SortComponent } from './sort/sort.component'; import { FilterListComponent } from './filter-list/filter-list.component'; import { FilterDetailComponent } from './filter-list/filter-detail/filter-detail.component'; -import { SuggestionComponent } from './suggestion/suggestion.component'; export * from './metadata-detail/metadata-detail.component'; export * from './metadata-list/metadata-list.component'; @@ -13,7 +12,6 @@ export * from './filter-list/filter-list.component'; export * from './search-bar/search-bar.component'; export * from './research/research.component'; export * from './sort/sort.component'; -export * from './suggestion/suggestion.component'; export const GeosourceComponents = [ MetadataDetailComponent, @@ -22,6 +20,5 @@ export const GeosourceComponents = [ ResearchComponent, SortComponent, FilterListComponent, - FilterDetailComponent, - SuggestionComponent + FilterDetailComponent ]; diff --git a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.html b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.html index 99f2a6361676b02670a625427935af7340926ac8..78a6fe9c27d21ed22ff59f78d0738efd386bcbe8 100644 --- a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.html +++ b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.html @@ -1,37 +1,51 @@ <ng-container *ngIf="metadata"> - <div class="container"> - <div class="row"> - - <div class="col-md-8"> - <mat-card> + <div class="columns"> + <div class="column is-8"> + <div class="card"> + <div class="card-content"> <h2> {{ metadata.title }} </h2> <p>{{ metadata.abstract }}</p> <h5 i18n="@@global.keywords">Keywords</h5> <span *ngIf="metadata.keyword"> {{metadata.keyword.join(", ")}} </span> - </mat-card> + </div> </div> - <div class="col-md-4"> - <mat-card> + </div> + <div class="column is-4"> + <div class="card"> + <div class="card-content"> <strong i18n="@@global.information">Information</strong> <p *ngIf="metadata.contact"> - <mat-icon>perm_identity</mat-icon> {{ metadata.contact[0].organization }}</p> + <span class="icon"> + <i class="far fa-user"></i> + </span> + {{ metadata.contact[0].organization }}</p> <p *ngIf="metadata.uri"> - <mat-icon>copyright</mat-icon> {{ metadata.use_limitation[0] }}</p> + <span class="icon"> + <i class="far fa-copyright"></i> + </span> + {{ metadata.use_limitation[0] }}</p> <p *ngIf="metadata.date_publication"> - <mat-icon>update</mat-icon> {{ metadata.date_publication[0] | date: 'dd LLL yyyy'}} </p> + <span class="icon"> + <i class="far fa-clock"></i> + </span> + {{ metadata.date_publication[0] | date: 'dd LLL yyyy'}} </p> <p *ngFor="let topic of metadata.getCategories()"> - <mat-icon>brightness_2</mat-icon> + <!-- <span class="icon"> + <i class="fa fa-arrow-up"></i> + </span> --> <span class="category">{{ topic}} </span> </p> - </mat-card> + </div> </div> </div> + </div> - <div class="row"> - <div class="col-md-8"> - <mat-card> + <div class="columns"> + <div class="column is-8"> + <div class="card"> + <div class="card-content"> <strong> Télécharger les ressources </strong> - <mat-expansion-panel *ngFor="let uri of metadata.uri" [hideToggle]=true> + <!-- <mat-expansion-panel *ngFor="let uri of metadata.uri" [hideToggle]=true> <mat-expansion-panel-header> <mat-panel-title> {{ uri.description }} @@ -41,12 +55,10 @@ <strong>URL</strong> <p class="url-download">{{ uri.url }}</p> </div> - </mat-expansion-panel> - </mat-card> + </mat-expansion-panel> --> + </div> </div> - </div> </div> - </ng-container> \ No newline at end of file diff --git a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.scss b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.scss index b57f1caf9f7c308789333220c8354fdebe1d3ad3..d698c7f53255d3c247b8ccf33a8d775893b46d7f 100644 --- a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.scss +++ b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.scss @@ -2,22 +2,12 @@ margin: 5px 0; } -.mat-icon { - vertical-align: middle; -} - .category { background-color: black; color: white; padding: 2px; } -.mat-expansion-panel { - margin: 15px 0; -} -.mat-expansion-panel-header { - background-color: #F4F4F4; -} .file-state { background-color: green; } diff --git a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.spec.ts b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.spec.ts index 66b48c0918a41bd9d976ded15f84777e9e6f3930..719c5a09de44affe2fae94855d2856575cf2664e 100644 --- a/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.spec.ts +++ b/webapp/src/app/geosource/components/metadata-detail/metadata-detail.component.spec.ts @@ -5,7 +5,6 @@ import { Observable } from 'rxjs/Observable'; import { MetadataDetailComponent } from './metadata-detail.component'; import { MetadataService} from '../../services/metadata.service'; import { Metadata } from '../../models'; -import { MatIconModule, MatListModule } from '@angular/material'; import { RouterTestingModule } from '@angular/router/testing'; import 'rxjs/add/observable/of'; @@ -66,7 +65,6 @@ describe('MetadataDetailComponent', () => { MetadataDetailComponent ], imports: [ - MatIconModule, RouterTestingModule, ], schemas: [ diff --git a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.html b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.html index 9cc454b8cfafa30bb35375adad76007e6402893b..a41cdd18b8007f923b25986b24c8752258e19e5a 100644 --- a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.html +++ b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.html @@ -1,12 +1,15 @@ <div class="columns is-mobile is-multiline"> - <div class="column is-9-touch is-3-desktop has-text-danger" i18n="@@global.resultsFound"> + <div class="column is-9-mobile is-3-tablet has-text-danger" i18n="@@global.resultsFound"> {{ paginator.length }} results found </div> - <div class="column is-3 is-hidden-tablet has-text-right"> + <div class="column is-3-mobile is-hidden-tablet has-text-right"> <a (click)="toggleFilters()">Filtrer</a> </div> - <div class="column is-6 "> - <app-suggestion></app-suggestion> + <div class="column is-12-mobile is-9-tablet" *ngIf="displaySuggestion === true"> + <span *ngIf="suggestion.text"> + <span i18n="@@global.youMeant">Did you mean: </span> + <span class="suggestion" [innerHTML]="suggestion.highlighted" (click)="useSuggestion()"></span> + </span> </div> </div> @@ -21,10 +24,10 @@ </div> <div class="column is-9"> <div *ngFor="let dataset of datasetList" class="card"> - <div class="columns"> - <div class="column is-9"> - <header class="header"> - <p class="card-header-title is-size-4"> + <div class="card-content"> + <div class="columns"> + <div class="column is-9"> + <p class="is-size-4"> <a [routerLink]="[dataset.dataset_id]">{{ dataset.metadata.title }}</a> </p> @@ -35,61 +38,52 @@ {{ topic }} </strong> </p> - </header> - <div class="card-content"> - <div class="content"> - <p class="block-with-text" [innerHTML]="dataset.highlights.highlightedAbstract != null ? dataset.highlights.highlightedAbstract : dataset.metadata.abstract"></p> - <p class="protocol-list"> - <strong class="is-size-7"> - FORMATS: - </strong> - <span>{{ dataset.metadata.uri ? formatProtocols(dataset.metadata.uri) : '-' }}</span> - </p> - <p> - <u i18n="@@global.keywords">Keywords :</u> {{ dataset.metadata.keyword ? dataset.metadata.keyword.join(', ') : '-'}}</p> - </div> + <p class="block-with-text" [innerHTML]="dataset.highlights.highlightedAbstract != null ? dataset.highlights.highlightedAbstract : dataset.metadata.abstract"></p> + <p class="protocol-list"> + <strong class="is-size-7"> + FORMATS: + </strong> + <span>{{ dataset.metadata.uri ? formatProtocols(dataset.metadata.uri) : '-' }}</span> + </p> + <p> + <u i18n="@@global.keywords">Keywords :</u> {{ dataset.metadata.keyword ? dataset.metadata.keyword.join(', ') : '-'}} + </p> </div> - </div> - <div class="column is-3"> - <div class="card-content"> - <div class="content"> - <p *ngIf="dataset.metadata.contact && dataset.metadata.contact.length > 0"> - <span class="icon"> - <i class="material-icons">perm_identity</i> - </span> - {{ dataset.metadata.contact ? dataset.metadata.contact[0].organization : '-' }} - </p> - <p> - <span class="icon"> - <i class="material-icons">copyright</i> - </span> - {{ dataset.metadata.use_limitation ? dataset.metadata.use_limitation[0] : '-' }} - </p> - <p> - <span class="icon"> - <i class="material-icons">update</i> - </span> - {{ dataset.metadata.date_publication | date: 'dd MMMM yyyy' }} - </p> - <p> - <span class="icon"> - <i class="material-icons">autorenew</i> - </span> - - - </p> - <p> - <span class="icon"> - <i class="material-icons">visibility</i> - </span> - - - </p> - </div> + <div class="column is-3"> + <p *ngIf="dataset.metadata.contact && dataset.metadata.contact.length > 0"> + <span class="icon"> + <i class="far fa-user"></i> + </span> + {{ dataset.metadata.contact ? dataset.metadata.contact[0].organization : '-' }} + </p> + <p> + <span class="icon"> + <i class="far fa-copyright"></i> + </span> + {{ dataset.metadata.use_limitation ? dataset.metadata.use_limitation[0] : '-' }} + </p> + <p> + <span class="icon"> + <i class="far fa-clock"></i> + </span> + {{ dataset.metadata.date_publication | date: 'dd MMMM yyyy' }} + </p> + <p> + <span class="icon"> + <i class="fas fa-sync-alt"></i> + </span> + - + </p> + <p> + <span class="icon"> + <i class="far fa-eye"></i> + </span> + - + </p> </div> </div> - </div> - <div class="columns" *ngIf="dataset.highlights.metadata.length > 0 || dataset.highlights.data.length > 0" style="padding-left: 1.5em; "> - <div class="column"> - <div class="content"> + <div class="columns" *ngIf="dataset.highlights.metadata.length > 0 || dataset.highlights.data.length > 0"> + <div class="column"> <ng-container *ngIf="dataset.highlights.metadata.length > 0"> <strong i18n> {dataset.highlights.metadata.length, plural, =1 {Found occurence} other {Found occurences}} in metadata diff --git a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.scss b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.scss index 3d8c9c5ca981c1da6adf9699b3fd1dfb9f1d78a5..e38db5d9bc21b95095b1cf7d77a1202e64890683 100644 --- a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.scss +++ b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.scss @@ -4,6 +4,7 @@ .icon { vertical-align: middle; + justify-content: left; } .category{ @@ -21,16 +22,8 @@ span.item-found { .card { margin-bottom: 10px; - header { - p { - padding-left: 1.5rem; - } - } - - .content { - p { - padding-right: 1.5rem; - } + p { + margin-bottom: 10px; } } @@ -74,4 +67,9 @@ span.item-found { margin-top: 0.2em; /* bg color = bg color under block */ background: white; +} + +.suggestion { + cursor: pointer; + color: #1a0dab; } \ No newline at end of file diff --git a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts index ec7d847df03b78a6951708619bbf97f62fd78f5b..31ad2ce6578fd1eb4f192ef265b7ed02601bcb85 100644 --- a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts +++ b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.spec.ts @@ -1,19 +1,19 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MetadataListComponent } from './metadata-list.component'; -import { MatCardModule, MatIconModule, MatListModule, MatPaginatorModule, MatProgressBarModule } from '@angular/material'; import { ActivatedRoute } from '@angular/router'; import { MetadataService, ElasticsearchService } from '../../services'; import { Observable } from 'rxjs/Observable'; -import { IMetadata, Dataset } from '../../models'; +import { IMetadata, Dataset, SearchSuggestion } from '../../models'; import { RouterTestingModule } from '@angular/router/testing'; import { Subject } from 'rxjs/Subject'; import { Subscription } from 'rxjs/Subscription'; import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { MockComponent } from 'ng2-mock-component'; -import { SuggestionComponent, FilterListComponent } from '..'; +import { FilterListComponent } from '..'; import { FilterDetailComponent } from '../filter-list/filter-detail/filter-detail.component'; import { PaginatorComponent } from '../../../shared/components/paginator/paginator.component'; +import { FormsModule } from '@angular/forms'; describe('MetadataListComponent', () => { const datasetList = [{ @@ -61,6 +61,7 @@ describe('MetadataListComponent', () => { let component: MetadataListComponent; let fixture: ComponentFixture<MetadataListComponent>; let service: MetadataService; + let elasticsearchService: ElasticsearchService; const searchSubject = new Subject<string>(); @@ -69,19 +70,15 @@ describe('MetadataListComponent', () => { declarations: [ MetadataListComponent, MockComponent({ selector: 'app-sort' }), - SuggestionComponent, FilterListComponent, FilterDetailComponent, PaginatorComponent ], imports: [ - MatCardModule, - MatIconModule, - MatProgressBarModule, - MatPaginatorModule, RouterTestingModule.withRoutes([]), BrowserAnimationsModule, - HttpClientModule + HttpClientModule, + FormsModule ], providers: [ MetadataService, @@ -95,7 +92,8 @@ describe('MetadataListComponent', () => { fixture = TestBed.createComponent(MetadataListComponent); component = fixture.componentInstance; service = TestBed.get(MetadataService); - + elasticsearchService = TestBed.get(ElasticsearchService); + spyOn(elasticsearchService, 'getSuggestion').and.returnValue(Observable.of(new SearchSuggestion())); fixture.detectChanges(); }); @@ -111,7 +109,9 @@ describe('MetadataListComponent', () => { spyOnProperty(service, 'pageIndex', 'get').and.returnValue(5); spyOn(service, 'getDatasetList').and.returnValue(Observable.of(datasetList)); spyOn(service, 'searchChange$').and.returnValue(searchSubject.asObservable()); + spyOn(elasticsearchService, 'getSuggestion').and.returnValue(Observable.of(new SearchSuggestion())); spyOn(component, 'search').and.callThrough(); + spyOn(component, 'getSuggestion').and.callThrough(); }); it('should initialize the page index', () => { @@ -120,11 +120,16 @@ describe('MetadataListComponent', () => { expect(component.paginator.pageIndex).toEqual(6); // Value of the service plus 1 }); - it('should get list of metadata from service', () => { + it('should call search function', () => { // When component.ngOnInit(); - expect(service.getDatasetList).toHaveBeenCalled(); - expect(component.datasetList).toBe(datasetList); + expect(component.search).toHaveBeenCalled(); + }); + + it('should call getSuggestion function', () => { + // When + component.ngOnInit(); + expect(component.getSuggestion).toHaveBeenCalled(); }); }); diff --git a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.ts b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.ts index 698fce917fb82047bd3abddfaf7b69cf3fbe7c55..c22e4ed2c15e8bceacb3ee1178a0446b93c6ad0f 100644 --- a/webapp/src/app/geosource/components/metadata-list/metadata-list.component.ts +++ b/webapp/src/app/geosource/components/metadata-list/metadata-list.component.ts @@ -1,8 +1,8 @@ import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; import { MetadataService } from '../../services/metadata.service'; -import { Dataset, IMetadataUri } from '../../models'; +import { Dataset, IMetadataUri, SearchSuggestion } from '../../models'; import { Subscription } from 'rxjs/Subscription'; -import { MatPaginator } from '@angular/material'; +import { ElasticsearchService } from '../../services'; interface PaginatorOptions { pageIndex: number; @@ -30,9 +30,12 @@ export class MetadataListComponent implements OnInit, OnDestroy { pageSizeOptions: [3, 5, 10] }; displayFilters = false; + displaySuggestion = false; + suggestion = new SearchSuggestion({}); constructor( - private metadataService: MetadataService + private metadataService: MetadataService, + private elasticsearchService: ElasticsearchService ) { } ngOnInit() { @@ -40,10 +43,12 @@ export class MetadataListComponent implements OnInit, OnDestroy { this.paginator.pageIndex = this.metadataService.pageIndex + 1; this.paginator.pageSize = this.metadataService.pageSize; this.search(); + this.getSuggestion(); this.searchChangeSub = this.metadataService.searchChange$.subscribe( (value) => { this.showProgressBar = true; this.search(); + this.getSuggestion(); } ); } @@ -91,4 +96,21 @@ export class MetadataListComponent implements OnInit, OnDestroy { this.displayFilters = !this.displayFilters; } + getSuggestion() { + this.elasticsearchService.getSuggestion(this.metadataService.searchString).subscribe( + (suggestion) => { + this.suggestion = suggestion; + if (this.suggestion.text !== '' && this.suggestion.text !== null && this.suggestion.text !== undefined) { + this.displaySuggestion = true; + } else { + this.displaySuggestion = false; + } + } + ); + } + + useSuggestion() { + this.metadataService.searchChanged(this.suggestion.text); + } + } diff --git a/webapp/src/app/geosource/components/research/research.component.html b/webapp/src/app/geosource/components/research/research.component.html index 70fe58b97d20a9ca86eb48c673bc3e1be531fc63..f15bba67ce8a67dee4ec42a2a495c232f13a0f39 100644 --- a/webapp/src/app/geosource/components/research/research.component.html +++ b/webapp/src/app/geosource/components/research/research.component.html @@ -1,14 +1,14 @@ -<section class="hero searchbar"> +<div class="hero searchbar"> <div class="hero-body"> <div class="container"> <app-search-bar></app-search-bar> </div> </div> -</section> +</div> -<section> - <div class="container is-fluid research-container"> +<div class="section"> + <div class="container research-container"> <router-outlet></router-outlet> </div> -</section> \ No newline at end of file +</div> \ No newline at end of file diff --git a/webapp/src/app/geosource/components/research/research.component.scss b/webapp/src/app/geosource/components/research/research.component.scss index e5cf671f9cb1b5d6494de724b37ffafcf961687b..b1604bbf1fda15bdf2d5945edb5f51d68aef023e 100644 --- a/webapp/src/app/geosource/components/research/research.component.scss +++ b/webapp/src/app/geosource/components/research/research.component.scss @@ -1,6 +1,6 @@ -@import "../../../../scss/mystyles"; +@import "../../../../scss/variables"; -section.searchbar { +div.searchbar { background-color: #DEE6EE; } diff --git a/webapp/src/app/geosource/components/search-bar/search-bar.component.html b/webapp/src/app/geosource/components/search-bar/search-bar.component.html index cb8a359f06b37fd8ee5820ee0b8ac5b3dbffc61a..c021e762c3664dd1505d703eec4a59a66558ef38 100644 --- a/webapp/src/app/geosource/components/search-bar/search-bar.component.html +++ b/webapp/src/app/geosource/components/search-bar/search-bar.component.html @@ -3,16 +3,24 @@ <div class="is-vcentered"> <div class="field has-addons has-addons-right is-centered"> <div class="control research-input"> - <input type="text" class="input is-medium" [(ngModel)]="searchValue" placeholder="Research one dataset" i18n-placeholder="@@research.dataset" - (keyup)="searchChanged($event.key)" list="keywords" /> - <datalist id="keywords" > - <option *ngFor="let option of options_autocomplete" [value]="option.text">{{ option.text }}</option> - </datalist> + <input type="text" class="input is-medium" [(ngModel)]="searchValue" + placeholder="Research one dataset" i18n-placeholder="@@research.dataset" + (keyup)="searchChanged($event.key)" (blur)="displayAutocomplete = false; currentAutocompleteFocus= -1;" + (focus)="displayAutocomplete=true" /> + <div class="autocomplete-items" [ngStyle]="{'display': displayAutocomplete ? 'block' : 'none'}"> + <p *ngFor="let option of options_autocomplete; let i = index" (mousedown)="changeValue(option.text)" + [ngClass]="{'isActive' : i == currentAutocompleteFocus}"> + {{ option.text }} + </p> + </div> </div> <div class="control button-research"> <button class="button is-medium is-danger" (click)="searchChanged('Enter')"> <span class="icon"> - <i class="material-icons">search</i> + <i class="fas fa-search" *ngIf="!isLoading;else spinner"></i> + <ng-template #spinner> + <i class="fas fa-spinner fa-spin"></i> + </ng-template> </span> </button> </div> diff --git a/webapp/src/app/geosource/components/search-bar/search-bar.component.scss b/webapp/src/app/geosource/components/search-bar/search-bar.component.scss index 6bf05bd6581a95f16223e75b27fa8b7cf86a0d8f..431410b357ac849f227bcbb741763b948d465cab 100644 --- a/webapp/src/app/geosource/components/search-bar/search-bar.component.scss +++ b/webapp/src/app/geosource/components/search-bar/search-bar.component.scss @@ -1,4 +1,4 @@ -@import "./src/scss/mystyles.scss"; +@import "./src/scss/variables.scss"; .iconBtn { min-width: unset; @@ -27,4 +27,27 @@ .research-input { width: 100%; -} \ No newline at end of file +} + +.autocomplete-items { + position: absolute; + border: 1px solid #d4d4d4; + border-bottom: none; + border-top: none; + z-index: 99; + background-color: white; + /*position the autocomplete items to be the same width as the container:*/ + top: 100%; + left: 0; + right: 0; +} +.autocomplete-items p { + padding: 5px; + cursor: pointer; + background-color: #fff; + border-bottom: 1px solid #d4d4d4; +} +.autocomplete-items p:hover, .autocomplete-items p.isActive { + /*when hovering an item:*/ + background-color: #DEE6EE; +} diff --git a/webapp/src/app/geosource/components/search-bar/search-bar.component.spec.ts b/webapp/src/app/geosource/components/search-bar/search-bar.component.spec.ts index 3486f8ce81c1801a2b8d413fbf17185046d661ba..5ca35422d579e2014ac90115bed420678bfaa81d 100644 --- a/webapp/src/app/geosource/components/search-bar/search-bar.component.spec.ts +++ b/webapp/src/app/geosource/components/search-bar/search-bar.component.spec.ts @@ -4,7 +4,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SearchBarComponent } from './search-bar.component'; import { MockComponent } from 'ng2-mock-component'; -import { AppMaterialModule } from '../../../app.material.module'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; @@ -15,7 +14,6 @@ describe('SearchBarComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ - AppMaterialModule, FormsModule, HttpClientModule ], diff --git a/webapp/src/app/geosource/components/search-bar/search-bar.component.ts b/webapp/src/app/geosource/components/search-bar/search-bar.component.ts index 1d9aef7e2d5cf9ca727d011c70f9e72f4dd28a8c..808c831885562ed8e54e676029f88f7c1a5a43dd 100644 --- a/webapp/src/app/geosource/components/search-bar/search-bar.component.ts +++ b/webapp/src/app/geosource/components/search-bar/search-bar.component.ts @@ -1,6 +1,5 @@ import { Component, OnInit } from '@angular/core'; import { MetadataService, ElasticsearchService } from '../../services'; -import { MatAutocompleteSelectedEvent } from '@angular/material'; import { SearchCompletion } from '../../models'; @Component({ @@ -12,21 +11,33 @@ export class SearchBarComponent implements OnInit { searchValue: string; options_autocomplete: Array<SearchCompletion>; + currentAutocompleteFocus: number; + isLoading: boolean; + displayAutocomplete: boolean; constructor( private _metadataService: MetadataService, private _elasticSearchService: ElasticsearchService, ) { this.options_autocomplete = []; + this.currentAutocompleteFocus = -1; + this.displayAutocomplete = false; } ngOnInit() { this.searchValue = this._metadataService.searchString; + // When the search value has changed, we reset the autocomplete list and focus element this._metadataService.searchChange$.subscribe( () => { this.searchValue = this._metadataService.searchString; + this.options_autocomplete = []; + this.currentAutocompleteFocus = -1; } ); + // Used to display the loading icon + this._metadataService.isLoading$.subscribe((value) => { + this.isLoading = value; + }); } searchChanged(key) { @@ -34,11 +45,28 @@ export class SearchBarComponent implements OnInit { // - the click on reset button, press key Enter, select option with the mouse: // we make a search query & clean the completion list // - any keyup in the search bar: we make the autocomplete query + // - keydown, keyup and Enter from the autocomplete list items switch (key) { + // These 2 keys are to go up and down in the autocomplete list items case 'ArrowDown': + if (this.currentAutocompleteFocus < 2) { + this.currentAutocompleteFocus ++; + } + break; case 'ArrowUp': + if (this.currentAutocompleteFocus > 0) { + this.currentAutocompleteFocus --; + } break; case 'Enter': + // When Enter is pressed and that we are inside the autocomplete list items + if (this.currentAutocompleteFocus > -1) { + this.searchValue = this.options_autocomplete[this.currentAutocompleteFocus].text; + this.currentAutocompleteFocus = -1; + } + this._metadataService.searchChanged(this.searchValue); + this.options_autocomplete = []; + break; case 'optionSelected': case 'reset': this._metadataService.searchChanged(this.searchValue); @@ -55,12 +83,17 @@ export class SearchBarComponent implements OnInit { } + changeValue(optionText) { + this.searchValue = optionText; + this.searchChanged('Enter'); + } + displayAutoComplete(option): string | undefined { const value = option ? option : undefined; return value; } - onSelectionChanged(event: MatAutocompleteSelectedEvent) { + onSelectionChanged(event) { this.searchChanged('optionSelected'); } diff --git a/webapp/src/app/geosource/components/sort/sort.component.html b/webapp/src/app/geosource/components/sort/sort.component.html index fdde7f69fa9c3506d5f7b6890516e035a470d361..2412f22b37192fdc12b82f1fd467ae25d1ff5560 100644 --- a/webapp/src/app/geosource/components/sort/sort.component.html +++ b/webapp/src/app/geosource/components/sort/sort.component.html @@ -16,11 +16,11 @@ <div class="column"> <div class="order-toggle" (click)="toggleOrder()"> <span *ngIf="selectedOption.order === 'desc'; else downArrow" class="icon"> - <i class="material-icons">arrow_downward</i> + <i class="fa fa-arrow-down"></i> </span> <ng-template #downArrow> <span class="icon"> - <i class="material-icons">arrow_upward</i> + <i class="fa fa-arrow-up"></i> </span> </ng-template> </div> diff --git a/webapp/src/app/geosource/components/sort/sort.component.spec.ts b/webapp/src/app/geosource/components/sort/sort.component.spec.ts index 98ba6e53d476ee1d3640d2cce305b96aa69c37c8..901114fa56a565bda93e761e9002f3515aeeafc1 100644 --- a/webapp/src/app/geosource/components/sort/sort.component.spec.ts +++ b/webapp/src/app/geosource/components/sort/sort.component.spec.ts @@ -1,7 +1,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SortComponent } from './sort.component'; -import { AppMaterialModule } from '../../../app.material.module'; import { MetadataService, ElasticsearchService } from '../../services'; import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -13,7 +12,6 @@ describe('SortComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ - AppMaterialModule, HttpClientModule, BrowserAnimationsModule ], diff --git a/webapp/src/app/geosource/components/suggestion/suggestion.component.html b/webapp/src/app/geosource/components/suggestion/suggestion.component.html deleted file mode 100644 index 12199a18a1e64e912045b79c827a82029a9f9206..0000000000000000000000000000000000000000 --- a/webapp/src/app/geosource/components/suggestion/suggestion.component.html +++ /dev/null @@ -1,3 +0,0 @@ -<span *ngIf="suggestion.text"> - <span i18n="@@global.youMeant">Did you mean: </span><span class="suggestion" [innerHTML]="suggestion.highlighted" (click)="useSuggestion()"></span> -</span> \ No newline at end of file diff --git a/webapp/src/app/geosource/components/suggestion/suggestion.component.scss b/webapp/src/app/geosource/components/suggestion/suggestion.component.scss deleted file mode 100644 index 1da9415c40b54247e4eba80a6166f263fdee0163..0000000000000000000000000000000000000000 --- a/webapp/src/app/geosource/components/suggestion/suggestion.component.scss +++ /dev/null @@ -1,4 +0,0 @@ -.suggestion { - cursor: pointer; - color: #1a0dab; -} \ No newline at end of file diff --git a/webapp/src/app/geosource/components/suggestion/suggestion.component.spec.ts b/webapp/src/app/geosource/components/suggestion/suggestion.component.spec.ts deleted file mode 100644 index e641064ba41292c91f5cb621d4bd4294d9086c3e..0000000000000000000000000000000000000000 --- a/webapp/src/app/geosource/components/suggestion/suggestion.component.spec.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SuggestionComponent } from './suggestion.component'; -import { MetadataService, ElasticsearchService } from '../../services'; -import { HttpClientModule } from '@angular/common/http'; - -describe('SuggestionComponent', () => { - let component: SuggestionComponent; - let fixture: ComponentFixture<SuggestionComponent>; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ SuggestionComponent ], - providers: [ - MetadataService, - ElasticsearchService - ], - imports: [ - HttpClientModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SuggestionComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/webapp/src/app/geosource/components/suggestion/suggestion.component.ts b/webapp/src/app/geosource/components/suggestion/suggestion.component.ts deleted file mode 100644 index e52f6dbce1dc3cd5466b62d3618f118cd8f803a9..0000000000000000000000000000000000000000 --- a/webapp/src/app/geosource/components/suggestion/suggestion.component.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; -import { Subscription } from 'rxjs/Subscription'; -import { SearchSuggestion } from '../../models'; -import { MetadataService, ElasticsearchService } from '../../services'; - -@Component({ - selector: 'app-suggestion', - templateUrl: './suggestion.component.html', - styleUrls: ['./suggestion.component.scss'] -}) -export class SuggestionComponent implements OnInit, OnDestroy { - - searchChangeSub: Subscription; - suggestion: SearchSuggestion; - - constructor( - private metadataService: MetadataService, - private elasticsearchService: ElasticsearchService - ) { - this.suggestion = new SearchSuggestion({}); - } - - ngOnInit() { - this.searchChangeSub = this.metadataService.searchChange$.subscribe( - () => { - this.getSuggestion(); - } - ); - } - - getSuggestion() { - this.elasticsearchService.getSuggestion(this.metadataService.searchString).subscribe( - (suggestion) => { - this.suggestion = suggestion; - } - ); - } - - useSuggestion() { - this.metadataService.searchChanged(this.suggestion.text); - } - - ngOnDestroy() { - this.searchChangeSub.unsubscribe(); - } - -} diff --git a/webapp/src/app/geosource/geosource.module.ts b/webapp/src/app/geosource/geosource.module.ts index ed6d5a99b1a4ab4ad53e9297e239d0df4a3fd4ae..c56dc294728f0e4e3a47b526a79a4f98f53c50a5 100644 --- a/webapp/src/app/geosource/geosource.module.ts +++ b/webapp/src/app/geosource/geosource.module.ts @@ -4,14 +4,12 @@ import { FormsModule } from '@angular/forms'; import { GeosourceRoutingModule } from './geosource-routing.module'; import { GeosourceComponents } from './components'; import { GeosourceServices } from './services'; -import { AppMaterialModule } from '../app.material.module'; import { SharedModule } from '../shared/shared.module'; @NgModule({ imports: [ CommonModule, GeosourceRoutingModule, - AppMaterialModule, FormsModule, SharedModule ], diff --git a/webapp/src/app/geosource/models/search-completion.model.ts b/webapp/src/app/geosource/models/search-completion.model.ts index b8086380504f7a36a6fd32678a40a38b152e0c4c..0b379da543da253b2682cf4ff92436e5e4f56e78 100644 --- a/webapp/src/app/geosource/models/search-completion.model.ts +++ b/webapp/src/app/geosource/models/search-completion.model.ts @@ -1,5 +1,6 @@ export class SearchCompletion { 'text': string; + 'id': string; '_index': string; '_score': number; diff --git a/webapp/src/app/geosource/services/metadata.service.ts b/webapp/src/app/geosource/services/metadata.service.ts index c30a4675b4e743ab33a32f141567afbfbf857c61..c2f55ea41c4a7ac9f06516e99f3e68f0c443acee 100644 --- a/webapp/src/app/geosource/services/metadata.service.ts +++ b/webapp/src/app/geosource/services/metadata.service.ts @@ -20,6 +20,7 @@ export class MetadataService { private _metadataReloadedSubject: Subject<any>; private _elasticsearchOptions: ElasticsearchOptions; private _resultsCount: number; + private _isLoading: Subject<boolean>; constructor( private _elasticsearchService: ElasticsearchService @@ -27,12 +28,14 @@ export class MetadataService { this._searchChangeSubject = new Subject<any>(); this._metadataReloadedSubject = new Subject<any>(); this._elasticsearchOptions = new ElasticsearchOptions(); + this._isLoading = new Subject(); + } // Get metadata from elasticsearch. // Options: filter by query string and pagination getDatasetList(): Observable<Dataset[]> { - + this._isLoading.next(true); return this._elasticsearchService.getFullDataList(this._elasticsearchOptions).map( e => { // Set results count @@ -51,6 +54,7 @@ export class MetadataService { // NOtify that data have been reloaded this._metadataReloadedSubject.next(); + this._isLoading.next(false); return this.initilizeDatasetList(e.hits.hits); }); } @@ -167,6 +171,10 @@ export class MetadataService { return this._searchChangeSubject.asObservable(); } + get isLoading$(): Observable<boolean> { + return this._isLoading.asObservable(); + } + get metadataReloaded$(): Observable<string> { return this._metadataReloadedSubject.asObservable(); } diff --git a/webapp/src/environments/environment.prod.ts b/webapp/src/environments/environment.prod.ts index 11d9b4d3447a63f005af58c4832a9bdddaf1b333..82a49c28056eea7034937e12e45c3b88642d3a32 100644 --- a/webapp/src/environments/environment.prod.ts +++ b/webapp/src/environments/environment.prod.ts @@ -7,8 +7,8 @@ export const environment = { production: true, elasticsearchUrl: { - full: '/elasticsearch/*.full', - meta: '/elasticsearch/*.meta' + full: '/test/elasticsearch/*.full', + meta: '/test/elasticsearch/*.meta' }, angularAppHost: { diff --git a/webapp/src/environments/environment.ts b/webapp/src/environments/environment.ts index 45d82e1098bbd9e4a368d416ba00b326a28454d3..6eba502e5fa54650afa208ea5ca5e071d66831b4 100644 --- a/webapp/src/environments/environment.ts +++ b/webapp/src/environments/environment.ts @@ -7,8 +7,8 @@ export const environment = { production: false, elasticsearchUrl: { - full: 'http://localhost:8081/elasticsearch/*.full', - meta: 'http://localhost:8081/elasticsearch/*.meta' + full: 'http://localhost:8081/test/elasticsearch/*.full', + meta: 'http://localhost:8081/test/elasticsearch/*.meta' }, angularAppHost: { diff --git a/webapp/src/i18n/i18n-paginator-intl.ts b/webapp/src/i18n/i18n-paginator-intl.ts deleted file mode 100644 index 8d819c9fa96ae43a528db41733b823b8bba48054..0000000000000000000000000000000000000000 --- a/webapp/src/i18n/i18n-paginator-intl.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { MatPaginatorIntl } from '@angular/material'; - -export function I18nPaginatorIntl() { - const paginatorIntl = new MatPaginatorIntl(); - - const language = (window.location.pathname.split('/')[1]) || navigator.language; - - if (Array('fr', 'fr-FR', 'fr-CA').includes(language)) { - paginatorIntl.itemsPerPageLabel = 'Eléments par page:'; - paginatorIntl.nextPageLabel = 'Page suivante'; - paginatorIntl.previousPageLabel = 'Page précédente'; - paginatorIntl.firstPageLabel = 'Première page'; - paginatorIntl.lastPageLabel = 'Dernière page'; - } else { - paginatorIntl.itemsPerPageLabel = 'Items per page:'; - paginatorIntl.nextPageLabel = 'Next page'; - paginatorIntl.previousPageLabel = 'Previous page'; - paginatorIntl.firstPageLabel = 'First page'; - paginatorIntl.lastPageLabel = 'Last page'; - } - return paginatorIntl; -} diff --git a/webapp/src/index.html b/webapp/src/index.html index 310a3ab7f3b80360f782e3f80fa46cceeaf487f5..cfb347bb104e79187c5a7c57d4f8ab58ef970ca4 100644 --- a/webapp/src/index.html +++ b/webapp/src/index.html @@ -8,7 +8,6 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> - <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous"> diff --git a/webapp/src/scss/sass/base/_all.sass b/webapp/src/scss/sass/base/_all.sass deleted file mode 100644 index e913d6ba394b4ce729fa230596c09360b9c4fd24..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/base/_all.sass +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8" - -@import "minireset.sass" -@import "generic.sass" -@import "helpers.sass" diff --git a/webapp/src/scss/sass/base/generic.sass b/webapp/src/scss/sass/base/generic.sass deleted file mode 100644 index bb0e37af383aff55fd503d652a95d12dec4e9f43..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/base/generic.sass +++ /dev/null @@ -1,127 +0,0 @@ -$body-background-color: $white !default -$body-size: 16px !default -$body-rendering: optimizeLegibility !default -$body-family: $family-primary !default -$body-color: $text !default -$body-weight: $weight-normal !default -$body-line-height: 1.5 !default - -$code-family: $family-code !default -$code-padding: 0.25em 0.5em 0.25em !default -$code-weight: normal !default -$code-size: 0.875em !default - -$hr-background-color: $background !default -$hr-height: 2px !default -$hr-margin: 1.5rem 0 !default - -$strong-color: $text-strong !default -$strong-weight: $weight-bold !default - -html - background-color: $body-background-color - font-size: $body-size - -moz-osx-font-smoothing: grayscale - -webkit-font-smoothing: antialiased - min-width: 300px - overflow-x: hidden - overflow-y: scroll - text-rendering: $body-rendering - text-size-adjust: 100% - -article, -aside, -figure, -footer, -header, -hgroup, -section - display: block - -body, -button, -input, -select, -textarea - font-family: $body-family - -code, -pre - -moz-osx-font-smoothing: auto - -webkit-font-smoothing: auto - font-family: $code-family - -body - color: $body-color - font-size: 1rem - font-weight: $body-weight - line-height: $body-line-height - -// Inline - -a - color: $link - cursor: pointer - text-decoration: none - strong - color: currentColor - &:hover - color: $link-hover - -code - background-color: $code-background - color: $code - font-size: $code-size - font-weight: $code-weight - padding: $code-padding - -hr - background-color: $hr-background-color - border: none - display: block - height: $hr-height - margin: $hr-margin - -img - height: auto - max-width: 100% - -input[type="checkbox"], -input[type="radio"] - vertical-align: baseline - -small - font-size: 0.875em - -span - font-style: inherit - font-weight: inherit - -strong - color: $strong-color - font-weight: $strong-weight - -// Block - -pre - +overflow-touch - background-color: $pre-background - color: $pre - font-size: 0.875em - overflow-x: auto - padding: 1.25rem 1.5rem - white-space: pre - word-wrap: normal - code - background-color: transparent - color: currentColor - font-size: 1em - padding: 0 - -table - td, - th - text-align: left - vertical-align: top - th - color: $text-strong diff --git a/webapp/src/scss/sass/base/helpers.sass b/webapp/src/scss/sass/base/helpers.sass deleted file mode 100644 index 32cafa4f7eb04e329e5e34214a19ffd7af098e63..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/base/helpers.sass +++ /dev/null @@ -1,251 +0,0 @@ -// Float - -.is-clearfix - +clearfix - -.is-pulled-left - float: left !important - -.is-pulled-right - float: right !important - -// Overflow - -.is-clipped - overflow: hidden !important - -// Overlay - -.is-overlay - +overlay - -// Typography - -=typography-size($target:'') - @each $size in $sizes - $i: index($sizes, $size) - .is-size-#{$i}#{if($target == '', '', '-' + $target)} - font-size: $size !important - -+typography-size() - -+mobile - +typography-size('mobile') - -+tablet - +typography-size('tablet') - -+touch - +typography-size('touch') - -+desktop - +typography-size('desktop') - -+widescreen - +typography-size('widescreen') - -+fullhd - +typography-size('fullhd') - -$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right') - -@each $alignment, $text-align in $alignments - .has-text-#{$alignment} - text-align: #{$text-align} !important - -@each $alignment, $text-align in $alignments - +mobile - .has-text-#{$alignment}-mobile - text-align: #{$text-align} !important - +tablet - .has-text-#{$alignment}-tablet - text-align: #{$text-align} !important - +tablet-only - .has-text-#{$alignment}-tablet-only - text-align: #{$text-align} !important - +touch - .has-text-#{$alignment}-touch - text-align: #{$text-align} !important - +desktop - .has-text-#{$alignment}-desktop - text-align: #{$text-align} !important - +desktop-only - .has-text-#{$alignment}-desktop-only - text-align: #{$text-align} !important - +widescreen - .has-text-#{$alignment}-widescreen - text-align: #{$text-align} !important - +widescreen-only - .has-text-#{$alignment}-widescreen-only - text-align: #{$text-align} !important - +fullhd - .has-text-#{$alignment}-fullhd - text-align: #{$text-align} !important - -.is-capitalized - text-transform: capitalize !important - -.is-lowercase - text-transform: lowercase !important - -.is-uppercase - text-transform: uppercase !important - -.is-italic - font-style: italic !important - -@each $name, $pair in $colors - $color: nth($pair, 1) - .has-text-#{$name} - color: $color !important - a.has-text-#{$name} - &:hover, - &:focus - color: darken($color, 10%) !important - .has-background-#{$name} - background-color: $color !important - -@each $name, $shade in $shades - .has-text-#{$name} - color: $shade !important - .has-background-#{$name} - background-color: $shade !important - -.has-text-weight-light - font-weight: $weight-light !important -.has-text-weight-normal - font-weight: $weight-normal !important -.has-text-weight-semibold - font-weight: $weight-semibold !important -.has-text-weight-bold - font-weight: $weight-bold !important - -// Visibility - -$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex' - -@each $display in $displays - .is-#{$display} - display: #{$display} !important - +mobile - .is-#{$display}-mobile - display: #{$display} !important - +tablet - .is-#{$display}-tablet - display: #{$display} !important - +tablet-only - .is-#{$display}-tablet-only - display: #{$display} !important - +touch - .is-#{$display}-touch - display: #{$display} !important - +desktop - .is-#{$display}-desktop - display: #{$display} !important - +desktop-only - .is-#{$display}-desktop-only - display: #{$display} !important - +widescreen - .is-#{$display}-widescreen - display: #{$display} !important - +widescreen-only - .is-#{$display}-widescreen-only - display: #{$display} !important - +fullhd - .is-#{$display}-fullhd - display: #{$display} !important - -.is-hidden - display: none !important - -+mobile - .is-hidden-mobile - display: none !important - -+tablet - .is-hidden-tablet - display: none !important - -+tablet-only - .is-hidden-tablet-only - display: none !important - -+touch - .is-hidden-touch - display: none !important - -+desktop - .is-hidden-desktop - display: none !important - -+desktop-only - .is-hidden-desktop-only - display: none !important - -+widescreen - .is-hidden-widescreen - display: none !important - -+widescreen-only - .is-hidden-widescreen-only - display: none !important - -+fullhd - .is-hidden-fullhd - display: none !important - -.is-invisible - visibility: hidden !important - -+mobile - .is-invisible-mobile - visibility: hidden !important - -+tablet - .is-invisible-tablet - visibility: hidden !important - -+tablet-only - .is-invisible-tablet-only - visibility: hidden !important - -+touch - .is-invisible-touch - visibility: hidden !important - -+desktop - .is-invisible-desktop - visibility: hidden !important - -+desktop-only - .is-invisible-desktop-only - visibility: hidden !important - -+widescreen - .is-invisible-widescreen - visibility: hidden !important - -+widescreen-only - .is-invisible-widescreen-only - visibility: hidden !important - -+fullhd - .is-invisible-fullhd - visibility: hidden !important - -// Other - -.is-marginless - margin: 0 !important - -.is-paddingless - padding: 0 !important - -.is-radiusless - border-radius: 0 !important - -.is-shadowless - box-shadow: none !important - -.is-unselectable - +unselectable diff --git a/webapp/src/scss/sass/base/minireset.sass b/webapp/src/scss/sass/base/minireset.sass deleted file mode 100644 index e99311cf1fb7d5b8013203aaac7a01da0f5b21c1..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/base/minireset.sass +++ /dev/null @@ -1,79 +0,0 @@ -/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */ -// Blocks -html, -body, -p, -ol, -ul, -li, -dl, -dt, -dd, -blockquote, -figure, -fieldset, -legend, -textarea, -pre, -iframe, -hr, -h1, -h2, -h3, -h4, -h5, -h6 - margin: 0 - padding: 0 - -// Headings -h1, -h2, -h3, -h4, -h5, -h6 - font-size: 100% - font-weight: normal - -// List -ul - list-style: none - -// Form -button, -input, -select, -textarea - margin: 0 - -// Box sizing -html - box-sizing: border-box - -* - &, - &::before, - &::after - box-sizing: inherit - -// Media -img, -audio, -video - height: auto - max-width: 100% - -// Iframe -iframe - border: 0 - -// Table -table - border-collapse: collapse - border-spacing: 0 - -td, -th - padding: 0 - text-align: left diff --git a/webapp/src/scss/sass/components/_all.sass b/webapp/src/scss/sass/components/_all.sass deleted file mode 100644 index 1de2c214ed00a9f759688f65c5a8c258b55f415f..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/_all.sass +++ /dev/null @@ -1,14 +0,0 @@ -@charset "utf-8" - -@import "breadcrumb.sass" -@import "card.sass" -@import "dropdown.sass" -@import "level.sass" -@import "media.sass" -@import "menu.sass" -@import "message.sass" -@import "modal.sass" -@import "navbar.sass" -@import "pagination.sass" -@import "panel.sass" -@import "tabs.sass" diff --git a/webapp/src/scss/sass/components/breadcrumb.sass b/webapp/src/scss/sass/components/breadcrumb.sass deleted file mode 100644 index acc9c3a82a5141fac495b966e6c1e2ae375af282..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/breadcrumb.sass +++ /dev/null @@ -1,75 +0,0 @@ -$breadcrumb-item-color: $link !default -$breadcrumb-item-hover-color: $link-hover !default -$breadcrumb-item-active-color: $text-strong !default - -$breadcrumb-item-padding-vertical: 0 !default -$breadcrumb-item-padding-horizontal: 0.75em !default - -$breadcrumb-item-separator-color: $grey-light !default - -.breadcrumb - +block - +unselectable - font-size: $size-normal - white-space: nowrap - a - align-items: center - color: $breadcrumb-item-color - display: flex - justify-content: center - padding: $breadcrumb-item-padding-vertical $breadcrumb-item-padding-horizontal - &:hover - color: $breadcrumb-item-hover-color - li - align-items: center - display: flex - &:first-child a - padding-left: 0 - &.is-active - a - color: $breadcrumb-item-active-color - cursor: default - pointer-events: none - & + li::before - color: $breadcrumb-item-separator-color - content: "\0002f" - ul, - ol - align-items: flex-start - display: flex - flex-wrap: wrap - justify-content: flex-start - .icon - &:first-child - margin-right: 0.5em - &:last-child - margin-left: 0.5em - // Alignment - &.is-centered - ol, - ul - justify-content: center - &.is-right - ol, - ul - justify-content: flex-end - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - // Styles - &.has-arrow-separator - li + li::before - content: "\02192" - &.has-bullet-separator - li + li::before - content: "\02022" - &.has-dot-separator - li + li::before - content: "\000b7" - &.has-succeeds-separator - li + li::before - content: "\0227B" diff --git a/webapp/src/scss/sass/components/card.sass b/webapp/src/scss/sass/components/card.sass deleted file mode 100644 index 14d2dad1e23380e6ab9029e430ade695790600f0..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/card.sass +++ /dev/null @@ -1,74 +0,0 @@ -$card-color: $text !default -$card-background-color: $white !default -$card-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default - -$card-header-background-color: none !default -$card-header-color: $text-strong !default -$card-header-shadow: 0 1px 2px rgba($black, 0.1) !default -$card-header-weight: $weight-bold !default - -$card-content-background-color: none !default - -$card-footer-background-color: none !default -$card-footer-border-top: 1px solid $border !default - -.card - background-color: $card-background-color - box-shadow: $card-shadow - color: $card-color - max-width: 100% - position: relative - -.card-header - background-color: $card-header-background-color - align-items: stretch - box-shadow: $card-header-shadow - display: flex - -.card-header-title - align-items: center - color: $card-header-color - display: flex - flex-grow: 1 - font-weight: $card-header-weight - padding: 0.75rem - &.is-centered - justify-content: center - -.card-header-icon - align-items: center - cursor: pointer - display: flex - justify-content: center - padding: 0.75rem - -.card-image - display: block - position: relative - -.card-content - background-color: $card-content-background-color - padding: 1.5rem - -.card-footer - background-color: $card-footer-background-color - border-top: $card-footer-border-top - align-items: stretch - display: flex - -.card-footer-item - align-items: center - display: flex - flex-basis: 0 - flex-grow: 1 - flex-shrink: 0 - justify-content: center - padding: 0.75rem - &:not(:last-child) - border-right: $card-footer-border-top - -// Combinations - -.card - .media:not(:last-child) - margin-bottom: 0.75rem diff --git a/webapp/src/scss/sass/components/dropdown.sass b/webapp/src/scss/sass/components/dropdown.sass deleted file mode 100644 index 6a0eaeb7a27cbe628a0246b0389434727c2c1ae6..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/dropdown.sass +++ /dev/null @@ -1,74 +0,0 @@ -$dropdown-content-background-color: $white !default -$dropdown-content-arrow: $link !default -$dropdown-content-offset: 4px !default -$dropdown-content-radius: $radius !default -$dropdown-content-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default -$dropdown-content-z: 20 !default - -$dropdown-item-color: $grey-dark !default -$dropdown-item-hover-color: $black !default -$dropdown-item-hover-background-color: $background !default -$dropdown-item-active-color: $link-invert !default -$dropdown-item-active-background-color: $link !default - -$dropdown-divider-background-color: $border !default - -.dropdown - display: inline-flex - position: relative - vertical-align: top - &.is-active, - &.is-hoverable:hover - .dropdown-menu - display: block - &.is-right - .dropdown-menu - left: auto - right: 0 - &.is-up - .dropdown-menu - bottom: 100% - padding-bottom: $dropdown-content-offset - padding-top: initial - top: auto - -.dropdown-menu - display: none - left: 0 - min-width: 12rem - padding-top: $dropdown-content-offset - position: absolute - top: 100% - z-index: $dropdown-content-z - -.dropdown-content - background-color: $dropdown-content-background-color - border-radius: $dropdown-content-radius - box-shadow: $dropdown-content-shadow - padding-bottom: 0.5rem - padding-top: 0.5rem - -.dropdown-item - color: $dropdown-item-color - display: block - font-size: 0.875rem - line-height: 1.5 - padding: 0.375rem 1rem - position: relative - -a.dropdown-item - padding-right: 3rem - white-space: nowrap - &:hover - background-color: $dropdown-item-hover-background-color - color: $dropdown-item-hover-color - &.is-active - background-color: $dropdown-item-active-background-color - color: $dropdown-item-active-color - -.dropdown-divider - background-color: $dropdown-divider-background-color - border: none - display: block - height: 1px - margin: 0.5rem 0 diff --git a/webapp/src/scss/sass/components/level.sass b/webapp/src/scss/sass/components/level.sass deleted file mode 100644 index 332841092817095bd4f7d85c9202fc2fa8c66faa..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/level.sass +++ /dev/null @@ -1,75 +0,0 @@ -.level - +block - align-items: center - justify-content: space-between - code - border-radius: $radius - img - display: inline-block - vertical-align: top - // Modifiers - &.is-mobile - display: flex - .level-left, - .level-right - display: flex - .level-left + .level-right - margin-top: 0 - .level-item - &:not(:last-child) - margin-bottom: 0 - &:not(.is-narrow) - flex-grow: 1 - margin-right: 0.75rem - // Responsiveness - +tablet - display: flex - & > .level-item - &:not(.is-narrow) - flex-grow: 1 - -.level-item - align-items: center - display: flex - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - justify-content: center - .title, - .subtitle - margin-bottom: 0 - // Responsiveness - +mobile - &:not(:last-child) - margin-bottom: 0.75rem - -.level-left, -.level-right - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - .level-item - // Modifiers - &.is-flexible - flex-grow: 1 - // Responsiveness - +tablet - &:not(:last-child) - margin-right: 0.75rem - -.level-left - align-items: center - justify-content: flex-start - // Responsiveness - +mobile - & + .level-right - margin-top: 1.5rem - +tablet - display: flex - -.level-right - align-items: center - justify-content: flex-end - // Responsiveness - +tablet - display: flex diff --git a/webapp/src/scss/sass/components/media.sass b/webapp/src/scss/sass/components/media.sass deleted file mode 100644 index cb5df08be540a658910d04c312c4b5b7b3956ed5..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/media.sass +++ /dev/null @@ -1,44 +0,0 @@ -.media - align-items: flex-start - display: flex - text-align: left - .content:not(:last-child) - margin-bottom: 0.75rem - .media - border-top: 1px solid rgba($border, 0.5) - display: flex - padding-top: 0.75rem - .content:not(:last-child), - .control:not(:last-child) - margin-bottom: 0.5rem - .media - padding-top: 0.5rem - & + .media - margin-top: 0.5rem - & + .media - border-top: 1px solid rgba($border, 0.5) - margin-top: 1rem - padding-top: 1rem - // Sizes - &.is-large - & + .media - margin-top: 1.5rem - padding-top: 1.5rem - -.media-left, -.media-right - flex-basis: auto - flex-grow: 0 - flex-shrink: 0 - -.media-left - margin-right: 1rem - -.media-right - margin-left: 1rem - -.media-content - flex-basis: auto - flex-grow: 1 - flex-shrink: 1 - text-align: left diff --git a/webapp/src/scss/sass/components/menu.sass b/webapp/src/scss/sass/components/menu.sass deleted file mode 100644 index 727df36077a2898e4ac000ced5de8b1cf4a9bb6a..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/menu.sass +++ /dev/null @@ -1,50 +0,0 @@ -$menu-item-color: $text !default -$menu-item-radius: $radius-small !default -$menu-item-hover-color: $text-strong !default -$menu-item-hover-background-color: $background !default -$menu-item-active-color: $link-invert !default -$menu-item-active-background-color: $link !default - -$menu-list-border-left: 1px solid $border !default - -$menu-label-color: $text-light !default - -.menu - font-size: $size-normal - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - -.menu-list - line-height: 1.25 - a - border-radius: $menu-item-radius - color: $menu-item-color - display: block - padding: 0.5em 0.75em - &:hover - background-color: $menu-item-hover-background-color - color: $menu-item-hover-color - // Modifiers - &.is-active - background-color: $menu-item-active-background-color - color: $menu-item-active-color - li - ul - border-left: $menu-list-border-left - margin: 0.75em - padding-left: 0.75em - -.menu-label - color: $menu-label-color - font-size: 0.75em - letter-spacing: 0.1em - text-transform: uppercase - &:not(:first-child) - margin-top: 1em - &:not(:last-child) - margin-bottom: 1em diff --git a/webapp/src/scss/sass/components/message.sass b/webapp/src/scss/sass/components/message.sass deleted file mode 100644 index a17f75316b8b5224c3d19499175af2b65d4200be..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/message.sass +++ /dev/null @@ -1,86 +0,0 @@ -$message-background-color: $background !default -$message-radius: $radius !default - -$message-header-background-color: $text !default -$message-header-color: $text-invert !default -$message-header-weight: $weight-bold !default -$message-header-padding: 0.75em 1em !default -$message-header-radius: $radius !default - -$message-body-border-color: $border !default -$message-body-border-width: 0 0 0 4px !default -$message-body-color: $text !default -$message-body-padding: 1.25em 1.5em !default -$message-body-radius: $radius !default - -$message-body-pre-background-color: $white !default -$message-body-pre-code-background-color: transparent !default - -$message-header-body-border-width: 0 !default - -.message - +block - background-color: $message-background-color - border-radius: $message-radius - font-size: $size-normal - strong - color: currentColor - a:not(.button):not(.tag) - color: currentColor - text-decoration: underline - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - $color-lightning: max((100% - lightness($color)) - 2%, 0%) - $color-luminance: colorLuminance($color) - $darken-percentage: $color-luminance * 70% - $desaturate-percentage: $color-luminance * 30% - &.is-#{$name} - background-color: lighten($color, $color-lightning) - .message-header - background-color: $color - color: $color-invert - .message-body - border-color: $color - color: desaturate(darken($color, $darken-percentage), $desaturate-percentage) - -.message-header - align-items: center - background-color: $message-header-background-color - border-radius: $message-header-radius $message-header-radius 0 0 - color: $message-header-color - display: flex - font-weight: $message-header-weight - justify-content: space-between - line-height: 1.25 - padding: $message-header-padding - position: relative - .delete - flex-grow: 0 - flex-shrink: 0 - margin-left: 0.75em - & + .message-body - border-width: $message-header-body-border-width - border-top-left-radius: 0 - border-top-right-radius: 0 - -.message-body - border-color: $message-body-border-color - border-radius: $message-body-radius - border-style: solid - border-width: $message-body-border-width - color: $message-body-color - padding: $message-body-padding - code, - pre - background-color: $message-body-pre-background-color - pre code - background-color: $message-body-pre-code-background-color diff --git a/webapp/src/scss/sass/components/modal.sass b/webapp/src/scss/sass/components/modal.sass deleted file mode 100644 index 65597c4e952c7e02f6d9d311c10c262743325630..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/modal.sass +++ /dev/null @@ -1,111 +0,0 @@ -$modal-z: 40 !default - -$modal-background-background-color: rgba($black, 0.86) !default - -$modal-content-width: 640px !default -$modal-content-margin-mobile: 20px !default -$modal-content-spacing-mobile: 160px !default -$modal-content-spacing-tablet: 40px !default - -$modal-close-dimensions: 40px !default -$modal-close-right: 20px !default -$modal-close-top: 20px !default - -$modal-card-spacing: 40px !default - -$modal-card-head-background-color: $background !default -$modal-card-head-border-bottom: 1px solid $border !default -$modal-card-head-padding: 20px !default -$modal-card-head-radius: $radius-large !default - -$modal-card-title-color: $text-strong !default -$modal-card-title-line-height: 1 !default -$modal-card-title-size: $size-4 !default - -$modal-card-foot-radius: $radius-large !default -$modal-card-foot-border-top: 1px solid $border !default - -$modal-card-body-background-color: $white !default -$modal-card-body-padding: 20px !default - -.modal - +overlay - align-items: center - display: none - justify-content: center - overflow: hidden - position: fixed - z-index: $modal-z - // Modifiers - &.is-active - display: flex - -.modal-background - +overlay - background-color: $modal-background-background-color - -.modal-content, -.modal-card - margin: 0 $modal-content-margin-mobile - max-height: calc(100vh - #{$modal-content-spacing-mobile}) - overflow: auto - position: relative - width: 100% - // Responsiveness - +tablet - margin: 0 auto - max-height: calc(100vh - #{$modal-content-spacing-tablet}) - width: $modal-content-width - -.modal-close - +delete - background: none - height: $modal-close-dimensions - position: fixed - right: $modal-close-right - top: $modal-close-top - width: $modal-close-dimensions - -.modal-card - display: flex - flex-direction: column - max-height: calc(100vh - #{$modal-card-spacing}) - overflow: hidden - -.modal-card-head, -.modal-card-foot - align-items: center - background-color: $modal-card-head-background-color - display: flex - flex-shrink: 0 - justify-content: flex-start - padding: $modal-card-head-padding - position: relative - -.modal-card-head - border-bottom: $modal-card-head-border-bottom - border-top-left-radius: $modal-card-head-radius - border-top-right-radius: $modal-card-head-radius - -.modal-card-title - color: $modal-card-title-color - flex-grow: 1 - flex-shrink: 0 - font-size: $modal-card-title-size - line-height: $modal-card-title-line-height - -.modal-card-foot - border-bottom-left-radius: $modal-card-foot-radius - border-bottom-right-radius: $modal-card-foot-radius - border-top: $modal-card-foot-border-top - .button - &:not(:last-child) - margin-right: 10px - -.modal-card-body - +overflow-touch - background-color: $modal-card-body-background-color - flex-grow: 1 - flex-shrink: 1 - overflow: auto - padding: $modal-card-body-padding diff --git a/webapp/src/scss/sass/components/navbar.sass b/webapp/src/scss/sass/components/navbar.sass deleted file mode 100644 index 5412c75d0072d3bd54ad5ea3ab8f91f71dfe3040..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/navbar.sass +++ /dev/null @@ -1,414 +0,0 @@ -$navbar-background-color: $white !default -$navbar-box-shadow-size: 0 2px 0 0 !default -$navbar-box-shadow-color: $background !default -$navbar-height: 3.25rem !default -$navbar-padding-vertical: 1rem !default -$navbar-padding-horizontal: 2rem !default -$navbar-z: 30 !default -$navbar-fixed-z: 30 !default - -$navbar-item-color: $grey-dark !default -$navbar-item-hover-color: $link !default -$navbar-item-hover-background-color: $white-bis !default -$navbar-item-active-color: $black !default -$navbar-item-active-background-color: transparent !default -$navbar-item-img-max-height: 1.75rem !default - -$navbar-tab-hover-background-color: transparent !default -$navbar-tab-hover-border-bottom-color: $link !default -$navbar-tab-active-color: $link !default -$navbar-tab-active-background-color: transparent !default -$navbar-tab-active-border-bottom-color: $link !default -$navbar-tab-active-border-bottom-style: solid !default -$navbar-tab-active-border-bottom-width: 3px !default - -$navbar-dropdown-background-color: $white !default -$navbar-dropdown-border-top: 2px solid $border !default -$navbar-dropdown-offset: -4px !default -$navbar-dropdown-arrow: $link !default -$navbar-dropdown-radius: $radius-large !default -$navbar-dropdown-z: 20 !default - -$navbar-dropdown-boxed-radius: $radius-large !default -$navbar-dropdown-boxed-shadow: 0 8px 8px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default - -$navbar-dropdown-item-hover-color: $black !default -$navbar-dropdown-item-hover-background-color: $background !default -$navbar-dropdown-item-active-color: $link !default -$navbar-dropdown-item-active-background-color: $background !default - -$navbar-divider-background-color: $background !default -$navbar-divider-height: 2px !default - -$navbar-bottom-box-shadow-size: 0 -2px 0 0 !default - -=navbar-fixed - left: 0 - position: fixed - right: 0 - z-index: $navbar-fixed-z - -.navbar - background-color: $navbar-background-color - min-height: $navbar-height - position: relative - z-index: $navbar-z - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - .navbar-brand - & > .navbar-item, - .navbar-link - color: $color-invert - & > a.navbar-item, - .navbar-link - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .navbar-link - &::after - border-color: $color-invert - +desktop - .navbar-start, - .navbar-end - & > .navbar-item, - .navbar-link - color: $color-invert - & > a.navbar-item, - .navbar-link - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .navbar-link - &::after - border-color: $color-invert - .navbar-item.has-dropdown:hover .navbar-link, - .navbar-item.has-dropdown.is-active .navbar-link - background-color: darken($color, 5%) - color: $color-invert - .navbar-dropdown - a.navbar-item - &.is-active - background-color: $color - color: $color-invert - & > .container - align-items: stretch - display: flex - min-height: $navbar-height - width: 100% - &.has-shadow - box-shadow: $navbar-box-shadow-size $navbar-box-shadow-color - &.is-fixed-bottom, - &.is-fixed-top - +navbar-fixed - &.is-fixed-bottom - bottom: 0 - &.has-shadow - box-shadow: $navbar-bottom-box-shadow-size $navbar-box-shadow-color - &.is-fixed-top - top: 0 - -html, -body - &.has-navbar-fixed-top - padding-top: $navbar-height - &.has-navbar-fixed-bottom - padding-bottom: $navbar-height - -.navbar-brand, -.navbar-tabs - align-items: stretch - display: flex - flex-shrink: 0 - min-height: $navbar-height - -.navbar-brand - a.navbar-item - &:hover - background-color: transparent - -.navbar-tabs - +overflow-touch - max-width: 100vw - overflow-x: auto - overflow-y: hidden - -.navbar-burger - +hamburger($navbar-height) - margin-left: auto - -.navbar-menu - display: none - -.navbar-item, -.navbar-link - color: $navbar-item-color - display: block - line-height: 1.5 - padding: 0.5rem 0.75rem - position: relative - .icon - &:only-child - margin-left: -0.25rem - margin-right: -0.25rem - -a.navbar-item, -.navbar-link - cursor: pointer - &:hover, - &.is-active - background-color: $navbar-item-hover-background-color - color: $navbar-item-hover-color - -.navbar-item - display: block - flex-grow: 0 - flex-shrink: 0 - img - max-height: $navbar-item-img-max-height - &.has-dropdown - padding: 0 - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.is-tab - border-bottom: 1px solid transparent - min-height: $navbar-height - padding-bottom: calc(0.5rem - 1px) - &:hover - background-color: $navbar-tab-hover-background-color - border-bottom-color: $navbar-tab-hover-border-bottom-color - &.is-active - background-color: $navbar-tab-active-background-color - border-bottom-color: $navbar-tab-active-border-bottom-color - border-bottom-style: $navbar-tab-active-border-bottom-style - border-bottom-width: $navbar-tab-active-border-bottom-width - color: $navbar-tab-active-color - padding-bottom: calc(0.5rem - #{$navbar-tab-active-border-bottom-width}) - -.navbar-content - flex-grow: 1 - flex-shrink: 1 - -.navbar-link - padding-right: 2.5em - &::after - +arrow($navbar-dropdown-arrow) - margin-top: -0.375em - right: 1.125em - -.navbar-dropdown - font-size: 0.875rem - padding-bottom: 0.5rem - padding-top: 0.5rem - .navbar-item - padding-left: 1.5rem - padding-right: 1.5rem - -.navbar-divider - background-color: $navbar-divider-background-color - border: none - display: none - height: $navbar-divider-height - margin: 0.5rem 0 - -+touch - .navbar > .container - display: block - .navbar-brand, - .navbar-tabs - .navbar-item - align-items: center - display: flex - .navbar-link - &::after - display: none - .navbar-menu - background-color: $navbar-background-color - box-shadow: 0 8px 16px rgba($black, 0.1) - padding: 0.5rem 0 - &.is-active - display: block - // Fixed navbar - .navbar - &.is-fixed-bottom-touch, - &.is-fixed-top-touch - +navbar-fixed - &.is-fixed-bottom-touch - bottom: 0 - &.has-shadow - box-shadow: 0 -2px 3px rgba($black, 0.1) - &.is-fixed-top-touch - top: 0 - &.is-fixed-top, - &.is-fixed-top-touch - .navbar-menu - +overflow-touch - max-height: calc(100vh - #{$navbar-height}) - overflow: auto - html, - body - &.has-navbar-fixed-top-touch - padding-top: $navbar-height - &.has-navbar-fixed-bottom-touch - padding-bottom: $navbar-height - -+desktop - .navbar, - .navbar-menu, - .navbar-start, - .navbar-end - align-items: stretch - display: flex - .navbar - min-height: $navbar-height - &.is-spaced - padding: $navbar-padding-vertical $navbar-padding-horizontal - .navbar-start, - .navbar-end - align-items: center - a.navbar-item, - .navbar-link - border-radius: $radius - &.is-transparent - a.navbar-item, - .navbar-link - &:hover, - &.is-active - background-color: transparent !important - .navbar-item.has-dropdown - &.is-active, - &.is-hoverable:hover - .navbar-link - background-color: transparent !important - .navbar-dropdown - a.navbar-item - &:hover - background-color: $navbar-dropdown-item-hover-background-color - color: $navbar-dropdown-item-hover-color - &.is-active - background-color: $navbar-dropdown-item-active-background-color - color: $navbar-dropdown-item-active-color - .navbar-burger - display: none - .navbar-item, - .navbar-link - align-items: center - display: flex - .navbar-item - display: flex - &.has-dropdown - align-items: stretch - &.has-dropdown-up - .navbar-link::after - transform: rotate(135deg) translate(0.25em, -0.25em) - .navbar-dropdown - border-bottom: $navbar-dropdown-border-top - border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0 - border-top: none - bottom: 100% - box-shadow: 0 -8px 8px rgba($black, 0.1) - top: auto - &.is-active, - &.is-hoverable:hover - .navbar-dropdown - display: block - .navbar.is-spaced &, - &.is-boxed - opacity: 1 - pointer-events: auto - transform: translateY(0) - .navbar-menu - flex-grow: 1 - flex-shrink: 0 - .navbar-start - justify-content: flex-start - margin-right: auto - .navbar-end - justify-content: flex-end - margin-left: auto - .navbar-dropdown - background-color: $navbar-dropdown-background-color - border-bottom-left-radius: $navbar-dropdown-radius - border-bottom-right-radius: $navbar-dropdown-radius - border-top: $navbar-dropdown-border-top - box-shadow: 0 8px 8px rgba($black, 0.1) - display: none - font-size: 0.875rem - left: 0 - min-width: 100% - position: absolute - top: 100% - z-index: $navbar-dropdown-z - .navbar-item - padding: 0.375rem 1rem - white-space: nowrap - a.navbar-item - padding-right: 3rem - &:hover - background-color: $navbar-dropdown-item-hover-background-color - color: $navbar-dropdown-item-hover-color - &.is-active - background-color: $navbar-dropdown-item-active-background-color - color: $navbar-dropdown-item-active-color - .navbar.is-spaced &, - &.is-boxed - border-radius: $navbar-dropdown-boxed-radius - border-top: none - box-shadow: $navbar-dropdown-boxed-shadow - display: block - opacity: 0 - pointer-events: none - top: calc(100% + (#{$navbar-dropdown-offset})) - transform: translateY(-5px) - transition-duration: $speed - transition-property: opacity, transform - &.is-right - left: auto - right: 0 - .navbar-divider - display: block - .navbar > .container, - .container > .navbar - .navbar-brand - margin-left: -1rem - .navbar-menu - margin-right: -1rem - // Fixed navbar - .navbar - &.is-fixed-bottom-desktop, - &.is-fixed-top-desktop - +navbar-fixed - &.is-fixed-bottom-desktop - bottom: 0 - &.has-shadow - box-shadow: 0 -2px 3px rgba($black, 0.1) - &.is-fixed-top-desktop - top: 0 - html, - body - &.has-navbar-fixed-top-desktop - padding-top: $navbar-height - &.has-navbar-fixed-bottom-desktop - padding-bottom: $navbar-height - &.has-spaced-navbar-fixed-top - padding-top: $navbar-height + ($navbar-padding-vertical * 2) - &.has-spaced-navbar-fixed-bottom - padding-bottom: $navbar-height + ($navbar-padding-vertical * 2) - // Hover/Active states - a.navbar-item, - .navbar-link - &.is-active - color: $navbar-item-active-color - &.is-active:not(:hover) - background-color: $navbar-item-active-background-color - .navbar-item.has-dropdown - &:hover, - &.is-active - .navbar-link - background-color: $navbar-item-hover-background-color diff --git a/webapp/src/scss/sass/components/pagination.sass b/webapp/src/scss/sass/components/pagination.sass deleted file mode 100644 index 34dd59d8754dbff3e100716aaf4dc519a3403d3f..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/pagination.sass +++ /dev/null @@ -1,143 +0,0 @@ -$pagination-color: $grey-darker !default -$pagination-border-color: $grey-lighter !default -$pagination-margin: -0.25rem !default - -$pagination-hover-color: $link-hover !default -$pagination-hover-border-color: $link-hover-border !default - -$pagination-focus-color: $link-focus !default -$pagination-focus-border-color: $link-focus-border !default - -$pagination-active-color: $link-active !default -$pagination-active-border-color: $link-active-border !default - -$pagination-disabled-color: $grey !default -$pagination-disabled-background-color: $grey-lighter !default -$pagination-disabled-border-color: $grey-lighter !default - -$pagination-current-color: $link-invert !default -$pagination-current-background-color: $link !default -$pagination-current-border-color: $link !default - -$pagination-ellipsis-color: $grey-light !default - -$pagination-shadow-inset: inset 0 1px 2px rgba($black, 0.2) - -.pagination - font-size: $size-normal - margin: $pagination-margin - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - &.is-rounded - .pagination-previous, - .pagination-next - padding-left: 1em - padding-right: 1em - border-radius: $radius-rounded - .pagination-link - border-radius: $radius-rounded - -.pagination, -.pagination-list - align-items: center - display: flex - justify-content: center - text-align: center - -.pagination-previous, -.pagination-next, -.pagination-link, -.pagination-ellipsis - +control - +unselectable - font-size: 1em - padding-left: 0.5em - padding-right: 0.5em - justify-content: center - margin: 0.25rem - text-align: center - -.pagination-previous, -.pagination-next, -.pagination-link - border-color: $pagination-border-color - color: $pagination-color - min-width: 2.25em - &:hover - border-color: $pagination-hover-border-color - color: $pagination-hover-color - &:focus - border-color: $pagination-focus-border-color - &:active - box-shadow: $pagination-shadow-inset - &[disabled] - background-color: $pagination-disabled-background-color - border-color: $pagination-disabled-border-color - box-shadow: none - color: $pagination-disabled-color - opacity: 0.5 - -.pagination-previous, -.pagination-next - padding-left: 0.75em - padding-right: 0.75em - white-space: nowrap - -.pagination-link - &.is-current - background-color: $pagination-current-background-color - border-color: $pagination-current-border-color - color: $pagination-current-color - -.pagination-ellipsis - color: $pagination-ellipsis-color - pointer-events: none - -.pagination-list - flex-wrap: wrap - -+mobile - .pagination - flex-wrap: wrap - .pagination-previous, - .pagination-next - flex-grow: 1 - flex-shrink: 1 - .pagination-list - li - flex-grow: 1 - flex-shrink: 1 - -+tablet - .pagination-list - flex-grow: 1 - flex-shrink: 1 - justify-content: flex-start - order: 1 - .pagination-previous - order: 2 - .pagination-next - order: 3 - .pagination - justify-content: space-between - &.is-centered - .pagination-previous - order: 1 - .pagination-list - justify-content: center - order: 2 - .pagination-next - order: 3 - &.is-right - .pagination-previous - order: 1 - .pagination-next - order: 2 - .pagination-list - justify-content: flex-end - order: 3 diff --git a/webapp/src/scss/sass/components/panel.sass b/webapp/src/scss/sass/components/panel.sass deleted file mode 100644 index b9d339ee9a072a2fedd0fb5bb9febc82de184756..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/panel.sass +++ /dev/null @@ -1,101 +0,0 @@ -$panel-item-border: 1px solid $border !default - -$panel-heading-background-color: $background !default -$panel-heading-color: $text-strong !default -$panel-heading-line-height: 1.25 !default -$panel-heading-padding: 0.5em 0.75em !default -$panel-heading-radius: $radius !default -$panel-heading-size: 1.25em !default -$panel-heading-weight: $weight-light !default - -$panel-tab-border-bottom: 1px solid $border !default -$panel-tab-active-border-bottom-color: $link-active-border !default -$panel-tab-active-color: $link-active !default - -$panel-list-item-color: $text !default -$panel-list-item-hover-color: $link !default - -$panel-block-color: $text-strong !default -$panel-block-hover-background-color: $background !default -$panel-block-active-border-left-color: $link !default -$panel-block-active-color: $link-active !default -$panel-block-active-icon-color: $link !default - -$panel-icon-color: $text-light !default - -.panel - font-size: $size-normal - &:not(:last-child) - margin-bottom: 1.5rem - -.panel-heading, -.panel-tabs, -.panel-block - border-bottom: $panel-item-border - border-left: $panel-item-border - border-right: $panel-item-border - &:first-child - border-top: $panel-item-border - -.panel-heading - background-color: $panel-heading-background-color - border-radius: $panel-heading-radius $panel-heading-radius 0 0 - color: $panel-heading-color - font-size: $panel-heading-size - font-weight: $panel-heading-weight - line-height: $panel-heading-line-height - padding: $panel-heading-padding - -.panel-tabs - align-items: flex-end - display: flex - font-size: 0.875em - justify-content: center - a - border-bottom: $panel-tab-border-bottom - margin-bottom: -1px - padding: 0.5em - // Modifiers - &.is-active - border-bottom-color: $panel-tab-active-border-bottom-color - color: $panel-tab-active-color - -.panel-list - a - color: $panel-list-item-color - &:hover - color: $panel-list-item-hover-color - -.panel-block - align-items: center - color: $panel-block-color - display: flex - justify-content: flex-start - padding: 0.5em 0.75em - input[type="checkbox"] - margin-right: 0.75em - & > .control - flex-grow: 1 - flex-shrink: 1 - width: 100% - &.is-wrapped - flex-wrap: wrap - &.is-active - border-left-color: $panel-block-active-border-left-color - color: $panel-block-active-color - .panel-icon - color: $panel-block-active-icon-color - -a.panel-block, -label.panel-block - cursor: pointer - &:hover - background-color: $panel-block-hover-background-color - -.panel-icon - +fa(14px, 1em) - color: $panel-icon-color - margin-right: 0.75em - .fa - font-size: inherit - line-height: inherit diff --git a/webapp/src/scss/sass/components/tabs.sass b/webapp/src/scss/sass/components/tabs.sass deleted file mode 100644 index ccbf6797337f84b61e0654c40b8101f9fb5f25b6..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/components/tabs.sass +++ /dev/null @@ -1,151 +0,0 @@ -$tabs-border-bottom-color: $border !default -$tabs-border-bottom-style: solid !default -$tabs-border-bottom-width: 1px !default -$tabs-link-color: $text !default -$tabs-link-hover-border-bottom-color: $text-strong !default -$tabs-link-hover-color: $text-strong !default -$tabs-link-active-border-bottom-color: $link !default -$tabs-link-active-color: $link !default -$tabs-link-padding: 0.5em 1em !default - -$tabs-boxed-link-radius: $radius !default -$tabs-boxed-link-hover-background-color: $background !default -$tabs-boxed-link-hover-border-bottom-color: $border !default - -$tabs-boxed-link-active-background-color: $white !default -$tabs-boxed-link-active-border-color: $border !default -$tabs-boxed-link-active-border-bottom-color: transparent !default - -$tabs-toggle-link-border-color: $border !default -$tabs-toggle-link-border-style: solid !default -$tabs-toggle-link-border-width: 1px !default -$tabs-toggle-link-hover-background-color: $background !default -$tabs-toggle-link-hover-border-color: $border-hover !default -$tabs-toggle-link-radius: $radius !default -$tabs-toggle-link-active-background-color: $link !default -$tabs-toggle-link-active-border-color: $link !default -$tabs-toggle-link-active-color: $link-invert !default - -.tabs - +block - +overflow-touch - +unselectable - align-items: stretch - display: flex - font-size: $size-normal - justify-content: space-between - overflow: hidden - overflow-x: auto - white-space: nowrap - a - align-items: center - border-bottom-color: $tabs-border-bottom-color - border-bottom-style: $tabs-border-bottom-style - border-bottom-width: $tabs-border-bottom-width - color: $tabs-link-color - display: flex - justify-content: center - margin-bottom: -#{$tabs-border-bottom-width} - padding: $tabs-link-padding - vertical-align: top - &:hover - border-bottom-color: $tabs-link-hover-border-bottom-color - color: $tabs-link-hover-color - li - display: block - &.is-active - a - border-bottom-color: $tabs-link-active-border-bottom-color - color: $tabs-link-active-color - ul - align-items: center - border-bottom-color: $tabs-border-bottom-color - border-bottom-style: $tabs-border-bottom-style - border-bottom-width: $tabs-border-bottom-width - display: flex - flex-grow: 1 - flex-shrink: 0 - justify-content: flex-start - &.is-left - padding-right: 0.75em - &.is-center - flex: none - justify-content: center - padding-left: 0.75em - padding-right: 0.75em - &.is-right - justify-content: flex-end - padding-left: 0.75em - .icon - &:first-child - margin-right: 0.5em - &:last-child - margin-left: 0.5em - // Alignment - &.is-centered - ul - justify-content: center - &.is-right - ul - justify-content: flex-end - // Styles - &.is-boxed - a - border: 1px solid transparent - border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0 - &:hover - background-color: $tabs-boxed-link-hover-background-color - border-bottom-color: $tabs-boxed-link-hover-border-bottom-color - li - &.is-active - a - background-color: $tabs-boxed-link-active-background-color - border-color: $tabs-boxed-link-active-border-color - border-bottom-color: $tabs-boxed-link-active-border-bottom-color !important - &.is-fullwidth - li - flex-grow: 1 - flex-shrink: 0 - &.is-toggle - a - border-color: $tabs-toggle-link-border-color - border-style: $tabs-toggle-link-border-style - border-width: $tabs-toggle-link-border-width - margin-bottom: 0 - position: relative - &:hover - background-color: $tabs-toggle-link-hover-background-color - border-color: $tabs-toggle-link-hover-border-color - z-index: 2 - li - & + li - margin-left: -#{$tabs-toggle-link-border-width} - &:first-child a - border-radius: $tabs-toggle-link-radius 0 0 $tabs-toggle-link-radius - &:last-child a - border-radius: 0 $tabs-toggle-link-radius $tabs-toggle-link-radius 0 - &.is-active - a - background-color: $tabs-toggle-link-active-background-color - border-color: $tabs-toggle-link-active-border-color - color: $tabs-toggle-link-active-color - z-index: 1 - ul - border-bottom: none - &.is-toggle-rounded - li - &:first-child a - border-bottom-left-radius: $radius-rounded - border-top-left-radius: $radius-rounded - padding-left: 1.25em - &:last-child a - border-bottom-right-radius: $radius-rounded - border-top-right-radius: $radius-rounded - padding-right: 1.25em - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large diff --git a/webapp/src/scss/sass/elements/_all.sass b/webapp/src/scss/sass/elements/_all.sass deleted file mode 100644 index 2234322ab5645290def4b9c04ad8c66a23d9ee52..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/_all.sass +++ /dev/null @@ -1,16 +0,0 @@ -@charset "utf-8" - -@import "box.sass" -@import "button.sass" -@import "container.sass" -@import "content.sass" -@import "form.sass" -@import "icon.sass" -@import "image.sass" -@import "notification.sass" -@import "progress.sass" -@import "table.sass" -@import "tag.sass" -@import "title.sass" - -@import "other.sass" diff --git a/webapp/src/scss/sass/elements/box.sass b/webapp/src/scss/sass/elements/box.sass deleted file mode 100644 index df185428ad40fbfc44cab8d49df69c482aad0e1a..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/box.sass +++ /dev/null @@ -1,24 +0,0 @@ -$box-color: $text !default -$box-background-color: $white !default -$box-radius: $radius-large !default -$box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default -$box-padding: 1.25rem !default - -$box-link-hover-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link !default -$box-link-active-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link !default - -.box - +block - background-color: $box-background-color - border-radius: $box-radius - box-shadow: $box-shadow - color: $box-color - display: block - padding: $box-padding - -a.box - &:hover, - &:focus - box-shadow: $box-link-hover-shadow - &:active - box-shadow: $box-link-active-shadow diff --git a/webapp/src/scss/sass/elements/button.sass b/webapp/src/scss/sass/elements/button.sass deleted file mode 100644 index 9331216a7c7a31e479940622d4745dfbf5fe85f6..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/button.sass +++ /dev/null @@ -1,255 +0,0 @@ -$button-color: $grey-darker !default -$button-background-color: $white !default - -$button-border-color: $grey-lighter !default -$button-border-width: $control-border-width !default - -$button-padding-vertical: calc(0.375em - #{$button-border-width}) !default -$button-padding-horizontal: 0.75em !default - -$button-hover-color: $link-hover !default -$button-hover-border-color: $link-hover-border !default - -$button-focus-color: $link-focus !default -$button-focus-border-color: $link-focus-border !default -$button-focus-box-shadow-size: 0 0 0 0.125em !default -$button-focus-box-shadow-color: rgba($link, 0.25) !default - -$button-active-color: $link-active !default -$button-active-border-color: $link-active-border !default - -$button-text-color: $text !default -$button-text-hover-background-color: $background !default -$button-text-hover-color: $text-strong !default - -$button-disabled-background-color: $white !default -$button-disabled-border-color: $grey-lighter !default -$button-disabled-shadow: none !default -$button-disabled-opacity: 0.5 !default - -$button-static-color: $grey !default -$button-static-background-color: $white-ter !default -$button-static-border-color: $grey-lighter !default - -// The button sizes use mixins so they can be used at different breakpoints -=button-small - border-radius: $radius-small - font-size: $size-small -=button-medium - font-size: $size-medium -=button-large - font-size: $size-large - -.button - +control - +unselectable - background-color: $button-background-color - border-color: $button-border-color - border-width: $button-border-width - color: $button-color - cursor: pointer - justify-content: center - padding-bottom: $button-padding-vertical - padding-left: $button-padding-horizontal - padding-right: $button-padding-horizontal - padding-top: $button-padding-vertical - text-align: center - white-space: nowrap - strong - color: inherit - .icon - &, - &.is-small, - &.is-medium, - &.is-large - height: 1.5em - width: 1.5em - &:first-child:not(:last-child) - margin-left: calc(-0.375em - #{$button-border-width}) - margin-right: 0.1875em - &:last-child:not(:first-child) - margin-left: 0.1875em - margin-right: calc(-0.375em - #{$button-border-width}) - &:first-child:last-child - margin-left: calc(-0.375em - #{$button-border-width}) - margin-right: calc(-0.375em - #{$button-border-width}) - // States - &:hover, - &.is-hovered - border-color: $button-hover-border-color - color: $button-hover-color - &:focus, - &.is-focused - border-color: $button-focus-border-color - color: $button-focus-color - &:not(:active) - box-shadow: $button-focus-box-shadow-size $button-focus-box-shadow-color - &:active, - &.is-active - border-color: $button-active-border-color - color: $button-active-color - // Colors - &.is-text - background-color: transparent - border-color: transparent - color: $button-text-color - text-decoration: underline - &:hover, - &.is-hovered, - &:focus, - &.is-focused - background-color: $button-text-hover-background-color - color: $button-text-hover-color - &:active, - &.is-active - background-color: darken($button-text-hover-background-color, 5%) - color: $button-text-hover-color - &[disabled] - background-color: transparent - border-color: transparent - box-shadow: none - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - border-color: transparent - color: $color-invert - &:hover, - &.is-hovered - background-color: darken($color, 2.5%) - border-color: transparent - color: $color-invert - &:focus, - &.is-focused - border-color: transparent - color: $color-invert - &:not(:active) - box-shadow: $button-focus-box-shadow-size rgba($color, 0.25) - &:active, - &.is-active - background-color: darken($color, 5%) - border-color: transparent - color: $color-invert - &[disabled] - background-color: $color - border-color: transparent - box-shadow: none - &.is-inverted - background-color: $color-invert - color: $color - &:hover - background-color: darken($color-invert, 5%) - &[disabled] - background-color: $color-invert - border-color: transparent - box-shadow: none - color: $color - &.is-loading - &::after - border-color: transparent transparent $color-invert $color-invert !important - &.is-outlined - background-color: transparent - border-color: $color - color: $color - &:hover, - &:focus - background-color: $color - border-color: $color - color: $color-invert - &.is-loading - &::after - border-color: transparent transparent $color $color !important - &[disabled] - background-color: transparent - border-color: $color - box-shadow: none - color: $color - &.is-inverted.is-outlined - background-color: transparent - border-color: $color-invert - color: $color-invert - &:hover, - &:focus - background-color: $color-invert - color: $color - &[disabled] - background-color: transparent - border-color: $color-invert - box-shadow: none - color: $color-invert - // Sizes - &.is-small - +button-small - &.is-medium - +button-medium - &.is-large - +button-large - // Modifiers - &[disabled] - background-color: $button-disabled-background-color - border-color: $button-disabled-border-color - box-shadow: $button-disabled-shadow - opacity: $button-disabled-opacity - &.is-fullwidth - display: flex - width: 100% - &.is-loading - color: transparent !important - pointer-events: none - &::after - +loader - +center(1em) - position: absolute !important - &.is-static - background-color: $button-static-background-color - border-color: $button-static-border-color - color: $button-static-color - box-shadow: none - pointer-events: none - &.is-rounded - border-radius: $radius-rounded - padding-left: 1em - padding-right: 1em - -.buttons - align-items: center - display: flex - flex-wrap: wrap - justify-content: flex-start - .button - margin-bottom: 0.5rem - &:not(:last-child) - margin-right: 0.5rem - &:last-child - margin-bottom: -0.5rem - &:not(:last-child) - margin-bottom: 1rem - &.has-addons - .button - &:not(:first-child) - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &:not(:last-child) - border-bottom-right-radius: 0 - border-top-right-radius: 0 - margin-right: -1px - &:last-child - margin-right: 0 - &:hover, - &.is-hovered - z-index: 2 - &:focus, - &.is-focused, - &:active, - &.is-active, - &.is-selected - z-index: 3 - &:hover - z-index: 4 - &.is-expanded - flex-grow: 1 - &.is-centered - justify-content: center - &.is-right - justify-content: flex-end diff --git a/webapp/src/scss/sass/elements/container.sass b/webapp/src/scss/sass/elements/container.sass deleted file mode 100644 index 2aaf591aec594e6a8e0faf3484a119a44365cb41..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/container.sass +++ /dev/null @@ -1,25 +0,0 @@ -.container - margin: 0 auto - position: relative - +desktop - max-width: $desktop - (2 * $gap) - width: $desktop - (2 * $gap) - &.is-fluid - margin-left: $gap - margin-right: $gap - max-width: none - width: auto - +until-widescreen - &.is-widescreen - max-width: $widescreen - (2 * $gap) - width: auto - +until-fullhd - &.is-fullhd - max-width: $fullhd - (2 * $gap) - width: auto - +widescreen - max-width: $widescreen - (2 * $gap) - width: $widescreen - (2 * $gap) - +fullhd - max-width: $fullhd - (2 * $gap) - width: $fullhd - (2 * $gap) diff --git a/webapp/src/scss/sass/elements/content.sass b/webapp/src/scss/sass/elements/content.sass deleted file mode 100644 index 8951a824f94600f6ee34a9fe78502961296b6900..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/content.sass +++ /dev/null @@ -1,141 +0,0 @@ -$content-heading-color: $text-strong !default -$content-heading-weight: $weight-semibold !default -$content-heading-line-height: 1.125 !default - -$content-blockquote-background-color: $background !default -$content-blockquote-border-left: 5px solid $border !default -$content-blockquote-padding: 1.25em 1.5em !default - -$content-pre-padding: 1.25em 1.5em !default - -$content-table-cell-border: 1px solid $border !default -$content-table-cell-border-width: 0 0 1px !default -$content-table-cell-padding: 0.5em 0.75em !default -$content-table-cell-heading-color: $text-strong !default -$content-table-head-cell-border-width: 0 0 2px !default -$content-table-head-cell-color: $text-strong !default -$content-table-foot-cell-border-width: 2px 0 0 !default -$content-table-foot-cell-color: $text-strong !default - -.content - +block - // Inline - li + li - margin-top: 0.25em - // Block - p, - dl, - ol, - ul, - blockquote, - pre, - table - &:not(:last-child) - margin-bottom: 1em - h1, - h2, - h3, - h4, - h5, - h6 - color: $content-heading-color - font-weight: $content-heading-weight - line-height: $content-heading-line-height - h1 - font-size: 2em - margin-bottom: 0.5em - &:not(:first-child) - margin-top: 1em - h2 - font-size: 1.75em - margin-bottom: 0.5714em - &:not(:first-child) - margin-top: 1.1428em - h3 - font-size: 1.5em - margin-bottom: 0.6666em - &:not(:first-child) - margin-top: 1.3333em - h4 - font-size: 1.25em - margin-bottom: 0.8em - h5 - font-size: 1.125em - margin-bottom: 0.8888em - h6 - font-size: 1em - margin-bottom: 1em - blockquote - background-color: $content-blockquote-background-color - border-left: $content-blockquote-border-left - padding: $content-blockquote-padding - ol - list-style: decimal outside - margin-left: 2em - margin-top: 1em - ul - list-style: disc outside - margin-left: 2em - margin-top: 1em - ul - list-style-type: circle - margin-top: 0.5em - ul - list-style-type: square - dd - margin-left: 2em - figure - margin-left: 2em - margin-right: 2em - text-align: center - &:not(:first-child) - margin-top: 2em - &:not(:last-child) - margin-bottom: 2em - img - display: inline-block - figcaption - font-style: italic - pre - +overflow-touch - overflow-x: auto - padding: $content-pre-padding - white-space: pre - word-wrap: normal - sup, - sub - font-size: 75% - table - width: 100% - td, - th - border: $content-table-cell-border - border-width: $content-table-cell-border-width - padding: $content-table-cell-padding - vertical-align: top - th - color: $content-table-cell-heading-color - text-align: left - thead - td, - th - border-width: $content-table-head-cell-border-width - color: $content-table-head-cell-color - tfoot - td, - th - border-width: $content-table-foot-cell-border-width - color: $content-table-foot-cell-color - tbody - tr - &:last-child - td, - th - border-bottom-width: 0 - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large diff --git a/webapp/src/scss/sass/elements/form.sass b/webapp/src/scss/sass/elements/form.sass deleted file mode 100644 index 49ae691f759c2a44790526a9059e700bb7056a49..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/form.sass +++ /dev/null @@ -1,625 +0,0 @@ -$input-color: $grey-darker !default -$input-background-color: $white !default -$input-border-color: $grey-lighter !default -$input-shadow: inset 0 1px 2px rgba($black, 0.1) !default - -$input-hover-color: $grey-darker !default -$input-hover-border-color: $grey-light !default - -$input-focus-color: $grey-darker !default -$input-focus-border-color: $link !default -$input-focus-box-shadow-size: 0 0 0 0.125em !default -$input-focus-box-shadow-color: rgba($link, 0.25) !default - -$input-disabled-color: $text-light !default -$input-disabled-background-color: $background !default -$input-disabled-border-color: $background !default - -$input-arrow: $link !default - -$input-icon-color: $grey-lighter !default -$input-icon-active-color: $grey !default - -$input-radius: $radius !default - -$file-border-color: $border !default -$file-radius: $radius !default - -$file-cta-background-color: $white-ter !default -$file-cta-color: $grey-dark !default -$file-cta-hover-color: $grey-darker !default -$file-cta-active-color: $grey-darker !default - -$file-name-border-color: $border !default -$file-name-border-style: solid !default -$file-name-border-width: 1px 1px 1px 0 !default -$file-name-max-width: 16em !default - -$label-color: $grey-darker !default -$label-weight: $weight-bold !default - -$help-size: $size-small !default - -=input - +control - background-color: $input-background-color - border-color: $input-border-color - color: $input-color - +placeholder - color: rgba($input-color, 0.3) - &:hover, - &.is-hovered - border-color: $input-hover-border-color - &:focus, - &.is-focused, - &:active, - &.is-active - border-color: $input-focus-border-color - box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color - &[disabled] - background-color: $input-disabled-background-color - border-color: $input-disabled-border-color - box-shadow: none - color: $input-disabled-color - +placeholder - color: rgba($input-disabled-color, 0.3) - -.input, -.textarea - +input - box-shadow: $input-shadow - max-width: 100% - width: 100% - &[readonly] - box-shadow: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - border-color: $color - &:focus, - &.is-focused, - &:active, - &.is-active - box-shadow: $input-focus-box-shadow-size rgba($color, 0.25) - // Sizes - &.is-small - +control-small - &.is-medium - +control-medium - &.is-large - +control-large - // Modifiers - &.is-fullwidth - display: block - width: 100% - &.is-inline - display: inline - width: auto - -.input - &.is-rounded - border-radius: $radius-rounded - padding-left: 1em - padding-right: 1em - &.is-static - background-color: transparent - border-color: transparent - box-shadow: none - padding-left: 0 - padding-right: 0 - -.textarea - display: block - max-width: 100% - min-width: 100% - padding: 0.625em - resize: vertical - &:not([rows]) - max-height: 600px - min-height: 120px - &[rows] - height: initial - // Modifiers - &.has-fixed-size - resize: none - -.checkbox, -.radio - cursor: pointer - display: inline-block - line-height: 1.25 - position: relative - input - cursor: pointer - &:hover - color: $input-hover-color - &[disabled] - color: $input-disabled-color - cursor: not-allowed - -.radio - & + .radio - margin-left: 0.5em - -.select - display: inline-block - max-width: 100% - position: relative - vertical-align: top - &:not(.is-multiple) - height: 2.25em - &:not(.is-multiple):not(.is-loading) - &::after - +arrow($input-arrow) - right: 1.125em - z-index: 4 - &.is-rounded - select - border-radius: $radius-rounded - padding-left: 1em - select - +input - cursor: pointer - display: block - font-size: 1em - max-width: 100% - outline: none - &::-ms-expand - display: none - &[disabled]:hover - border-color: $input-disabled-border-color - &:not([multiple]) - padding-right: 2.5em - &[multiple] - height: initial - padding: 0 - option - padding: 0.5em 1em - // States - &:not(.is-multiple):not(.is-loading):hover - &::after - border-color: $input-hover-color - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - &:not(:hover)::after - border-color: $color - select - border-color: $color - &:hover, - &.is-hovered - border-color: darken($color, 5%) - &:focus, - &.is-focused, - &:active, - &.is-active - box-shadow: $input-focus-box-shadow-size rgba($color, 0.25) - // Sizes - &.is-small - +control-small - &.is-medium - +control-medium - &.is-large - +control-large - // Modifiers - &.is-disabled - &::after - border-color: $input-disabled-color - &.is-fullwidth - width: 100% - select - width: 100% - &.is-loading - &::after - +loader - margin-top: 0 - position: absolute - right: 0.625em - top: 0.625em - transform: none - &.is-small:after - font-size: $size-small - &.is-medium:after - font-size: $size-medium - &.is-large:after - font-size: $size-large - -.file - +unselectable - align-items: stretch - display: flex - justify-content: flex-start - position: relative - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - .file-cta - background-color: $color - border-color: transparent - color: $color-invert - &:hover, - &.is-hovered - .file-cta - background-color: darken($color, 2.5%) - border-color: transparent - color: $color-invert - &:focus, - &.is-focused - .file-cta - border-color: transparent - box-shadow: 0 0 0.5em rgba($color, 0.25) - color: $color-invert - &:active, - &.is-active - .file-cta - background-color: darken($color, 5%) - border-color: transparent - color: $color-invert - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - .file-icon - .fa - font-size: 21px - &.is-large - font-size: $size-large - .file-icon - .fa - font-size: 28px - // Modifiers - &.has-name - .file-cta - border-bottom-right-radius: 0 - border-top-right-radius: 0 - .file-name - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &.is-empty - .file-cta - border-radius: $file-radius - .file-name - display: none - &.is-boxed - .file-label - flex-direction: column - .file-cta - flex-direction: column - height: auto - padding: 1em 3em - .file-name - border-width: 0 1px 1px - .file-icon - height: 1.5em - width: 1.5em - .fa - font-size: 21px - &.is-small - .file-icon .fa - font-size: 14px - &.is-medium - .file-icon .fa - font-size: 28px - &.is-large - .file-icon .fa - font-size: 35px - &.has-name - .file-cta - border-radius: $file-radius $file-radius 0 0 - .file-name - border-radius: 0 0 $file-radius $file-radius - border-width: 0 1px 1px - &.is-centered - justify-content: center - &.is-fullwidth - .file-label - width: 100% - .file-name - flex-grow: 1 - max-width: none - &.is-right - justify-content: flex-end - .file-cta - border-radius: 0 $file-radius $file-radius 0 - .file-name - border-radius: $file-radius 0 0 $file-radius - border-width: 1px 0 1px 1px - order: -1 - -.file-label - align-items: stretch - display: flex - cursor: pointer - justify-content: flex-start - overflow: hidden - position: relative - &:hover - .file-cta - background-color: darken($file-cta-background-color, 2.5%) - color: $file-cta-hover-color - .file-name - border-color: darken($file-name-border-color, 2.5%) - &:active - .file-cta - background-color: darken($file-cta-background-color, 5%) - color: $file-cta-active-color - .file-name - border-color: darken($file-name-border-color, 5%) - -.file-input - height: 0.01em - left: 0 - outline: none - position: absolute - top: 0 - width: 0.01em - -.file-cta, -.file-name - +control - border-color: $file-border-color - border-radius: $file-radius - font-size: 1em - padding-left: 1em - padding-right: 1em - white-space: nowrap - -.file-cta - background-color: $file-cta-background-color - color: $file-cta-color - -.file-name - border-color: $file-name-border-color - border-style: $file-name-border-style - border-width: $file-name-border-width - display: block - max-width: $file-name-max-width - overflow: hidden - text-align: left - text-overflow: ellipsis - -.file-icon - align-items: center - display: flex - height: 1em - justify-content: center - margin-right: 0.5em - width: 1em - .fa - font-size: 14px - -.label - color: $label-color - display: block - font-size: $size-normal - font-weight: $label-weight - &:not(:last-child) - margin-bottom: 0.5em - // Sizes - &.is-small - font-size: $size-small - &.is-medium - font-size: $size-medium - &.is-large - font-size: $size-large - -.help - display: block - font-size: $help-size - margin-top: 0.25rem - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - color: $color - -// Containers - -.field - &:not(:last-child) - margin-bottom: 0.75rem - // Modifiers - &.has-addons - display: flex - justify-content: flex-start - .control - &:not(:last-child) - margin-right: -1px - &:not(:first-child):not(:last-child) - .button, - .input, - .select select - border-radius: 0 - &:first-child - .button, - .input, - .select select - border-bottom-right-radius: 0 - border-top-right-radius: 0 - &:last-child - .button, - .input, - .select select - border-bottom-left-radius: 0 - border-top-left-radius: 0 - .button, - .input, - .select select - &:hover, - &.is-hovered - z-index: 2 - &:focus, - &.is-focused, - &:active, - &.is-active - z-index: 3 - &:hover - z-index: 4 - &.is-expanded - flex-grow: 1 - &.has-addons-centered - justify-content: center - &.has-addons-right - justify-content: flex-end - &.has-addons-fullwidth - .control - flex-grow: 1 - flex-shrink: 0 - &.is-grouped - display: flex - justify-content: flex-start - & > .control - flex-shrink: 0 - &:not(:last-child) - margin-bottom: 0 - margin-right: 0.75rem - &.is-expanded - flex-grow: 1 - flex-shrink: 1 - &.is-grouped-centered - justify-content: center - &.is-grouped-right - justify-content: flex-end - &.is-grouped-multiline - flex-wrap: wrap - & > .control - &:last-child, - &:not(:last-child) - margin-bottom: 0.75rem - &:last-child - margin-bottom: -0.75rem - &:not(:last-child) - margin-bottom: 0 - - &.is-horizontal - +tablet - display: flex - -.field-label - .label - font-size: inherit - +mobile - margin-bottom: 0.5rem - +tablet - flex-basis: 0 - flex-grow: 1 - flex-shrink: 0 - margin-right: 1.5rem - text-align: right - &.is-small - font-size: $size-small - padding-top: 0.375em - &.is-normal - padding-top: 0.375em - &.is-medium - font-size: $size-medium - padding-top: 0.375em - &.is-large - font-size: $size-large - padding-top: 0.375em - -.field-body - .field .field - margin-bottom: 0 - +tablet - display: flex - flex-basis: 0 - flex-grow: 5 - flex-shrink: 1 - .field - margin-bottom: 0 - & > .field - flex-shrink: 1 - &:not(.is-narrow) - flex-grow: 1 - &:not(:last-child) - margin-right: 0.75rem - -.control - font-size: $size-normal - position: relative - text-align: left - // Modifiers - // DEPRECATED - &.has-icon - .icon - color: $input-icon-color - height: 2.25em - pointer-events: none - position: absolute - top: 0 - width: 2.25em - z-index: 4 - .input - &:focus - & + .icon - color: $input-icon-active-color - &.is-small - & + .icon - font-size: $size-small - &.is-medium - & + .icon - font-size: $size-medium - &.is-large - & + .icon - font-size: $size-large - &:not(.has-icon-right) - .icon - left: 0 - .input - padding-left: 2.25em - &.has-icon-right - .icon - right: 0 - .input - padding-right: 2.25em - &.has-icons-left, - &.has-icons-right - .input, - .select - &:focus - & ~ .icon - color: $input-icon-active-color - &.is-small ~ .icon - font-size: $size-small - &.is-medium ~ .icon - font-size: $size-medium - &.is-large ~ .icon - font-size: $size-large - .icon - color: $input-icon-color - height: 2.25em - pointer-events: none - position: absolute - top: 0 - width: 2.25em - z-index: 4 - &.has-icons-left - .input, - .select select - padding-left: 2.25em - .icon.is-left - left: 0 - &.has-icons-right - .input, - .select select - padding-right: 2.25em - .icon.is-right - right: 0 - &.is-loading - &::after - +loader - position: absolute !important - right: 0.625em - top: 0.625em - z-index: 4 - &.is-small:after - font-size: $size-small - &.is-medium:after - font-size: $size-medium - &.is-large:after - font-size: $size-large diff --git a/webapp/src/scss/sass/elements/icon.sass b/webapp/src/scss/sass/elements/icon.sass deleted file mode 100644 index 988546c7fc2d24b1d38e81afec65e655366009fc..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/icon.sass +++ /dev/null @@ -1,21 +0,0 @@ -$icon-dimensions: 1.5rem !default -$icon-dimensions-small: 1rem !default -$icon-dimensions-medium: 2rem !default -$icon-dimensions-large: 3rem !default - -.icon - align-items: center - display: inline-flex - justify-content: center - height: $icon-dimensions - width: $icon-dimensions - // Sizes - &.is-small - height: $icon-dimensions-small - width: $icon-dimensions-small - &.is-medium - height: $icon-dimensions-medium - width: $icon-dimensions-medium - &.is-large - height: $icon-dimensions-large - width: $icon-dimensions-large diff --git a/webapp/src/scss/sass/elements/image.sass b/webapp/src/scss/sass/elements/image.sass deleted file mode 100644 index 10bad209f11882a6e94b2023aef3ea07688ce497..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/image.sass +++ /dev/null @@ -1,68 +0,0 @@ -$dimensions: 16 24 32 48 64 96 128 !default - -.image - display: block - position: relative - img - display: block - height: auto - width: 100% - &.is-rounded - border-radius: $radius-rounded - // Ratio - &.is-square, - &.is-1by1, - &.is-5by4, - &.is-4by3, - &.is-3by2, - &.is-5by3, - &.is-16by9, - &.is-2by1, - &.is-3by1, - &.is-4by5, - &.is-3by4, - &.is-2by3, - &.is-3by5, - &.is-9by16, - &.is-1by2, - &.is-1by3 - img - +overlay - height: 100% - width: 100% - &.is-square, - &.is-1by1 - padding-top: 100% - &.is-5by4 - padding-top: 80% - &.is-4by3 - padding-top: 75% - &.is-3by2 - padding-top: 66.6666% - &.is-5by3 - padding-top: 60% - &.is-16by9 - padding-top: 56.25% - &.is-2by1 - padding-top: 50% - &.is-3by1 - padding-top: 33.3333% - &.is-4by5 - padding-top: 125% - &.is-3by4 - padding-top: 133.3333% - &.is-2by3 - padding-top: 150% - &.is-3by5 - padding-top: 166.6666% - &.is-9by16 - padding-top: 177.7777% - &.is-1by2 - padding-top: 200% - &.is-1by3 - padding-top: 300% - // Sizes - @each $dimension in $dimensions - &.is-#{$dimension}x#{$dimension} - height: $dimension * 1px - width: $dimension * 1px diff --git a/webapp/src/scss/sass/elements/notification.sass b/webapp/src/scss/sass/elements/notification.sass deleted file mode 100644 index 8daccaad16425bcc787c9e2a3153fc8b22b919e3..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/notification.sass +++ /dev/null @@ -1,35 +0,0 @@ -$notification-background-color: $background !default -$notification-radius: $radius !default -$notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default - -.notification - +block - background-color: $notification-background-color - border-radius: $notification-radius - padding: $notification-padding - position: relative - a:not(.button) - color: currentColor - text-decoration: underline - strong - color: currentColor - code, - pre - background: $white - pre code - background: transparent - & > .delete - position: absolute - right: 0.5rem - top: 0.5rem - .title, - .subtitle, - .content - color: currentColor - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert diff --git a/webapp/src/scss/sass/elements/other.sass b/webapp/src/scss/sass/elements/other.sass deleted file mode 100644 index b10d1fa348738798e634292bd0b0b3fe79e12eef..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/other.sass +++ /dev/null @@ -1,39 +0,0 @@ -.block - +block - -.delete - +delete - -.heading - display: block - font-size: 11px - letter-spacing: 1px - margin-bottom: 5px - text-transform: uppercase - -.highlight - +block - font-weight: $weight-normal - max-width: 100% - overflow: hidden - padding: 0 - pre - overflow: auto - max-width: 100% - -.loader - +loader - -.number - align-items: center - background-color: $background - border-radius: $radius-rounded - display: inline-flex - font-size: $size-medium - height: 2em - justify-content: center - margin-right: 1.5rem - min-width: 2.5em - padding: 0.25rem 0.5rem - text-align: center - vertical-align: top diff --git a/webapp/src/scss/sass/elements/progress.sass b/webapp/src/scss/sass/elements/progress.sass deleted file mode 100644 index f6e8de37aaeff026888227ff27f42a65fe0d385c..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/progress.sass +++ /dev/null @@ -1,40 +0,0 @@ -$progress-bar-background-color: $border !default -$progress-value-background-color: $text !default - -.progress - +block - -moz-appearance: none - -webkit-appearance: none - border: none - border-radius: $radius-rounded - display: block - height: $size-normal - overflow: hidden - padding: 0 - width: 100% - &::-webkit-progress-bar - background-color: $progress-bar-background-color - &::-webkit-progress-value - background-color: $progress-value-background-color - &::-moz-progress-bar - background-color: $progress-value-background-color - &::-ms-fill - background-color: $progress-value-background-color - border: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - &.is-#{$name} - &::-webkit-progress-value - background-color: $color - &::-moz-progress-bar - background-color: $color - &::-ms-fill - background-color: $color - // Sizes - &.is-small - height: $size-small - &.is-medium - height: $size-medium - &.is-large - height: $size-large diff --git a/webapp/src/scss/sass/elements/table.sass b/webapp/src/scss/sass/elements/table.sass deleted file mode 100644 index d0e94e561696db692afd73bb5a1c5f98ecc880b9..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/table.sass +++ /dev/null @@ -1,117 +0,0 @@ -$table-color: $grey-darker !default -$table-background-color: $white !default - -$table-cell-border: 1px solid $grey-lighter !default -$table-cell-border-width: 0 0 1px !default -$table-cell-padding: 0.5em 0.75em !default -$table-cell-heading-color: $text-strong !default - -$table-head-cell-border-width: 0 0 2px !default -$table-head-cell-color: $text-strong !default -$table-foot-cell-border-width: 2px 0 0 !default -$table-foot-cell-color: $text-strong !default - -$table-row-hover-background-color: $white-bis !default - -$table-row-active-background-color: $primary !default -$table-row-active-color: $primary-invert !default - -$table-striped-row-even-background-color: $white-bis !default -$table-striped-row-even-hover-background-color: $white-ter !default - -.table - +block - background-color: $table-background-color - color: $table-color - td, - th - border: $table-cell-border - border-width: $table-cell-border-width - padding: $table-cell-padding - vertical-align: top - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - border-color: $color - color: $color-invert - // Modifiers - &.is-narrow - white-space: nowrap - width: 1% - &.is-selected - background-color: $table-row-active-background-color - color: $table-row-active-color - a, - strong - color: currentColor - th - color: $table-cell-heading-color - text-align: left - tr - &.is-selected - background-color: $table-row-active-background-color - color: $table-row-active-color - a, - strong - color: currentColor - td, - th - border-color: $table-row-active-color - color: currentColor - thead - td, - th - border-width: $table-head-cell-border-width - color: $table-head-cell-color - tfoot - td, - th - border-width: $table-foot-cell-border-width - color: $table-foot-cell-color - tbody - tr - &:last-child - td, - th - border-bottom-width: 0 - // Modifiers - &.is-bordered - td, - th - border-width: 1px - tr - &:last-child - td, - th - border-bottom-width: 1px - &.is-fullwidth - width: 100% - &.is-hoverable - tbody - tr:not(.is-selected) - &:hover - background-color: $table-row-hover-background-color - &.is-striped - tbody - tr:not(.is-selected) - &:hover - background-color: $table-striped-row-even-hover-background-color - &.is-narrow - td, - th - padding: 0.25em 0.5em - &.is-striped - tbody - tr:not(.is-selected) - &:nth-child(even) - background-color: $table-striped-row-even-background-color - -.table-container - +block - +overflow-touch - overflow: auto - overflow-y: hidden - max-width: 100% diff --git a/webapp/src/scss/sass/elements/tag.sass b/webapp/src/scss/sass/elements/tag.sass deleted file mode 100644 index 7c250546158a3bda79a400136bb57fee98fc67e9..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/tag.sass +++ /dev/null @@ -1,111 +0,0 @@ -$tag-background-color: $background !default -$tag-color: $text !default -$tag-radius: $radius !default -$tag-delete-margin: 1px !default - -.tags - align-items: center - display: flex - flex-wrap: wrap - justify-content: flex-start - .tag - margin-bottom: 0.5rem - &:not(:last-child) - margin-right: 0.5rem - &:last-child - margin-bottom: -0.5rem - &:not(:last-child) - margin-bottom: 1rem - &.has-addons - .tag - margin-right: 0 - &:not(:first-child) - border-bottom-left-radius: 0 - border-top-left-radius: 0 - &:not(:last-child) - border-bottom-right-radius: 0 - border-top-right-radius: 0 - &.is-centered - justify-content: center - .tag - margin-right: 0.25rem - margin-left: 0.25rem - &.is-right - justify-content: flex-end - .tag - &:not(:first-child) - margin-left: 0.5rem - &:not(:last-child) - margin-right: 0 - -.tag:not(body) - align-items: center - background-color: $tag-background-color - border-radius: $tag-radius - color: $tag-color - display: inline-flex - font-size: $size-small - height: 2em - justify-content: center - line-height: 1.5 - padding-left: 0.75em - padding-right: 0.75em - white-space: nowrap - .delete - margin-left: 0.25rem - margin-right: -0.375rem - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - // Sizes - &.is-medium - font-size: $size-normal - &.is-large - font-size: $size-medium - .icon - &:first-child:not(:last-child) - margin-left: -0.375em - margin-right: 0.1875em - &:last-child:not(:first-child) - margin-left: 0.1875em - margin-right: -0.375em - &:first-child:last-child - margin-left: -0.375em - margin-right: -0.375em - // Modifiers - &.is-delete - margin-left: $tag-delete-margin - padding: 0 - position: relative - width: 2em - &::before, - &::after - background-color: currentColor - content: "" - display: block - left: 50% - position: absolute - top: 50% - transform: translateX(-50%) translateY(-50%) rotate(45deg) - transform-origin: center center - &::before - height: 1px - width: 50% - &::after - height: 50% - width: 1px - &:hover, - &:focus - background-color: darken($tag-background-color, 5%) - &:active - background-color: darken($tag-background-color, 10%) - &.is-rounded - border-radius: $radius-rounded - -a.tag - &:hover - text-decoration: underline diff --git a/webapp/src/scss/sass/elements/title.sass b/webapp/src/scss/sass/elements/title.sass deleted file mode 100644 index 46f66680206e1d2425af2a5c3afd4e3110dd13fb..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/elements/title.sass +++ /dev/null @@ -1,64 +0,0 @@ -$title-color: $grey-darker !default -$title-size: $size-3 !default -$title-weight: $weight-semibold !default -$title-line-height: 1.125 !default -$title-strong-color: inherit !default -$title-strong-weight: inherit !default -$title-sub-size: 0.75em !default -$title-sup-size: 0.75em !default - -$subtitle-color: $grey-dark !default -$subtitle-size: $size-5 !default -$subtitle-weight: $weight-normal !default -$subtitle-line-height: 1.25 !default -$subtitle-strong-color: $grey-darker !default -$subtitle-strong-weight: $weight-semibold !default -$subtitle-negative-margin: -1.25rem !default - -.title, -.subtitle - +block - word-break: break-word - em, - span - font-weight: inherit - sub - font-size: $title-sub-size - sup - font-size: $title-sup-size - .tag - vertical-align: middle - -.title - color: $title-color - font-size: $title-size - font-weight: $title-weight - line-height: $title-line-height - strong - color: $title-strong-color - font-weight: $title-strong-weight - & + .highlight - margin-top: -0.75rem - &:not(.is-spaced) + .subtitle - margin-top: $subtitle-negative-margin - // Sizes - @each $size in $sizes - $i: index($sizes, $size) - &.is-#{$i} - font-size: $size - -.subtitle - color: $subtitle-color - font-size: $subtitle-size - font-weight: $subtitle-weight - line-height: $subtitle-line-height - strong - color: $subtitle-strong-color - font-weight: $subtitle-strong-weight - &:not(.is-spaced) + .title - margin-top: $subtitle-negative-margin - // Sizes - @each $size in $sizes - $i: index($sizes, $size) - &.is-#{$i} - font-size: $size diff --git a/webapp/src/scss/sass/grid/_all.sass b/webapp/src/scss/sass/grid/_all.sass deleted file mode 100644 index e53070f6c32c6c3cca390dd596b5a373f737112a..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/grid/_all.sass +++ /dev/null @@ -1,4 +0,0 @@ -@charset "utf-8" - -@import "columns.sass" -@import "tiles.sass" diff --git a/webapp/src/scss/sass/grid/columns.sass b/webapp/src/scss/sass/grid/columns.sass deleted file mode 100644 index 0b5d4de9d3652161c2d700bff00bd07c2687ea85..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/grid/columns.sass +++ /dev/null @@ -1,477 +0,0 @@ -$column-gap: 0.75rem !default - -.column - display: block - flex-basis: 0 - flex-grow: 1 - flex-shrink: 1 - padding: $column-gap - .columns.is-mobile > &.is-narrow - flex: none - .columns.is-mobile > &.is-full - flex: none - width: 100% - .columns.is-mobile > &.is-three-quarters - flex: none - width: 75% - .columns.is-mobile > &.is-two-thirds - flex: none - width: 66.6666% - .columns.is-mobile > &.is-half - flex: none - width: 50% - .columns.is-mobile > &.is-one-third - flex: none - width: 33.3333% - .columns.is-mobile > &.is-one-quarter - flex: none - width: 25% - .columns.is-mobile > &.is-one-fifth - flex: none - width: 20% - .columns.is-mobile > &.is-two-fifths - flex: none - width: 40% - .columns.is-mobile > &.is-three-fifths - flex: none - width: 60% - .columns.is-mobile > &.is-four-fifths - flex: none - width: 80% - .columns.is-mobile > &.is-offset-three-quarters - margin-left: 75% - .columns.is-mobile > &.is-offset-two-thirds - margin-left: 66.6666% - .columns.is-mobile > &.is-offset-half - margin-left: 50% - .columns.is-mobile > &.is-offset-one-third - margin-left: 33.3333% - .columns.is-mobile > &.is-offset-one-quarter - margin-left: 25% - .columns.is-mobile > &.is-offset-one-fifth - margin-left: 20% - .columns.is-mobile > &.is-offset-two-fifths - margin-left: 40% - .columns.is-mobile > &.is-offset-three-fifths - margin-left: 60% - .columns.is-mobile > &.is-offset-four-fifths - margin-left: 80% - @for $i from 1 through 12 - .columns.is-mobile > &.is-#{$i} - flex: none - width: percentage($i / 12) - .columns.is-mobile > &.is-offset-#{$i} - margin-left: percentage($i / 12) - +mobile - &.is-narrow-mobile - flex: none - &.is-full-mobile - flex: none - width: 100% - &.is-three-quarters-mobile - flex: none - width: 75% - &.is-two-thirds-mobile - flex: none - width: 66.6666% - &.is-half-mobile - flex: none - width: 50% - &.is-one-third-mobile - flex: none - width: 33.3333% - &.is-one-quarter-mobile - flex: none - width: 25% - &.is-one-fifth-mobile - flex: none - width: 20% - &.is-two-fifths-mobile - flex: none - width: 40% - &.is-three-fifths-mobile - flex: none - width: 60% - &.is-four-fifths-mobile - flex: none - width: 80% - &.is-offset-three-quarters-mobile - margin-left: 75% - &.is-offset-two-thirds-mobile - margin-left: 66.6666% - &.is-offset-half-mobile - margin-left: 50% - &.is-offset-one-third-mobile - margin-left: 33.3333% - &.is-offset-one-quarter-mobile - margin-left: 25% - &.is-offset-one-fifth-mobile - margin-left: 20% - &.is-offset-two-fifths-mobile - margin-left: 40% - &.is-offset-three-fifths-mobile - margin-left: 60% - &.is-offset-four-fifths-mobile - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}-mobile - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-mobile - margin-left: percentage($i / 12) - +tablet - &.is-narrow, - &.is-narrow-tablet - flex: none - &.is-full, - &.is-full-tablet - flex: none - width: 100% - &.is-three-quarters, - &.is-three-quarters-tablet - flex: none - width: 75% - &.is-two-thirds, - &.is-two-thirds-tablet - flex: none - width: 66.6666% - &.is-half, - &.is-half-tablet - flex: none - width: 50% - &.is-one-third, - &.is-one-third-tablet - flex: none - width: 33.3333% - &.is-one-quarter, - &.is-one-quarter-tablet - flex: none - width: 25% - &.is-one-fifth, - &.is-one-fifth-tablet - flex: none - width: 20% - &.is-two-fifths, - &.is-two-fifths-tablet - flex: none - width: 40% - &.is-three-fifths, - &.is-three-fifths-tablet - flex: none - width: 60% - &.is-four-fifths, - &.is-four-fifths-tablet - flex: none - width: 80% - &.is-offset-three-quarters, - &.is-offset-three-quarters-tablet - margin-left: 75% - &.is-offset-two-thirds, - &.is-offset-two-thirds-tablet - margin-left: 66.6666% - &.is-offset-half, - &.is-offset-half-tablet - margin-left: 50% - &.is-offset-one-third, - &.is-offset-one-third-tablet - margin-left: 33.3333% - &.is-offset-one-quarter, - &.is-offset-one-quarter-tablet - margin-left: 25% - &.is-offset-one-fifth, - &.is-offset-one-fifth-tablet - margin-left: 20% - &.is-offset-two-fifths, - &.is-offset-two-fifths-tablet - margin-left: 40% - &.is-offset-three-fifths, - &.is-offset-three-fifths-tablet - margin-left: 60% - &.is-offset-four-fifths, - &.is-offset-four-fifths-tablet - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}, - &.is-#{$i}-tablet - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}, - &.is-offset-#{$i}-tablet - margin-left: percentage($i / 12) - +touch - &.is-narrow-touch - flex: none - &.is-full-touch - flex: none - width: 100% - &.is-three-quarters-touch - flex: none - width: 75% - &.is-two-thirds-touch - flex: none - width: 66.6666% - &.is-half-touch - flex: none - width: 50% - &.is-one-third-touch - flex: none - width: 33.3333% - &.is-one-quarter-touch - flex: none - width: 25% - &.is-one-fifth-touch - flex: none - width: 20% - &.is-two-fifths-touch - flex: none - width: 40% - &.is-three-fifths-touch - flex: none - width: 60% - &.is-four-fifths-touch - flex: none - width: 80% - &.is-offset-three-quarters-touch - margin-left: 75% - &.is-offset-two-thirds-touch - margin-left: 66.6666% - &.is-offset-half-touch - margin-left: 50% - &.is-offset-one-third-touch - margin-left: 33.3333% - &.is-offset-one-quarter-touch - margin-left: 25% - &.is-offset-one-fifth-touch - margin-left: 20% - &.is-offset-two-fifths-touch - margin-left: 40% - &.is-offset-three-fifths-touch - margin-left: 60% - &.is-offset-four-fifths-touch - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}-touch - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-touch - margin-left: percentage($i / 12) - +desktop - &.is-narrow-desktop - flex: none - &.is-full-desktop - flex: none - width: 100% - &.is-three-quarters-desktop - flex: none - width: 75% - &.is-two-thirds-desktop - flex: none - width: 66.6666% - &.is-half-desktop - flex: none - width: 50% - &.is-one-third-desktop - flex: none - width: 33.3333% - &.is-one-quarter-desktop - flex: none - width: 25% - &.is-one-fifth-desktop - flex: none - width: 20% - &.is-two-fifths-desktop - flex: none - width: 40% - &.is-three-fifths-desktop - flex: none - width: 60% - &.is-four-fifths-desktop - flex: none - width: 80% - &.is-offset-three-quarters-desktop - margin-left: 75% - &.is-offset-two-thirds-desktop - margin-left: 66.6666% - &.is-offset-half-desktop - margin-left: 50% - &.is-offset-one-third-desktop - margin-left: 33.3333% - &.is-offset-one-quarter-desktop - margin-left: 25% - &.is-offset-one-fifth-desktop - margin-left: 20% - &.is-offset-two-fifths-desktop - margin-left: 40% - &.is-offset-three-fifths-desktop - margin-left: 60% - &.is-offset-four-fifths-desktop - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}-desktop - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-desktop - margin-left: percentage($i / 12) - +widescreen - &.is-narrow-widescreen - flex: none - &.is-full-widescreen - flex: none - width: 100% - &.is-three-quarters-widescreen - flex: none - width: 75% - &.is-two-thirds-widescreen - flex: none - width: 66.6666% - &.is-half-widescreen - flex: none - width: 50% - &.is-one-third-widescreen - flex: none - width: 33.3333% - &.is-one-quarter-widescreen - flex: none - width: 25% - &.is-one-fifth-widescreen - flex: none - width: 20% - &.is-two-fifths-widescreen - flex: none - width: 40% - &.is-three-fifths-widescreen - flex: none - width: 60% - &.is-four-fifths-widescreen - flex: none - width: 80% - &.is-offset-three-quarters-widescreen - margin-left: 75% - &.is-offset-two-thirds-widescreen - margin-left: 66.6666% - &.is-offset-half-widescreen - margin-left: 50% - &.is-offset-one-third-widescreen - margin-left: 33.3333% - &.is-offset-one-quarter-widescreen - margin-left: 25% - &.is-offset-one-fifth-widescreen - margin-left: 20% - &.is-offset-two-fifths-widescreen - margin-left: 40% - &.is-offset-three-fifths-widescreen - margin-left: 60% - &.is-offset-four-fifths-widescreen - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}-widescreen - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-widescreen - margin-left: percentage($i / 12) - +fullhd - &.is-narrow-fullhd - flex: none - &.is-full-fullhd - flex: none - width: 100% - &.is-three-quarters-fullhd - flex: none - width: 75% - &.is-two-thirds-fullhd - flex: none - width: 66.6666% - &.is-half-fullhd - flex: none - width: 50% - &.is-one-third-fullhd - flex: none - width: 33.3333% - &.is-one-quarter-fullhd - flex: none - width: 25% - &.is-one-fifth-fullhd - flex: none - width: 20% - &.is-two-fifths-fullhd - flex: none - width: 40% - &.is-three-fifths-fullhd - flex: none - width: 60% - &.is-four-fifths-fullhd - flex: none - width: 80% - &.is-offset-three-quarters-fullhd - margin-left: 75% - &.is-offset-two-thirds-fullhd - margin-left: 66.6666% - &.is-offset-half-fullhd - margin-left: 50% - &.is-offset-one-third-fullhd - margin-left: 33.3333% - &.is-offset-one-quarter-fullhd - margin-left: 25% - &.is-offset-one-fifth-fullhd - margin-left: 20% - &.is-offset-two-fifths-fullhd - margin-left: 40% - &.is-offset-three-fifths-fullhd - margin-left: 60% - &.is-offset-four-fifths-fullhd - margin-left: 80% - @for $i from 1 through 12 - &.is-#{$i}-fullhd - flex: none - width: percentage($i / 12) - &.is-offset-#{$i}-fullhd - margin-left: percentage($i / 12) - -.columns - margin-left: (-$column-gap) - margin-right: (-$column-gap) - margin-top: (-$column-gap) - &:last-child - margin-bottom: (-$column-gap) - &:not(:last-child) - margin-bottom: calc(1.5rem - #{$column-gap}) - // Modifiers - &.is-centered - justify-content: center - &.is-gapless - margin-left: 0 - margin-right: 0 - margin-top: 0 - & > .column - margin: 0 - padding: 0 !important - &:not(:last-child) - margin-bottom: 1.5rem - &:last-child - margin-bottom: 0 - &.is-mobile - display: flex - &.is-multiline - flex-wrap: wrap - &.is-vcentered - align-items: center - // Responsiveness - +tablet - &:not(.is-desktop) - display: flex - +desktop - // Modifiers - &.is-desktop - display: flex - -@if $variable-columns - .columns.is-variable - --columnGap: 0.75rem - margin-left: calc(-1 * var(--columnGap)) - margin-right: calc(-1 * var(--columnGap)) - .column - padding-left: var(--columnGap) - padding-right: var(--columnGap) - @for $i from 0 through 8 - &.is-#{$i} - --columnGap: #{$i * 0.25rem} diff --git a/webapp/src/scss/sass/grid/tiles.sass b/webapp/src/scss/sass/grid/tiles.sass deleted file mode 100644 index 1f6a626fc6b9df4d8c14b771ab4a696b4683e37d..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/grid/tiles.sass +++ /dev/null @@ -1,32 +0,0 @@ -.tile - align-items: stretch - display: block - flex-basis: 0 - flex-grow: 1 - flex-shrink: 1 - min-height: min-content - // Modifiers - &.is-ancestor - margin-left: -0.75rem - margin-right: -0.75rem - margin-top: -0.75rem - &:last-child - margin-bottom: -0.75rem - &:not(:last-child) - margin-bottom: 0.75rem - &.is-child - margin: 0 !important - &.is-parent - padding: 0.75rem - &.is-vertical - flex-direction: column - & > .tile.is-child:not(:last-child) - margin-bottom: 1.5rem !important - // Responsiveness - +tablet - &:not(.is-child) - display: flex - @for $i from 1 through 12 - &.is-#{$i} - flex: none - width: ($i / 12) * 100% diff --git a/webapp/src/scss/sass/layout/_all.sass b/webapp/src/scss/sass/layout/_all.sass deleted file mode 100644 index 143ada35be8f297e3bf9d70ec415fabd8291254e..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/layout/_all.sass +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8" - -@import "hero.sass" -@import "section.sass" -@import "footer.sass" diff --git a/webapp/src/scss/sass/layout/footer.sass b/webapp/src/scss/sass/layout/footer.sass deleted file mode 100644 index 6688482ab1d161f53547fd12e353331874361903..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/layout/footer.sass +++ /dev/null @@ -1,5 +0,0 @@ -$footer-background-color: $white-bis !default - -.footer - background-color: $footer-background-color - padding: 3rem 1.5rem 6rem diff --git a/webapp/src/scss/sass/layout/hero.sass b/webapp/src/scss/sass/layout/hero.sass deleted file mode 100644 index be7a9d7bcff2828391a7e8d910efe0a513c7620a..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/layout/hero.sass +++ /dev/null @@ -1,155 +0,0 @@ -// Main container - -.hero - align-items: stretch - display: flex - flex-direction: column - justify-content: space-between - .navbar - background: none - .tabs - ul - border-bottom: none - // Colors - @each $name, $pair in $colors - $color: nth($pair, 1) - $color-invert: nth($pair, 2) - &.is-#{$name} - background-color: $color - color: $color-invert - a:not(.button):not(.dropdown-item):not(.tag), - strong - color: inherit - .title - color: $color-invert - .subtitle - color: rgba($color-invert, 0.9) - a:not(.button), - strong - color: $color-invert - .navbar-menu - +touch - background-color: $color - .navbar-item, - .navbar-link - color: rgba($color-invert, 0.7) - a.navbar-item, - .navbar-link - &:hover, - &.is-active - background-color: darken($color, 5%) - color: $color-invert - .tabs - a - color: $color-invert - opacity: 0.9 - &:hover - opacity: 1 - li - &.is-active a - opacity: 1 - &.is-boxed, - &.is-toggle - a - color: $color-invert - &:hover - background-color: rgba($black, 0.1) - li.is-active a - &, - &:hover - background-color: $color-invert - border-color: $color-invert - color: $color - // Modifiers - &.is-bold - $gradient-top-left: darken(saturate(adjust-hue($color, -10deg), 10%), 10%) - $gradient-bottom-right: lighten(saturate(adjust-hue($color, 10deg), 5%), 5%) - background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%) - +mobile - .navbar-menu - background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%) - // Responsiveness - // +mobile - // .nav-toggle - // span - // background-color: $color-invert - // &:hover - // background-color: rgba($black, 0.1) - // &.is-active - // span - // background-color: $color-invert - // .nav-menu - // .nav-item - // border-top-color: rgba($color-invert, 0.2) - // Sizes - &.is-small - .hero-body - padding-bottom: 1.5rem - padding-top: 1.5rem - &.is-medium - +tablet - .hero-body - padding-bottom: 9rem - padding-top: 9rem - &.is-large - +tablet - .hero-body - padding-bottom: 18rem - padding-top: 18rem - &.is-halfheight, - &.is-fullheight - .hero-body - align-items: center - display: flex - & > .container - flex-grow: 1 - flex-shrink: 1 - &.is-halfheight - min-height: 50vh - &.is-fullheight - min-height: 100vh - -// Components - -.hero-video - +overlay - overflow: hidden - video - left: 50% - min-height: 100% - min-width: 100% - position: absolute - top: 50% - transform: translate3d(-50%, -50%, 0) - // Modifiers - &.is-transparent - opacity: 0.3 - // Responsiveness - +mobile - display: none - -.hero-buttons - margin-top: 1.5rem - // Responsiveness - +mobile - .button - display: flex - &:not(:last-child) - margin-bottom: 0.75rem - +tablet - display: flex - justify-content: center - .button:not(:last-child) - margin-right: 1.5rem - -// Containers - -.hero-head, -.hero-foot - flex-grow: 0 - flex-shrink: 0 - -.hero-body - flex-grow: 1 - flex-shrink: 0 - padding: 3rem 1.5rem diff --git a/webapp/src/scss/sass/layout/section.sass b/webapp/src/scss/sass/layout/section.sass deleted file mode 100644 index 6f2d35231f155964b86b5ca24475792d92cdc894..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/layout/section.sass +++ /dev/null @@ -1,13 +0,0 @@ -$section-padding: 3rem 1.5rem !default -$section-padding-medium: 9rem 1.5rem !default -$section-padding-large: 18rem 1.5rem !default - -.section - padding: $section-padding - // Responsiveness - +desktop - // Sizes - &.is-medium - padding: $section-padding-medium - &.is-large - padding: $section-padding-large diff --git a/webapp/src/scss/sass/utilities/_all.sass b/webapp/src/scss/sass/utilities/_all.sass deleted file mode 100644 index bf4ecfe3585810c5ad3b6c89bf208d8a0aa983e2..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/_all.sass +++ /dev/null @@ -1,8 +0,0 @@ -@charset "utf-8" - -@import "initial-variables.sass" -@import "functions.sass" -@import "derived-variables.sass" -@import "animations.sass" -@import "mixins.sass" -@import "controls.sass" diff --git a/webapp/src/scss/sass/utilities/animations.sass b/webapp/src/scss/sass/utilities/animations.sass deleted file mode 100644 index a14525d75ec4664ff6c8a09fb27fadd214ad4390..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/animations.sass +++ /dev/null @@ -1,5 +0,0 @@ -@keyframes spinAround - from - transform: rotate(0deg) - to - transform: rotate(359deg) diff --git a/webapp/src/scss/sass/utilities/controls.sass b/webapp/src/scss/sass/utilities/controls.sass deleted file mode 100644 index 8dc3a619a536c69bd41c69e968774cfc86d0ec9f..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/controls.sass +++ /dev/null @@ -1,46 +0,0 @@ -$control-radius: $radius !default -$control-radius-small: $radius-small !default - -$control-border-width: 1px !default - -$control-padding-vertical: calc(0.375em - #{$control-border-width}) !default -$control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default - -%control - -moz-appearance: none - -webkit-appearance: none - align-items: center - border: $control-border-width solid transparent - border-radius: $control-radius - box-shadow: none - display: inline-flex - font-size: $size-normal - height: 2.25em - justify-content: flex-start - line-height: 1.5 - padding-bottom: $control-padding-vertical - padding-left: $control-padding-horizontal - padding-right: $control-padding-horizontal - padding-top: $control-padding-vertical - position: relative - vertical-align: top - // States - &:focus, - &.is-focused, - &:active, - &.is-active - outline: none - &[disabled] - cursor: not-allowed - -=control - @extend %control - -// The controls sizes use mixins so they can be used at different breakpoints -=control-small - border-radius: $control-radius-small - font-size: $size-small -=control-medium - font-size: $size-medium -=control-large - font-size: $size-large diff --git a/webapp/src/scss/sass/utilities/derived-variables.sass b/webapp/src/scss/sass/utilities/derived-variables.sass deleted file mode 100644 index aa912813a411611c7f49a1867d9a3c882e27a67c..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/derived-variables.sass +++ /dev/null @@ -1,84 +0,0 @@ -$primary: $turquoise !default - -$info: $cyan !default -$success: $green !default -$warning: $yellow !default -$danger: $red !default - -$light: $white-ter !default -$dark: $grey-darker !default - -// Invert colors - -$orange-invert: findColorInvert($orange) !default -$yellow-invert: findColorInvert($yellow) !default -$green-invert: findColorInvert($green) !default -$turquoise-invert: findColorInvert($turquoise) !default -$cyan-invert: findColorInvert($cyan) !default -$blue-invert: findColorInvert($blue) !default -$purple-invert: findColorInvert($purple) !default -$red-invert: findColorInvert($red) !default - -$primary-invert: $turquoise-invert !default -$info-invert: $cyan-invert !default -$success-invert: $green-invert !default -$warning-invert: $yellow-invert !default -$danger-invert: $red-invert !default -$light-invert: $dark !default -$dark-invert: $light !default - -// General colors - -$background: $white-ter !default - -$border: $grey-lighter !default -$border-hover: $grey-light !default - -// Text colors - -$text: $grey-dark !default -$text-invert: findColorInvert($text) !default -$text-light: $grey !default -$text-strong: $grey-darker !default - -// Code colors - -$code: $red !default -$code-background: $background !default - -$pre: $text !default -$pre-background: $background !default - -// Link colors - -$link: $blue !default -$link-invert: $blue-invert !default -$link-visited: $purple !default - -$link-hover: $grey-darker !default -$link-hover-border: $grey-light !default - -$link-focus: $grey-darker !default -$link-focus-border: $blue !default - -$link-active: $grey-darker !default -$link-active-border: $grey-dark !default - -// Typography - -$family-primary: $family-sans-serif !default -$family-code: $family-monospace !default - -$size-small: $size-7 !default -$size-normal: $size-6 !default -$size-medium: $size-5 !default -$size-large: $size-4 !default - -// Lists and maps -$custom-colors: null !default -$custom-shades: null !default - -$colors: mergeColorMaps(("white": ($white, $black), "black": ($black, $white), "light": ($light, $light-invert), "dark": ($dark, $dark-invert), "primary": ($primary, $primary-invert), "link": ($link, $link-invert), "info": ($info, $info-invert), "success": ($success, $success-invert), "warning": ($warning, $warning-invert), "danger": ($danger, $danger-invert)), $custom-colors) !default -$shades: mergeColorMaps(("black-bis": $black-bis, "black-ter": $black-ter, "grey-darker": $grey-darker, "grey-dark": $grey-dark, "grey": $grey, "grey-light": $grey-light, "grey-lighter": $grey-lighter, "white-ter": $white-ter, "white-bis": $white-bis), $custom-shades) !default - -$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default diff --git a/webapp/src/scss/sass/utilities/functions.sass b/webapp/src/scss/sass/utilities/functions.sass deleted file mode 100644 index acd3e839cf2649304479509f9107ad7e3df584dd..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/functions.sass +++ /dev/null @@ -1,62 +0,0 @@ -@function mergeColorMaps($bulma-colors, $custom-colors) - // we return at least bulma hardcoded colors - $merged-colors: $bulma-colors - - // we want a map as input - @if type-of($custom-colors) == 'map' - @each $name, $components in $custom-colors - // color name should be a string and colors pair a list with at least one element - @if type-of($name) == 'string' and (type-of($components) == 'list' or type-of($components) == 'color') and length($components) >= 1 - $color-base: null - - // the param can either be a single color - // or a list of 2 colors - @if type-of($components) == 'color' - $color-base: $components - @else if type-of($components) == 'list' - $color-base: nth($components, 1) - - $color-invert: null - // is an inverted color provided in the list - @if length($components) > 1 - $color-invert: nth($components, 2) - - // we only want a color as base color - @if type-of($color-base) == 'color' - // if inverted color is not provided or is not a color we compute it - @if type-of($color-invert) != 'color' - $color-invert: findColorInvert($color-base) - - // we merge this colors elements as map with bulma colors (we can override them this way, no multiple definition for the same name) - $merged-colors: map_merge($merged-colors, ($name: ($color-base, $color-invert))) - - @return $merged-colors - -@function powerNumber($number, $exp) - $value: 1 - @if $exp > 0 - @for $i from 1 through $exp - $value: $value * $number - @else if $exp < 0 - @for $i from 1 through -$exp - $value: $value / $number - @return $value - -@function colorLuminance($color) - $color-rgb: ('red': red($color),'green': green($color),'blue': blue($color)) - @each $name, $value in $color-rgb - $adjusted: 0 - $value: $value / 255 - @if $value < 0.03928 - $value: $value / 12.92 - @else - $value: ($value + .055) / 1.055 - $value: powerNumber($value, 2) - $color-rgb: map-merge($color-rgb, ($name: $value)) - @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722) - -@function findColorInvert($color) - @if (colorLuminance($color) > 0.55) - @return rgba(#000, 0.7) - @else - @return #fff diff --git a/webapp/src/scss/sass/utilities/initial-variables.sass b/webapp/src/scss/sass/utilities/initial-variables.sass deleted file mode 100644 index 421bd3d5489dd54256535fd74c89e33e6bd42753..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/initial-variables.sass +++ /dev/null @@ -1,72 +0,0 @@ -// Colors - -$black: hsl(0, 0%, 4%) !default -$black-bis: hsl(0, 0%, 7%) !default -$black-ter: hsl(0, 0%, 14%) !default - -$grey-darker: hsl(0, 0%, 21%) !default -$grey-dark: hsl(0, 0%, 29%) !default -$grey: hsl(0, 0%, 48%) !default -$grey-light: hsl(0, 0%, 71%) !default -$grey-lighter: hsl(0, 0%, 86%) !default - -$white-ter: hsl(0, 0%, 96%) !default -$white-bis: hsl(0, 0%, 98%) !default -$white: hsl(0, 0%, 100%) !default - -$orange: hsl(14, 100%, 53%) !default -$yellow: hsl(48, 100%, 67%) !default -$green: hsl(141, 71%, 48%) !default -$turquoise: hsl(171, 100%, 41%) !default -$cyan: hsl(204, 86%, 53%) !default -$blue: hsl(217, 71%, 53%) !default -$purple: hsl(271, 100%, 71%) !default -$red: hsl(348, 100%, 61%) !default - -// Typography - -$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default -$family-monospace: monospace !default -$render-mode: optimizeLegibility !default - -$size-1: 3rem !default -$size-2: 2.5rem !default -$size-3: 2rem !default -$size-4: 1.5rem !default -$size-5: 1.25rem !default -$size-6: 1rem !default -$size-7: 0.75rem !default - -$weight-light: 300 !default -$weight-normal: 400 !default -$weight-medium: 500 !default -$weight-semibold: 600 !default -$weight-bold: 700 !default - -// Responsiveness - -// The container horizontal gap, which acts as the offset for breakpoints -$gap: 64px !default -// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16 -$tablet: 769px !default -// 960px container + 4rem -$desktop: 960px + (2 * $gap) !default -// 1152px container + 4rem -$widescreen: 1152px + (2 * $gap) !default -$widescreen-enabled: true !default -// 1344px container + 4rem -$fullhd: 1344px + (2 * $gap) !default -$fullhd-enabled: true !default - -// Miscellaneous - -$easing: ease-out !default -$radius-small: 2px !default -$radius: 4px !default -$radius-large: 6px !default -$radius-rounded: 290486px !default -$speed: 86ms !default - -// Flags - -$variable-columns: true !default diff --git a/webapp/src/scss/sass/utilities/mixins.sass b/webapp/src/scss/sass/utilities/mixins.sass deleted file mode 100644 index 097c2c1277cfab239e25830250d18417a2c39c5b..0000000000000000000000000000000000000000 --- a/webapp/src/scss/sass/utilities/mixins.sass +++ /dev/null @@ -1,266 +0,0 @@ -@import "initial-variables" - -=clearfix - &::after - clear: both - content: " " - display: table - -=center($width, $height: 0) - position: absolute - @if $height != 0 - left: calc(50% - (#{$width} / 2)) - top: calc(50% - (#{$height} / 2)) - @else - left: calc(50% - (#{$width} / 2)) - top: calc(50% - (#{$width} / 2)) - -=fa($size, $dimensions) - display: inline-block - font-size: $size - height: $dimensions - line-height: $dimensions - text-align: center - vertical-align: top - width: $dimensions - -=hamburger($dimensions) - cursor: pointer - display: block - height: $dimensions - position: relative - width: $dimensions - span - background-color: currentColor - display: block - height: 1px - left: calc(50% - 8px) - position: absolute - transform-origin: center - transition-duration: $speed - transition-property: background-color, opacity, transform - transition-timing-function: $easing - width: 16px - &:nth-child(1) - top: calc(50% - 6px) - &:nth-child(2) - top: calc(50% - 1px) - &:nth-child(3) - top: calc(50% + 4px) - &:hover - background-color: rgba(black, 0.05) - // Modifers - &.is-active - span - &:nth-child(1) - transform: translateY(5px) rotate(45deg) - &:nth-child(2) - opacity: 0 - &:nth-child(3) - transform: translateY(-5px) rotate(-45deg) - -=overflow-touch - -webkit-overflow-scrolling: touch - -=placeholder - $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input' - @each $placeholder in $placeholders - &:#{$placeholder}-placeholder - @content - -// Responsiveness - -=from($device) - @media screen and (min-width: $device) - @content - -=until($device) - @media screen and (max-width: $device - 1px) - @content - -=mobile - @media screen and (max-width: $tablet - 1px) - @content - -=tablet - @media screen and (min-width: $tablet), print - @content - -=tablet-only - @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) - @content - -=touch - @media screen and (max-width: $desktop - 1px) - @content - -=desktop - @media screen and (min-width: $desktop) - @content - -=desktop-only - @if $widescreen-enabled - @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) - @content - -=until-widescreen - @if $widescreen-enabled - @media screen and (max-width: $widescreen - 1px) - @content - -=widescreen - @if $widescreen-enabled - @media screen and (min-width: $widescreen) - @content - -=widescreen-only - @if $widescreen-enabled and $fullhd-enabled - @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) - @content - -=until-fullhd - @if $fullhd-enabled - @media screen and (max-width: $fullhd - 1px) - @content - -=fullhd - @if $fullhd-enabled - @media screen and (min-width: $fullhd) - @content - -// Placeholders - -%unselectable - -webkit-touch-callout: none - -webkit-user-select: none - -moz-user-select: none - -ms-user-select: none - user-select: none - -=unselectable - @extend %unselectable - -%arrow - border: 3px solid transparent - border-radius: 2px - border-right: 0 - border-top: 0 - content: " " - display: block - height: 0.625em - margin-top: -0.4375em - pointer-events: none - position: absolute - top: 50% - transform: rotate(-45deg) - transform-origin: center - width: 0.625em - -=arrow($color) - @extend %arrow - border-color: $color - -%block - &:not(:last-child) - margin-bottom: 1.5rem - -=block - @extend %block - -%delete - @extend %unselectable - -moz-appearance: none - -webkit-appearance: none - background-color: rgba($black, 0.2) - border: none - border-radius: $radius-rounded - cursor: pointer - display: inline-block - flex-grow: 0 - flex-shrink: 0 - font-size: 0 - height: 20px - max-height: 20px - max-width: 20px - min-height: 20px - min-width: 20px - outline: none - position: relative - vertical-align: top - width: 20px - &::before, - &::after - background-color: $white - content: "" - display: block - left: 50% - position: absolute - top: 50% - transform: translateX(-50%) translateY(-50%) rotate(45deg) - transform-origin: center center - &::before - height: 2px - width: 50% - &::after - height: 50% - width: 2px - &:hover, - &:focus - background-color: rgba($black, 0.3) - &:active - background-color: rgba($black, 0.4) - // Sizes - &.is-small - height: 16px - max-height: 16px - max-width: 16px - min-height: 16px - min-width: 16px - width: 16px - &.is-medium - height: 24px - max-height: 24px - max-width: 24px - min-height: 24px - min-width: 24px - width: 24px - &.is-large - height: 32px - max-height: 32px - max-width: 32px - min-height: 32px - min-width: 32px - width: 32px - -=delete - @extend %delete - -%loader - animation: spinAround 500ms infinite linear - border: 2px solid $border - border-radius: $radius-rounded - border-right-color: transparent - border-top-color: transparent - content: "" - display: block - height: 1em - position: relative - width: 1em - -=loader - @extend %loader - -%overlay - bottom: 0 - left: 0 - position: absolute - right: 0 - top: 0 - -=overlay($offset: 0) - @extend %overlay - @if $offset != 0 - bottom: $offset - left: $offset - right: $offset - top: $offset diff --git a/webapp/src/scss/mystyles.scss b/webapp/src/scss/variables.scss similarity index 58% rename from webapp/src/scss/mystyles.scss rename to webapp/src/scss/variables.scss index 4290592dbca73a0e7649d89fec176703af062af8..040509312661b6e25f13a532e28f2c3befb2d5d3 100644 --- a/webapp/src/scss/mystyles.scss +++ b/webapp/src/scss/variables.scss @@ -1,6 +1,6 @@ // 1. Import the initial variables -@import "./sass/utilities/initial-variables"; -@import "./sass/utilities/functions"; +@import "../../node_modules/bulma/sass/utilities/initial-variables"; +@import "../../node_modules/bulma/sass/utilities/functions"; // 2. Set your own initial variables // Update blue @@ -23,6 +23,9 @@ $size-5: 1rem; $size-6: 0.875rem; $size-7: 0.75rem ; +// Section settings +$section-padding: 1.5rem 1.5rem; + // 3. Set the derived variables // Use the new pink as the primary color $primary: $main; @@ -33,9 +36,9 @@ $pagination-current-background-color: $yellow; $pagination-current-border-color: $yellow; // 6. Import the rest of Bulma -@import "sass/utilities/_all"; -@import "sass/base/_all"; -@import "sass/elements/_all"; -@import "sass/components/_all"; -@import "sass/grid/_all"; -@import "sass/layout/_all"; \ No newline at end of file +@import "../../node_modules/bulma/sass/utilities/_all"; +@import "../../node_modules/bulma/sass/base/_all"; +@import "../../node_modules/bulma/sass/elements/_all"; +@import "../../node_modules/bulma/sass/components/_all"; +@import "../../node_modules/bulma/sass/grid/_all"; +@import "../../node_modules/bulma/sass/layout/_all"; \ No newline at end of file diff --git a/webapp/src/scss/wordpress-style.scss b/webapp/src/scss/wordpress-style.scss index 98aa368bf2338b4cf604867c404ecdb2a449fc7d..2c3f3831a5f63fdcb5f24bf0f69e326100f3ac7d 100644 --- a/webapp/src/scss/wordpress-style.scss +++ b/webapp/src/scss/wordpress-style.scss @@ -50,7 +50,7 @@ Use it to make something cool, have fun, and share what you've learned with othe 1.0 Normalize Styles based on Normalize v5.0.0 @link https://github.com/necolas/normalize.css --------------------------------------------------------------*/ -app-home, app-wordpress-post-detail, app-wordpress-page { +.wordpress-component { html { font-family: sans-serif; line-height: 1.15; diff --git a/webapp/src/styles.scss b/webapp/src/styles.scss index 1efc22db2ba52ff6fdf25d085f18932d7decf391..f00391ca6aae9e55a048b4f0a70c1db436f5379d 100644 --- a/webapp/src/styles.scss +++ b/webapp/src/styles.scss @@ -1,6 +1,6 @@ /* You can add global styles to this file, and also import other style files */ -@import '~scss/mystyles.scss'; +@import '~scss/variables.scss'; html, body { @@ -45,9 +45,4 @@ a:hover { text-decoration: none; } -// .alignleft { -// float: left; -// margin-right: 1.5em; -// } - @import "./scss/wordpress-style"; \ No newline at end of file