Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[frontend] Add label option to the Spinner component and fix various …
…styling issues Switching to <i> for icons as there are certain global styles for FA icons with the i tag
- Loading branch information
1 parent
cf1126d
commit 54350cc
Showing
3 changed files
with
105 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
Licensed to Cloudera, Inc. under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. Cloudera, Inc. licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
@import './styles/mixins'; | ||
@import './styles/colors'; | ||
|
||
.spinner-container { | ||
@include fade-in; | ||
position: relative; | ||
z-index: 10000; | ||
|
||
|
||
&.spinner { | ||
@include fillAbsolute; | ||
margin: auto 0; | ||
vertical-align: center; | ||
} | ||
|
||
&.spinner-overlay { | ||
@include fillAbsolute; | ||
@include fade-in; | ||
z-index: 10000; | ||
background: rgba(255, 255, 255, 0.5); | ||
} | ||
|
||
&.spinner-inline { | ||
@include fade-in; | ||
display: inline-block; | ||
position: relative; | ||
} | ||
|
||
&.spinner-blackout { | ||
z-index: 999; | ||
background-color: $fluid-white; | ||
} | ||
|
||
.spinner-center { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.spinner-large { | ||
font-size: 26px !important; | ||
} | ||
|
||
.spinner-xlarge { | ||
font-size: 60px !important; | ||
} | ||
|
||
span, | ||
i { | ||
font-size: 16px; | ||
color: $fluid-gray-500; | ||
} | ||
|
||
span { | ||
margin-left: 5px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters