Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
live_css
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
live_css
Commits
0a45ab75
Commit
0a45ab75
authored
4 months ago
by
Viktor Holovachek
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3493223
- Fit translations
parent
416413ec
No related branches found
No related tags found
2 merge requests
!13
CSS file optimizations and font/layout fixes. Standardized size of edittab...
,
!5
Issue #3493223 - Fit translations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/LiveCSSAdmin.php
+16
-16
16 additions, 16 deletions
src/Form/LiveCSSAdmin.php
with
16 additions
and
16 deletions
src/Form/LiveCSSAdmin.php
+
16
−
16
View file @
0a45ab75
...
...
@@ -27,9 +27,9 @@ class LiveCSSAdmin extends SystemConfigFormBase {
$this
->
config
=
config
(
'live_css.settings'
);
$form
[
'live_css_less'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Enable LESS Support'
),
'#title'
=>
$this
->
t
(
'Enable LESS Support'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_less'
),
'#description'
=>
t
(
'Allows the live editing and display of LESS files on
'#description'
=>
$this
->
t
(
'Allows the live editing and display of LESS files on
the site, by simply embedding stylesheets with a "less" extension instead
of "css". The Less is parsed on each page load, even for anonymous
users. In production you may wish to disable this feature and use the
...
...
@@ -37,39 +37,39 @@ class LiveCSSAdmin extends SystemConfigFormBase {
);
$form
[
'live_css_flush'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'CSS and JS cache flush'
),
'#title'
=>
$this
->
t
(
'CSS and JS cache flush'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_flush'
),
'#description'
=>
t
(
'Flush CSS and Javascript cache on every save.'
),
'#description'
=>
$this
->
t
(
'Flush CSS and Javascript cache on every save.'
),
);
$form
[
'live_css_hideadmin'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Hide Admin Menu'
),
'#title'
=>
$this
->
t
(
'Hide Admin Menu'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_hideadmin'
),
'#description'
=>
t
(
'Automatically hides the administration menu when
'#description'
=>
$this
->
t
(
'Automatically hides the administration menu when
editing CSS.'
),
);
$form
[
'live_css_hidemodules'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Only show theme CSS'
),
'#title'
=>
$this
->
t
(
'Only show theme CSS'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_hidemodules'
),
'#description'
=>
t
(
'Removes module and other styles from the CSS list.'
),
'#description'
=>
$this
->
t
(
'Removes module and other styles from the CSS list.'
),
);
$form
[
'live_css_storage'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Consistent Editor State'
),
'#title'
=>
$this
->
t
(
'Consistent Editor State'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_storage'
),
'#description'
=>
t
(
'Remembers the current file and file position to
'#description'
=>
$this
->
t
(
'Remembers the current file and file position to
maintain this between page loads.'
),
);
$form
[
'live_css_theme'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Editor Theme'
),
'#title'
=>
$this
->
t
(
'Editor Theme'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_theme'
),
'#options'
=>
live_css_list_themes
(),
);
$form
[
'live_css_fontsize'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Font Size'
),
'#title'
=>
$this
->
t
(
'Font Size'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_fontsize'
),
'#options'
=>
array
(
'8px'
=>
'8px'
,
...
...
@@ -82,15 +82,15 @@ class LiveCSSAdmin extends SystemConfigFormBase {
));
$form
[
'live_css_softtabs'
]
=
array
(
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Soft Tabs'
),
'#title'
=>
$this
->
t
(
'Soft Tabs'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_softtabs'
),
'#description'
=>
t
(
'Use spaces instead of a tab character.'
),
'#description'
=>
$this
->
t
(
'Use spaces instead of a tab character.'
),
);
$form
[
'live_css_tabsize'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Tab Size'
),
'#title'
=>
$this
->
t
(
'Tab Size'
),
'#default_value'
=>
$this
->
config
->
get
(
'live_css_tabsize'
),
'#description'
=>
t
(
'When using soft tabs, specify how many spaces to
'#description'
=>
$this
->
t
(
'When using soft tabs, specify how many spaces to
insert for the tab character.'
),
'#options'
=>
array
(
1
=>
'1'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment